promotion_mis.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/openplatform/ticket-sales/api/grpc/v1/promotion_mis.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import context "golang.org/x/net/context"
  9. import grpc "google.golang.org/grpc"
  10. import strings "strings"
  11. import reflect "reflect"
  12. import io "io"
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. type PromoOrderMis struct {
  18. PromoID int64 `protobuf:"varint,1,opt,name=promo_id,json=promoId,proto3" json:"promo_id"`
  19. GroupID int64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id"`
  20. OrderID int64 `protobuf:"varint,3,opt,name=order_id,json=orderId,proto3" json:"order_id"`
  21. IsMaster int16 `protobuf:"varint,4,opt,name=is_master,json=isMaster,proto3,casttype=int16" json:"is_master"`
  22. UID int64 `protobuf:"varint,5,opt,name=uid,proto3" json:"uid"`
  23. Status int16 `protobuf:"varint,6,opt,name=status,proto3,casttype=int16" json:"status"`
  24. PayTime int64 `protobuf:"varint,7,opt,name=pay_time,json=payTime,proto3" json:"pay_time"`
  25. Ctime int64 `protobuf:"varint,8,opt,name=ctime,proto3" json:"ctime"`
  26. SKUID int64 `protobuf:"varint,9,opt,name=sku_id,json=skuId,proto3" json:"sku_id"`
  27. }
  28. func (m *PromoOrderMis) Reset() { *m = PromoOrderMis{} }
  29. func (*PromoOrderMis) ProtoMessage() {}
  30. func (*PromoOrderMis) Descriptor() ([]byte, []int) { return fileDescriptorPromotionMis, []int{0} }
  31. type GetGroupOrdersMisRequest struct {
  32. OrderID int64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id" form:"order_id"`
  33. GroupID int64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id" form:"group_id"`
  34. }
  35. func (m *GetGroupOrdersMisRequest) Reset() { *m = GetGroupOrdersMisRequest{} }
  36. func (*GetGroupOrdersMisRequest) ProtoMessage() {}
  37. func (*GetGroupOrdersMisRequest) Descriptor() ([]byte, []int) {
  38. return fileDescriptorPromotionMis, []int{1}
  39. }
  40. type GetGroupOrdersMisResponse struct {
  41. Orders []*PromoOrderMis `protobuf:"bytes,2,rep,name=orders" json:"orders"`
  42. }
  43. func (m *GetGroupOrdersMisResponse) Reset() { *m = GetGroupOrdersMisResponse{} }
  44. func (*GetGroupOrdersMisResponse) ProtoMessage() {}
  45. func (*GetGroupOrdersMisResponse) Descriptor() ([]byte, []int) {
  46. return fileDescriptorPromotionMis, []int{2}
  47. }
  48. func init() {
  49. proto.RegisterType((*PromoOrderMis)(nil), "ticket.service.sales.v1.PromoOrderMis")
  50. proto.RegisterType((*GetGroupOrdersMisRequest)(nil), "ticket.service.sales.v1.GetGroupOrdersMisRequest")
  51. proto.RegisterType((*GetGroupOrdersMisResponse)(nil), "ticket.service.sales.v1.GetGroupOrdersMisResponse")
  52. }
  53. // Reference imports to suppress errors if they are not otherwise used.
  54. var _ context.Context
  55. var _ grpc.ClientConn
  56. // This is a compile-time assertion to ensure that this generated file
  57. // is compatible with the grpc package it is being compiled against.
  58. const _ = grpc.SupportPackageIsVersion4
  59. // Client API for PromotionMis service
  60. type PromotionMisClient interface {
  61. GetGroupOrdersMis(ctx context.Context, in *GetGroupOrdersMisRequest, opts ...grpc.CallOption) (*GetGroupOrdersMisResponse, error)
  62. }
  63. type promotionMisClient struct {
  64. cc *grpc.ClientConn
  65. }
  66. func NewPromotionMisClient(cc *grpc.ClientConn) PromotionMisClient {
  67. return &promotionMisClient{cc}
  68. }
  69. func (c *promotionMisClient) GetGroupOrdersMis(ctx context.Context, in *GetGroupOrdersMisRequest, opts ...grpc.CallOption) (*GetGroupOrdersMisResponse, error) {
  70. out := new(GetGroupOrdersMisResponse)
  71. err := grpc.Invoke(ctx, "/ticket.service.sales.v1.PromotionMis/GetGroupOrdersMis", in, out, c.cc, opts...)
  72. if err != nil {
  73. return nil, err
  74. }
  75. return out, nil
  76. }
  77. // Server API for PromotionMis service
  78. type PromotionMisServer interface {
  79. GetGroupOrdersMis(context.Context, *GetGroupOrdersMisRequest) (*GetGroupOrdersMisResponse, error)
  80. }
  81. func RegisterPromotionMisServer(s *grpc.Server, srv PromotionMisServer) {
  82. s.RegisterService(&_PromotionMis_serviceDesc, srv)
  83. }
  84. func _PromotionMis_GetGroupOrdersMis_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  85. in := new(GetGroupOrdersMisRequest)
  86. if err := dec(in); err != nil {
  87. return nil, err
  88. }
  89. if interceptor == nil {
  90. return srv.(PromotionMisServer).GetGroupOrdersMis(ctx, in)
  91. }
  92. info := &grpc.UnaryServerInfo{
  93. Server: srv,
  94. FullMethod: "/ticket.service.sales.v1.PromotionMis/GetGroupOrdersMis",
  95. }
  96. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  97. return srv.(PromotionMisServer).GetGroupOrdersMis(ctx, req.(*GetGroupOrdersMisRequest))
  98. }
  99. return interceptor(ctx, in, info, handler)
  100. }
  101. var _PromotionMis_serviceDesc = grpc.ServiceDesc{
  102. ServiceName: "ticket.service.sales.v1.PromotionMis",
  103. HandlerType: (*PromotionMisServer)(nil),
  104. Methods: []grpc.MethodDesc{
  105. {
  106. MethodName: "GetGroupOrdersMis",
  107. Handler: _PromotionMis_GetGroupOrdersMis_Handler,
  108. },
  109. },
  110. Streams: []grpc.StreamDesc{},
  111. Metadata: "app/service/openplatform/ticket-sales/api/grpc/v1/promotion_mis.proto",
  112. }
  113. func (m *PromoOrderMis) Marshal() (dAtA []byte, err error) {
  114. size := m.Size()
  115. dAtA = make([]byte, size)
  116. n, err := m.MarshalTo(dAtA)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return dAtA[:n], nil
  121. }
  122. func (m *PromoOrderMis) MarshalTo(dAtA []byte) (int, error) {
  123. var i int
  124. _ = i
  125. var l int
  126. _ = l
  127. if m.PromoID != 0 {
  128. dAtA[i] = 0x8
  129. i++
  130. i = encodeVarintPromotionMis(dAtA, i, uint64(m.PromoID))
  131. }
  132. if m.GroupID != 0 {
  133. dAtA[i] = 0x10
  134. i++
  135. i = encodeVarintPromotionMis(dAtA, i, uint64(m.GroupID))
  136. }
  137. if m.OrderID != 0 {
  138. dAtA[i] = 0x18
  139. i++
  140. i = encodeVarintPromotionMis(dAtA, i, uint64(m.OrderID))
  141. }
  142. if m.IsMaster != 0 {
  143. dAtA[i] = 0x20
  144. i++
  145. i = encodeVarintPromotionMis(dAtA, i, uint64(m.IsMaster))
  146. }
  147. if m.UID != 0 {
  148. dAtA[i] = 0x28
  149. i++
  150. i = encodeVarintPromotionMis(dAtA, i, uint64(m.UID))
  151. }
  152. if m.Status != 0 {
  153. dAtA[i] = 0x30
  154. i++
  155. i = encodeVarintPromotionMis(dAtA, i, uint64(m.Status))
  156. }
  157. if m.PayTime != 0 {
  158. dAtA[i] = 0x38
  159. i++
  160. i = encodeVarintPromotionMis(dAtA, i, uint64(m.PayTime))
  161. }
  162. if m.Ctime != 0 {
  163. dAtA[i] = 0x40
  164. i++
  165. i = encodeVarintPromotionMis(dAtA, i, uint64(m.Ctime))
  166. }
  167. if m.SKUID != 0 {
  168. dAtA[i] = 0x48
  169. i++
  170. i = encodeVarintPromotionMis(dAtA, i, uint64(m.SKUID))
  171. }
  172. return i, nil
  173. }
  174. func (m *GetGroupOrdersMisRequest) Marshal() (dAtA []byte, err error) {
  175. size := m.Size()
  176. dAtA = make([]byte, size)
  177. n, err := m.MarshalTo(dAtA)
  178. if err != nil {
  179. return nil, err
  180. }
  181. return dAtA[:n], nil
  182. }
  183. func (m *GetGroupOrdersMisRequest) MarshalTo(dAtA []byte) (int, error) {
  184. var i int
  185. _ = i
  186. var l int
  187. _ = l
  188. if m.OrderID != 0 {
  189. dAtA[i] = 0x8
  190. i++
  191. i = encodeVarintPromotionMis(dAtA, i, uint64(m.OrderID))
  192. }
  193. if m.GroupID != 0 {
  194. dAtA[i] = 0x10
  195. i++
  196. i = encodeVarintPromotionMis(dAtA, i, uint64(m.GroupID))
  197. }
  198. return i, nil
  199. }
  200. func (m *GetGroupOrdersMisResponse) Marshal() (dAtA []byte, err error) {
  201. size := m.Size()
  202. dAtA = make([]byte, size)
  203. n, err := m.MarshalTo(dAtA)
  204. if err != nil {
  205. return nil, err
  206. }
  207. return dAtA[:n], nil
  208. }
  209. func (m *GetGroupOrdersMisResponse) MarshalTo(dAtA []byte) (int, error) {
  210. var i int
  211. _ = i
  212. var l int
  213. _ = l
  214. if len(m.Orders) > 0 {
  215. for _, msg := range m.Orders {
  216. dAtA[i] = 0x12
  217. i++
  218. i = encodeVarintPromotionMis(dAtA, i, uint64(msg.Size()))
  219. n, err := msg.MarshalTo(dAtA[i:])
  220. if err != nil {
  221. return 0, err
  222. }
  223. i += n
  224. }
  225. }
  226. return i, nil
  227. }
  228. func encodeVarintPromotionMis(dAtA []byte, offset int, v uint64) int {
  229. for v >= 1<<7 {
  230. dAtA[offset] = uint8(v&0x7f | 0x80)
  231. v >>= 7
  232. offset++
  233. }
  234. dAtA[offset] = uint8(v)
  235. return offset + 1
  236. }
  237. func (m *PromoOrderMis) Size() (n int) {
  238. var l int
  239. _ = l
  240. if m.PromoID != 0 {
  241. n += 1 + sovPromotionMis(uint64(m.PromoID))
  242. }
  243. if m.GroupID != 0 {
  244. n += 1 + sovPromotionMis(uint64(m.GroupID))
  245. }
  246. if m.OrderID != 0 {
  247. n += 1 + sovPromotionMis(uint64(m.OrderID))
  248. }
  249. if m.IsMaster != 0 {
  250. n += 1 + sovPromotionMis(uint64(m.IsMaster))
  251. }
  252. if m.UID != 0 {
  253. n += 1 + sovPromotionMis(uint64(m.UID))
  254. }
  255. if m.Status != 0 {
  256. n += 1 + sovPromotionMis(uint64(m.Status))
  257. }
  258. if m.PayTime != 0 {
  259. n += 1 + sovPromotionMis(uint64(m.PayTime))
  260. }
  261. if m.Ctime != 0 {
  262. n += 1 + sovPromotionMis(uint64(m.Ctime))
  263. }
  264. if m.SKUID != 0 {
  265. n += 1 + sovPromotionMis(uint64(m.SKUID))
  266. }
  267. return n
  268. }
  269. func (m *GetGroupOrdersMisRequest) Size() (n int) {
  270. var l int
  271. _ = l
  272. if m.OrderID != 0 {
  273. n += 1 + sovPromotionMis(uint64(m.OrderID))
  274. }
  275. if m.GroupID != 0 {
  276. n += 1 + sovPromotionMis(uint64(m.GroupID))
  277. }
  278. return n
  279. }
  280. func (m *GetGroupOrdersMisResponse) Size() (n int) {
  281. var l int
  282. _ = l
  283. if len(m.Orders) > 0 {
  284. for _, e := range m.Orders {
  285. l = e.Size()
  286. n += 1 + l + sovPromotionMis(uint64(l))
  287. }
  288. }
  289. return n
  290. }
  291. func sovPromotionMis(x uint64) (n int) {
  292. for {
  293. n++
  294. x >>= 7
  295. if x == 0 {
  296. break
  297. }
  298. }
  299. return n
  300. }
  301. func sozPromotionMis(x uint64) (n int) {
  302. return sovPromotionMis(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  303. }
  304. func (this *PromoOrderMis) String() string {
  305. if this == nil {
  306. return "nil"
  307. }
  308. s := strings.Join([]string{`&PromoOrderMis{`,
  309. `PromoID:` + fmt.Sprintf("%v", this.PromoID) + `,`,
  310. `GroupID:` + fmt.Sprintf("%v", this.GroupID) + `,`,
  311. `OrderID:` + fmt.Sprintf("%v", this.OrderID) + `,`,
  312. `IsMaster:` + fmt.Sprintf("%v", this.IsMaster) + `,`,
  313. `UID:` + fmt.Sprintf("%v", this.UID) + `,`,
  314. `Status:` + fmt.Sprintf("%v", this.Status) + `,`,
  315. `PayTime:` + fmt.Sprintf("%v", this.PayTime) + `,`,
  316. `Ctime:` + fmt.Sprintf("%v", this.Ctime) + `,`,
  317. `SKUID:` + fmt.Sprintf("%v", this.SKUID) + `,`,
  318. `}`,
  319. }, "")
  320. return s
  321. }
  322. func (this *GetGroupOrdersMisRequest) String() string {
  323. if this == nil {
  324. return "nil"
  325. }
  326. s := strings.Join([]string{`&GetGroupOrdersMisRequest{`,
  327. `OrderID:` + fmt.Sprintf("%v", this.OrderID) + `,`,
  328. `GroupID:` + fmt.Sprintf("%v", this.GroupID) + `,`,
  329. `}`,
  330. }, "")
  331. return s
  332. }
  333. func (this *GetGroupOrdersMisResponse) String() string {
  334. if this == nil {
  335. return "nil"
  336. }
  337. s := strings.Join([]string{`&GetGroupOrdersMisResponse{`,
  338. `Orders:` + strings.Replace(fmt.Sprintf("%v", this.Orders), "PromoOrderMis", "PromoOrderMis", 1) + `,`,
  339. `}`,
  340. }, "")
  341. return s
  342. }
  343. func valueToStringPromotionMis(v interface{}) string {
  344. rv := reflect.ValueOf(v)
  345. if rv.IsNil() {
  346. return "nil"
  347. }
  348. pv := reflect.Indirect(rv).Interface()
  349. return fmt.Sprintf("*%v", pv)
  350. }
  351. func (m *PromoOrderMis) Unmarshal(dAtA []byte) error {
  352. l := len(dAtA)
  353. iNdEx := 0
  354. for iNdEx < l {
  355. preIndex := iNdEx
  356. var wire uint64
  357. for shift := uint(0); ; shift += 7 {
  358. if shift >= 64 {
  359. return ErrIntOverflowPromotionMis
  360. }
  361. if iNdEx >= l {
  362. return io.ErrUnexpectedEOF
  363. }
  364. b := dAtA[iNdEx]
  365. iNdEx++
  366. wire |= (uint64(b) & 0x7F) << shift
  367. if b < 0x80 {
  368. break
  369. }
  370. }
  371. fieldNum := int32(wire >> 3)
  372. wireType := int(wire & 0x7)
  373. if wireType == 4 {
  374. return fmt.Errorf("proto: PromoOrderMis: wiretype end group for non-group")
  375. }
  376. if fieldNum <= 0 {
  377. return fmt.Errorf("proto: PromoOrderMis: illegal tag %d (wire type %d)", fieldNum, wire)
  378. }
  379. switch fieldNum {
  380. case 1:
  381. if wireType != 0 {
  382. return fmt.Errorf("proto: wrong wireType = %d for field PromoID", wireType)
  383. }
  384. m.PromoID = 0
  385. for shift := uint(0); ; shift += 7 {
  386. if shift >= 64 {
  387. return ErrIntOverflowPromotionMis
  388. }
  389. if iNdEx >= l {
  390. return io.ErrUnexpectedEOF
  391. }
  392. b := dAtA[iNdEx]
  393. iNdEx++
  394. m.PromoID |= (int64(b) & 0x7F) << shift
  395. if b < 0x80 {
  396. break
  397. }
  398. }
  399. case 2:
  400. if wireType != 0 {
  401. return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType)
  402. }
  403. m.GroupID = 0
  404. for shift := uint(0); ; shift += 7 {
  405. if shift >= 64 {
  406. return ErrIntOverflowPromotionMis
  407. }
  408. if iNdEx >= l {
  409. return io.ErrUnexpectedEOF
  410. }
  411. b := dAtA[iNdEx]
  412. iNdEx++
  413. m.GroupID |= (int64(b) & 0x7F) << shift
  414. if b < 0x80 {
  415. break
  416. }
  417. }
  418. case 3:
  419. if wireType != 0 {
  420. return fmt.Errorf("proto: wrong wireType = %d for field OrderID", wireType)
  421. }
  422. m.OrderID = 0
  423. for shift := uint(0); ; shift += 7 {
  424. if shift >= 64 {
  425. return ErrIntOverflowPromotionMis
  426. }
  427. if iNdEx >= l {
  428. return io.ErrUnexpectedEOF
  429. }
  430. b := dAtA[iNdEx]
  431. iNdEx++
  432. m.OrderID |= (int64(b) & 0x7F) << shift
  433. if b < 0x80 {
  434. break
  435. }
  436. }
  437. case 4:
  438. if wireType != 0 {
  439. return fmt.Errorf("proto: wrong wireType = %d for field IsMaster", wireType)
  440. }
  441. m.IsMaster = 0
  442. for shift := uint(0); ; shift += 7 {
  443. if shift >= 64 {
  444. return ErrIntOverflowPromotionMis
  445. }
  446. if iNdEx >= l {
  447. return io.ErrUnexpectedEOF
  448. }
  449. b := dAtA[iNdEx]
  450. iNdEx++
  451. m.IsMaster |= (int16(b) & 0x7F) << shift
  452. if b < 0x80 {
  453. break
  454. }
  455. }
  456. case 5:
  457. if wireType != 0 {
  458. return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
  459. }
  460. m.UID = 0
  461. for shift := uint(0); ; shift += 7 {
  462. if shift >= 64 {
  463. return ErrIntOverflowPromotionMis
  464. }
  465. if iNdEx >= l {
  466. return io.ErrUnexpectedEOF
  467. }
  468. b := dAtA[iNdEx]
  469. iNdEx++
  470. m.UID |= (int64(b) & 0x7F) << shift
  471. if b < 0x80 {
  472. break
  473. }
  474. }
  475. case 6:
  476. if wireType != 0 {
  477. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  478. }
  479. m.Status = 0
  480. for shift := uint(0); ; shift += 7 {
  481. if shift >= 64 {
  482. return ErrIntOverflowPromotionMis
  483. }
  484. if iNdEx >= l {
  485. return io.ErrUnexpectedEOF
  486. }
  487. b := dAtA[iNdEx]
  488. iNdEx++
  489. m.Status |= (int16(b) & 0x7F) << shift
  490. if b < 0x80 {
  491. break
  492. }
  493. }
  494. case 7:
  495. if wireType != 0 {
  496. return fmt.Errorf("proto: wrong wireType = %d for field PayTime", wireType)
  497. }
  498. m.PayTime = 0
  499. for shift := uint(0); ; shift += 7 {
  500. if shift >= 64 {
  501. return ErrIntOverflowPromotionMis
  502. }
  503. if iNdEx >= l {
  504. return io.ErrUnexpectedEOF
  505. }
  506. b := dAtA[iNdEx]
  507. iNdEx++
  508. m.PayTime |= (int64(b) & 0x7F) << shift
  509. if b < 0x80 {
  510. break
  511. }
  512. }
  513. case 8:
  514. if wireType != 0 {
  515. return fmt.Errorf("proto: wrong wireType = %d for field Ctime", wireType)
  516. }
  517. m.Ctime = 0
  518. for shift := uint(0); ; shift += 7 {
  519. if shift >= 64 {
  520. return ErrIntOverflowPromotionMis
  521. }
  522. if iNdEx >= l {
  523. return io.ErrUnexpectedEOF
  524. }
  525. b := dAtA[iNdEx]
  526. iNdEx++
  527. m.Ctime |= (int64(b) & 0x7F) << shift
  528. if b < 0x80 {
  529. break
  530. }
  531. }
  532. case 9:
  533. if wireType != 0 {
  534. return fmt.Errorf("proto: wrong wireType = %d for field SKUID", wireType)
  535. }
  536. m.SKUID = 0
  537. for shift := uint(0); ; shift += 7 {
  538. if shift >= 64 {
  539. return ErrIntOverflowPromotionMis
  540. }
  541. if iNdEx >= l {
  542. return io.ErrUnexpectedEOF
  543. }
  544. b := dAtA[iNdEx]
  545. iNdEx++
  546. m.SKUID |= (int64(b) & 0x7F) << shift
  547. if b < 0x80 {
  548. break
  549. }
  550. }
  551. default:
  552. iNdEx = preIndex
  553. skippy, err := skipPromotionMis(dAtA[iNdEx:])
  554. if err != nil {
  555. return err
  556. }
  557. if skippy < 0 {
  558. return ErrInvalidLengthPromotionMis
  559. }
  560. if (iNdEx + skippy) > l {
  561. return io.ErrUnexpectedEOF
  562. }
  563. iNdEx += skippy
  564. }
  565. }
  566. if iNdEx > l {
  567. return io.ErrUnexpectedEOF
  568. }
  569. return nil
  570. }
  571. func (m *GetGroupOrdersMisRequest) Unmarshal(dAtA []byte) error {
  572. l := len(dAtA)
  573. iNdEx := 0
  574. for iNdEx < l {
  575. preIndex := iNdEx
  576. var wire uint64
  577. for shift := uint(0); ; shift += 7 {
  578. if shift >= 64 {
  579. return ErrIntOverflowPromotionMis
  580. }
  581. if iNdEx >= l {
  582. return io.ErrUnexpectedEOF
  583. }
  584. b := dAtA[iNdEx]
  585. iNdEx++
  586. wire |= (uint64(b) & 0x7F) << shift
  587. if b < 0x80 {
  588. break
  589. }
  590. }
  591. fieldNum := int32(wire >> 3)
  592. wireType := int(wire & 0x7)
  593. if wireType == 4 {
  594. return fmt.Errorf("proto: GetGroupOrdersMisRequest: wiretype end group for non-group")
  595. }
  596. if fieldNum <= 0 {
  597. return fmt.Errorf("proto: GetGroupOrdersMisRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  598. }
  599. switch fieldNum {
  600. case 1:
  601. if wireType != 0 {
  602. return fmt.Errorf("proto: wrong wireType = %d for field OrderID", wireType)
  603. }
  604. m.OrderID = 0
  605. for shift := uint(0); ; shift += 7 {
  606. if shift >= 64 {
  607. return ErrIntOverflowPromotionMis
  608. }
  609. if iNdEx >= l {
  610. return io.ErrUnexpectedEOF
  611. }
  612. b := dAtA[iNdEx]
  613. iNdEx++
  614. m.OrderID |= (int64(b) & 0x7F) << shift
  615. if b < 0x80 {
  616. break
  617. }
  618. }
  619. case 2:
  620. if wireType != 0 {
  621. return fmt.Errorf("proto: wrong wireType = %d for field GroupID", wireType)
  622. }
  623. m.GroupID = 0
  624. for shift := uint(0); ; shift += 7 {
  625. if shift >= 64 {
  626. return ErrIntOverflowPromotionMis
  627. }
  628. if iNdEx >= l {
  629. return io.ErrUnexpectedEOF
  630. }
  631. b := dAtA[iNdEx]
  632. iNdEx++
  633. m.GroupID |= (int64(b) & 0x7F) << shift
  634. if b < 0x80 {
  635. break
  636. }
  637. }
  638. default:
  639. iNdEx = preIndex
  640. skippy, err := skipPromotionMis(dAtA[iNdEx:])
  641. if err != nil {
  642. return err
  643. }
  644. if skippy < 0 {
  645. return ErrInvalidLengthPromotionMis
  646. }
  647. if (iNdEx + skippy) > l {
  648. return io.ErrUnexpectedEOF
  649. }
  650. iNdEx += skippy
  651. }
  652. }
  653. if iNdEx > l {
  654. return io.ErrUnexpectedEOF
  655. }
  656. return nil
  657. }
  658. func (m *GetGroupOrdersMisResponse) Unmarshal(dAtA []byte) error {
  659. l := len(dAtA)
  660. iNdEx := 0
  661. for iNdEx < l {
  662. preIndex := iNdEx
  663. var wire uint64
  664. for shift := uint(0); ; shift += 7 {
  665. if shift >= 64 {
  666. return ErrIntOverflowPromotionMis
  667. }
  668. if iNdEx >= l {
  669. return io.ErrUnexpectedEOF
  670. }
  671. b := dAtA[iNdEx]
  672. iNdEx++
  673. wire |= (uint64(b) & 0x7F) << shift
  674. if b < 0x80 {
  675. break
  676. }
  677. }
  678. fieldNum := int32(wire >> 3)
  679. wireType := int(wire & 0x7)
  680. if wireType == 4 {
  681. return fmt.Errorf("proto: GetGroupOrdersMisResponse: wiretype end group for non-group")
  682. }
  683. if fieldNum <= 0 {
  684. return fmt.Errorf("proto: GetGroupOrdersMisResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  685. }
  686. switch fieldNum {
  687. case 2:
  688. if wireType != 2 {
  689. return fmt.Errorf("proto: wrong wireType = %d for field Orders", wireType)
  690. }
  691. var msglen int
  692. for shift := uint(0); ; shift += 7 {
  693. if shift >= 64 {
  694. return ErrIntOverflowPromotionMis
  695. }
  696. if iNdEx >= l {
  697. return io.ErrUnexpectedEOF
  698. }
  699. b := dAtA[iNdEx]
  700. iNdEx++
  701. msglen |= (int(b) & 0x7F) << shift
  702. if b < 0x80 {
  703. break
  704. }
  705. }
  706. if msglen < 0 {
  707. return ErrInvalidLengthPromotionMis
  708. }
  709. postIndex := iNdEx + msglen
  710. if postIndex > l {
  711. return io.ErrUnexpectedEOF
  712. }
  713. m.Orders = append(m.Orders, &PromoOrderMis{})
  714. if err := m.Orders[len(m.Orders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  715. return err
  716. }
  717. iNdEx = postIndex
  718. default:
  719. iNdEx = preIndex
  720. skippy, err := skipPromotionMis(dAtA[iNdEx:])
  721. if err != nil {
  722. return err
  723. }
  724. if skippy < 0 {
  725. return ErrInvalidLengthPromotionMis
  726. }
  727. if (iNdEx + skippy) > l {
  728. return io.ErrUnexpectedEOF
  729. }
  730. iNdEx += skippy
  731. }
  732. }
  733. if iNdEx > l {
  734. return io.ErrUnexpectedEOF
  735. }
  736. return nil
  737. }
  738. func skipPromotionMis(dAtA []byte) (n int, err error) {
  739. l := len(dAtA)
  740. iNdEx := 0
  741. for iNdEx < l {
  742. var wire uint64
  743. for shift := uint(0); ; shift += 7 {
  744. if shift >= 64 {
  745. return 0, ErrIntOverflowPromotionMis
  746. }
  747. if iNdEx >= l {
  748. return 0, io.ErrUnexpectedEOF
  749. }
  750. b := dAtA[iNdEx]
  751. iNdEx++
  752. wire |= (uint64(b) & 0x7F) << shift
  753. if b < 0x80 {
  754. break
  755. }
  756. }
  757. wireType := int(wire & 0x7)
  758. switch wireType {
  759. case 0:
  760. for shift := uint(0); ; shift += 7 {
  761. if shift >= 64 {
  762. return 0, ErrIntOverflowPromotionMis
  763. }
  764. if iNdEx >= l {
  765. return 0, io.ErrUnexpectedEOF
  766. }
  767. iNdEx++
  768. if dAtA[iNdEx-1] < 0x80 {
  769. break
  770. }
  771. }
  772. return iNdEx, nil
  773. case 1:
  774. iNdEx += 8
  775. return iNdEx, nil
  776. case 2:
  777. var length int
  778. for shift := uint(0); ; shift += 7 {
  779. if shift >= 64 {
  780. return 0, ErrIntOverflowPromotionMis
  781. }
  782. if iNdEx >= l {
  783. return 0, io.ErrUnexpectedEOF
  784. }
  785. b := dAtA[iNdEx]
  786. iNdEx++
  787. length |= (int(b) & 0x7F) << shift
  788. if b < 0x80 {
  789. break
  790. }
  791. }
  792. iNdEx += length
  793. if length < 0 {
  794. return 0, ErrInvalidLengthPromotionMis
  795. }
  796. return iNdEx, nil
  797. case 3:
  798. for {
  799. var innerWire uint64
  800. var start int = iNdEx
  801. for shift := uint(0); ; shift += 7 {
  802. if shift >= 64 {
  803. return 0, ErrIntOverflowPromotionMis
  804. }
  805. if iNdEx >= l {
  806. return 0, io.ErrUnexpectedEOF
  807. }
  808. b := dAtA[iNdEx]
  809. iNdEx++
  810. innerWire |= (uint64(b) & 0x7F) << shift
  811. if b < 0x80 {
  812. break
  813. }
  814. }
  815. innerWireType := int(innerWire & 0x7)
  816. if innerWireType == 4 {
  817. break
  818. }
  819. next, err := skipPromotionMis(dAtA[start:])
  820. if err != nil {
  821. return 0, err
  822. }
  823. iNdEx = start + next
  824. }
  825. return iNdEx, nil
  826. case 4:
  827. return iNdEx, nil
  828. case 5:
  829. iNdEx += 4
  830. return iNdEx, nil
  831. default:
  832. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  833. }
  834. }
  835. panic("unreachable")
  836. }
  837. var (
  838. ErrInvalidLengthPromotionMis = fmt.Errorf("proto: negative length found during unmarshaling")
  839. ErrIntOverflowPromotionMis = fmt.Errorf("proto: integer overflow")
  840. )
  841. func init() {
  842. proto.RegisterFile("app/service/openplatform/ticket-sales/api/grpc/v1/promotion_mis.proto", fileDescriptorPromotionMis)
  843. }
  844. var fileDescriptorPromotionMis = []byte{
  845. // 552 bytes of a gzipped FileDescriptorProto
  846. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x31, 0x8f, 0xd3, 0x4c,
  847. 0x10, 0x8d, 0xe3, 0xcf, 0x71, 0xb2, 0xdf, 0x01, 0xc2, 0x27, 0x71, 0xe6, 0x84, 0xec, 0xc8, 0x05,
  848. 0x44, 0x41, 0x67, 0x2b, 0x39, 0x89, 0x82, 0x32, 0x22, 0x3a, 0x05, 0x14, 0x71, 0x32, 0xd0, 0xd0,
  849. 0x44, 0x4e, 0xbc, 0x67, 0x56, 0x39, 0x67, 0x17, 0xef, 0x3a, 0xd2, 0x49, 0x14, 0xfc, 0x00, 0xfe,
  850. 0x06, 0x12, 0x3f, 0xe5, 0x4a, 0x4a, 0x2a, 0x8b, 0x73, 0x99, 0x92, 0x92, 0x0a, 0xed, 0xac, 0x73,
  851. 0x06, 0x1d, 0x29, 0x68, 0xec, 0xf1, 0x9b, 0x79, 0x6f, 0xd6, 0x6f, 0x66, 0xd1, 0x38, 0x62, 0x2c,
  852. 0xe0, 0x38, 0x5b, 0x93, 0x05, 0x0e, 0x28, 0xc3, 0x2b, 0x76, 0x1e, 0x89, 0x33, 0x9a, 0xa5, 0x81,
  853. 0x20, 0x8b, 0x25, 0x16, 0x47, 0x3c, 0x3a, 0xc7, 0x3c, 0x88, 0x18, 0x09, 0x92, 0x8c, 0x2d, 0x82,
  854. 0xf5, 0x20, 0x60, 0x19, 0x4d, 0xa9, 0x20, 0x74, 0x35, 0x4b, 0x09, 0xf7, 0x59, 0x46, 0x05, 0xb5,
  855. 0x0e, 0x54, 0xb5, 0x5f, 0x29, 0xf9, 0xc0, 0xf2, 0xd7, 0x83, 0xc3, 0xa3, 0x84, 0x88, 0x77, 0xf9,
  856. 0xdc, 0x5f, 0xd0, 0x34, 0x48, 0x68, 0x42, 0x03, 0xa8, 0x9f, 0xe7, 0x67, 0xf0, 0x05, 0x1f, 0x10,
  857. 0x29, 0x1d, 0xef, 0xb3, 0x8e, 0x6e, 0x9d, 0x4a, 0xfd, 0x97, 0x59, 0x8c, 0xb3, 0x29, 0xe1, 0xd6,
  858. 0x10, 0xb5, 0xa1, 0xe1, 0x8c, 0xc4, 0xb6, 0xd6, 0xd5, 0x7a, 0xfa, 0xe8, 0xa0, 0x2c, 0x5c, 0x13,
  859. 0x8a, 0x26, 0xcf, 0x36, 0x85, 0x7b, 0x9d, 0x0e, 0x4d, 0x88, 0x26, 0xb1, 0xe4, 0x24, 0x19, 0xcd,
  860. 0x99, 0xe4, 0x34, 0x6b, 0xce, 0x89, 0xc4, 0x14, 0x67, 0x9b, 0x0e, 0x4d, 0x88, 0x14, 0x87, 0xca,
  861. 0x9e, 0x92, 0xa3, 0xd7, 0x1c, 0x38, 0x87, 0xe2, 0x6c, 0xd3, 0xa1, 0x09, 0xd1, 0x24, 0xb6, 0x8e,
  862. 0x51, 0x87, 0xf0, 0x59, 0x1a, 0x71, 0x81, 0x33, 0xfb, 0xbf, 0xae, 0xd6, 0x33, 0x46, 0xf7, 0x36,
  863. 0x85, 0x5b, 0x83, 0x3f, 0x0b, 0xd7, 0x20, 0x2b, 0x31, 0x78, 0x12, 0xb6, 0x09, 0x9f, 0x02, 0x64,
  864. 0x75, 0x91, 0x9e, 0x93, 0xd8, 0x36, 0xa0, 0xc7, 0xed, 0xb2, 0x70, 0xf5, 0x37, 0xa0, 0x2f, 0xd1,
  865. 0x50, 0x3e, 0xac, 0xc7, 0xa8, 0xc5, 0x45, 0x24, 0x72, 0x6e, 0xb7, 0x40, 0x73, 0x7f, 0x53, 0xb8,
  866. 0x15, 0x52, 0x0b, 0x56, 0x80, 0xf5, 0x08, 0xb5, 0x59, 0x74, 0x31, 0x13, 0x24, 0xc5, 0xb6, 0x09,
  867. 0x9a, 0x7b, 0x60, 0x4a, 0x85, 0x85, 0x26, 0x8b, 0x2e, 0x5e, 0x93, 0x14, 0x5b, 0x2e, 0x32, 0x16,
  868. 0x50, 0xd5, 0x86, 0xaa, 0xce, 0xa6, 0x70, 0x15, 0x10, 0xaa, 0x97, 0xd5, 0x47, 0x2d, 0xbe, 0xcc,
  869. 0xe5, 0xff, 0x77, 0xa0, 0x62, 0xbf, 0x2c, 0x5c, 0xe3, 0xd5, 0x0b, 0x75, 0xba, 0x2a, 0x15, 0x1a,
  870. 0x7c, 0x99, 0x4f, 0x62, 0xef, 0x8b, 0x86, 0xec, 0x13, 0x2c, 0xc0, 0x51, 0xb0, 0x88, 0x4f, 0x09,
  871. 0x0f, 0xf1, 0xfb, 0x1c, 0x73, 0x61, 0x8d, 0x7f, 0xb3, 0x52, 0x8d, 0xac, 0xbf, 0xc3, 0xca, 0x1f,
  872. 0x85, 0x7b, 0x47, 0x2e, 0xdb, 0x53, 0x6f, 0x8b, 0x78, 0xb5, 0xbb, 0xe3, 0x1b, 0x53, 0xec, 0xef,
  873. 0x98, 0x62, 0x2d, 0xb3, 0x45, 0xbc, 0xeb, 0xc1, 0x7a, 0x09, 0xba, 0xff, 0x97, 0x93, 0x72, 0x46,
  874. 0x57, 0x1c, 0x5b, 0xcf, 0x51, 0x0b, 0xda, 0x71, 0xbb, 0xd9, 0xd5, 0x7b, 0xff, 0x0f, 0x1f, 0xfa,
  875. 0x3b, 0x16, 0xd9, 0xff, 0x63, 0x2b, 0x47, 0x48, 0x5a, 0xa2, 0x98, 0x61, 0xf5, 0x1e, 0x7e, 0xd2,
  876. 0xd0, 0xde, 0xe9, 0xf6, 0x6e, 0xc8, 0xd5, 0xfd, 0x80, 0xee, 0xde, 0xe8, 0x6c, 0x0d, 0x76, 0x76,
  877. 0xd8, 0xe5, 0xe7, 0xe1, 0xf0, 0x5f, 0x28, 0xea, 0xc7, 0xbc, 0xc6, 0xe8, 0xc1, 0xe5, 0x95, 0xd3,
  878. 0xf8, 0x76, 0xe5, 0x34, 0x3e, 0x96, 0x8e, 0x76, 0x59, 0x3a, 0xda, 0xd7, 0xd2, 0xd1, 0xbe, 0x97,
  879. 0x8e, 0xf6, 0xb6, 0xb9, 0x1e, 0xcc, 0x5b, 0x70, 0xdf, 0x8e, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff,
  880. 0x5a, 0xdf, 0xa3, 0x84, 0x00, 0x04, 0x00, 0x00,
  881. }