PayGoods.pb.go 101 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: v0/PayGoods.proto
  3. package v0
  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 io "io"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  18. type PayGoodsAddReq struct {
  19. // 平台
  20. Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform"`
  21. // 商品名称
  22. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title"`
  23. // 商品类型 2 付费直播门票
  24. Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type"`
  25. // 商品价格(分)
  26. Price int64 `protobuf:"varint,4,opt,name=price,proto3" json:"price"`
  27. // 开始时间
  28. StartTime string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time"`
  29. // 结束时间
  30. EndTime string `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time"`
  31. // ip限制,0不限制,1仅限大陆,2仅限港澳台,3大陆+港澳台
  32. IpLimit int64 `protobuf:"varint,7,opt,name=ip_limit,json=ipLimit,proto3" json:"ip_limit"`
  33. }
  34. func (m *PayGoodsAddReq) Reset() { *m = PayGoodsAddReq{} }
  35. func (m *PayGoodsAddReq) String() string { return proto.CompactTextString(m) }
  36. func (*PayGoodsAddReq) ProtoMessage() {}
  37. func (*PayGoodsAddReq) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_PayGoods_35a38e54252e0017, []int{0}
  39. }
  40. func (m *PayGoodsAddReq) XXX_Unmarshal(b []byte) error {
  41. return m.Unmarshal(b)
  42. }
  43. func (m *PayGoodsAddReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. if deterministic {
  45. return xxx_messageInfo_PayGoodsAddReq.Marshal(b, m, deterministic)
  46. } else {
  47. b = b[:cap(b)]
  48. n, err := m.MarshalTo(b)
  49. if err != nil {
  50. return nil, err
  51. }
  52. return b[:n], nil
  53. }
  54. }
  55. func (dst *PayGoodsAddReq) XXX_Merge(src proto.Message) {
  56. xxx_messageInfo_PayGoodsAddReq.Merge(dst, src)
  57. }
  58. func (m *PayGoodsAddReq) XXX_Size() int {
  59. return m.Size()
  60. }
  61. func (m *PayGoodsAddReq) XXX_DiscardUnknown() {
  62. xxx_messageInfo_PayGoodsAddReq.DiscardUnknown(m)
  63. }
  64. var xxx_messageInfo_PayGoodsAddReq proto.InternalMessageInfo
  65. func (m *PayGoodsAddReq) GetPlatform() string {
  66. if m != nil {
  67. return m.Platform
  68. }
  69. return ""
  70. }
  71. func (m *PayGoodsAddReq) GetTitle() string {
  72. if m != nil {
  73. return m.Title
  74. }
  75. return ""
  76. }
  77. func (m *PayGoodsAddReq) GetType() int64 {
  78. if m != nil {
  79. return m.Type
  80. }
  81. return 0
  82. }
  83. func (m *PayGoodsAddReq) GetPrice() int64 {
  84. if m != nil {
  85. return m.Price
  86. }
  87. return 0
  88. }
  89. func (m *PayGoodsAddReq) GetStartTime() string {
  90. if m != nil {
  91. return m.StartTime
  92. }
  93. return ""
  94. }
  95. func (m *PayGoodsAddReq) GetEndTime() string {
  96. if m != nil {
  97. return m.EndTime
  98. }
  99. return ""
  100. }
  101. func (m *PayGoodsAddReq) GetIpLimit() int64 {
  102. if m != nil {
  103. return m.IpLimit
  104. }
  105. return 0
  106. }
  107. type PayGoodsAddResp struct {
  108. // 返回code
  109. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  110. // 返回msg
  111. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  112. // 返回data
  113. Data *PayGoodsAddResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  114. }
  115. func (m *PayGoodsAddResp) Reset() { *m = PayGoodsAddResp{} }
  116. func (m *PayGoodsAddResp) String() string { return proto.CompactTextString(m) }
  117. func (*PayGoodsAddResp) ProtoMessage() {}
  118. func (*PayGoodsAddResp) Descriptor() ([]byte, []int) {
  119. return fileDescriptor_PayGoods_35a38e54252e0017, []int{1}
  120. }
  121. func (m *PayGoodsAddResp) XXX_Unmarshal(b []byte) error {
  122. return m.Unmarshal(b)
  123. }
  124. func (m *PayGoodsAddResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  125. if deterministic {
  126. return xxx_messageInfo_PayGoodsAddResp.Marshal(b, m, deterministic)
  127. } else {
  128. b = b[:cap(b)]
  129. n, err := m.MarshalTo(b)
  130. if err != nil {
  131. return nil, err
  132. }
  133. return b[:n], nil
  134. }
  135. }
  136. func (dst *PayGoodsAddResp) XXX_Merge(src proto.Message) {
  137. xxx_messageInfo_PayGoodsAddResp.Merge(dst, src)
  138. }
  139. func (m *PayGoodsAddResp) XXX_Size() int {
  140. return m.Size()
  141. }
  142. func (m *PayGoodsAddResp) XXX_DiscardUnknown() {
  143. xxx_messageInfo_PayGoodsAddResp.DiscardUnknown(m)
  144. }
  145. var xxx_messageInfo_PayGoodsAddResp proto.InternalMessageInfo
  146. func (m *PayGoodsAddResp) GetCode() int64 {
  147. if m != nil {
  148. return m.Code
  149. }
  150. return 0
  151. }
  152. func (m *PayGoodsAddResp) GetMsg() string {
  153. if m != nil {
  154. return m.Msg
  155. }
  156. return ""
  157. }
  158. func (m *PayGoodsAddResp) GetData() *PayGoodsAddResp_Data {
  159. if m != nil {
  160. return m.Data
  161. }
  162. return nil
  163. }
  164. type PayGoodsAddResp_Data struct {
  165. }
  166. func (m *PayGoodsAddResp_Data) Reset() { *m = PayGoodsAddResp_Data{} }
  167. func (m *PayGoodsAddResp_Data) String() string { return proto.CompactTextString(m) }
  168. func (*PayGoodsAddResp_Data) ProtoMessage() {}
  169. func (*PayGoodsAddResp_Data) Descriptor() ([]byte, []int) {
  170. return fileDescriptor_PayGoods_35a38e54252e0017, []int{1, 0}
  171. }
  172. func (m *PayGoodsAddResp_Data) XXX_Unmarshal(b []byte) error {
  173. return m.Unmarshal(b)
  174. }
  175. func (m *PayGoodsAddResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  176. if deterministic {
  177. return xxx_messageInfo_PayGoodsAddResp_Data.Marshal(b, m, deterministic)
  178. } else {
  179. b = b[:cap(b)]
  180. n, err := m.MarshalTo(b)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return b[:n], nil
  185. }
  186. }
  187. func (dst *PayGoodsAddResp_Data) XXX_Merge(src proto.Message) {
  188. xxx_messageInfo_PayGoodsAddResp_Data.Merge(dst, src)
  189. }
  190. func (m *PayGoodsAddResp_Data) XXX_Size() int {
  191. return m.Size()
  192. }
  193. func (m *PayGoodsAddResp_Data) XXX_DiscardUnknown() {
  194. xxx_messageInfo_PayGoodsAddResp_Data.DiscardUnknown(m)
  195. }
  196. var xxx_messageInfo_PayGoodsAddResp_Data proto.InternalMessageInfo
  197. type PayGoodsUpdateReq struct {
  198. // 购票id
  199. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  200. // 平台
  201. Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"`
  202. // 商品名称
  203. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title"`
  204. // 商品类型 2 付费直播门票
  205. Type int64 `protobuf:"varint,4,opt,name=type,proto3" json:"type"`
  206. // 商品价格(分)
  207. Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price"`
  208. // 开始时间
  209. StartTime string `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time"`
  210. // 结束时间
  211. EndTime string `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time"`
  212. // ip限制,0不限制,1仅限大陆,2仅限港澳台,3大陆+港澳台
  213. IpLimit int64 `protobuf:"varint,8,opt,name=ip_limit,json=ipLimit,proto3" json:"ip_limit"`
  214. }
  215. func (m *PayGoodsUpdateReq) Reset() { *m = PayGoodsUpdateReq{} }
  216. func (m *PayGoodsUpdateReq) String() string { return proto.CompactTextString(m) }
  217. func (*PayGoodsUpdateReq) ProtoMessage() {}
  218. func (*PayGoodsUpdateReq) Descriptor() ([]byte, []int) {
  219. return fileDescriptor_PayGoods_35a38e54252e0017, []int{2}
  220. }
  221. func (m *PayGoodsUpdateReq) XXX_Unmarshal(b []byte) error {
  222. return m.Unmarshal(b)
  223. }
  224. func (m *PayGoodsUpdateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  225. if deterministic {
  226. return xxx_messageInfo_PayGoodsUpdateReq.Marshal(b, m, deterministic)
  227. } else {
  228. b = b[:cap(b)]
  229. n, err := m.MarshalTo(b)
  230. if err != nil {
  231. return nil, err
  232. }
  233. return b[:n], nil
  234. }
  235. }
  236. func (dst *PayGoodsUpdateReq) XXX_Merge(src proto.Message) {
  237. xxx_messageInfo_PayGoodsUpdateReq.Merge(dst, src)
  238. }
  239. func (m *PayGoodsUpdateReq) XXX_Size() int {
  240. return m.Size()
  241. }
  242. func (m *PayGoodsUpdateReq) XXX_DiscardUnknown() {
  243. xxx_messageInfo_PayGoodsUpdateReq.DiscardUnknown(m)
  244. }
  245. var xxx_messageInfo_PayGoodsUpdateReq proto.InternalMessageInfo
  246. func (m *PayGoodsUpdateReq) GetId() int64 {
  247. if m != nil {
  248. return m.Id
  249. }
  250. return 0
  251. }
  252. func (m *PayGoodsUpdateReq) GetPlatform() string {
  253. if m != nil {
  254. return m.Platform
  255. }
  256. return ""
  257. }
  258. func (m *PayGoodsUpdateReq) GetTitle() string {
  259. if m != nil {
  260. return m.Title
  261. }
  262. return ""
  263. }
  264. func (m *PayGoodsUpdateReq) GetType() int64 {
  265. if m != nil {
  266. return m.Type
  267. }
  268. return 0
  269. }
  270. func (m *PayGoodsUpdateReq) GetPrice() int64 {
  271. if m != nil {
  272. return m.Price
  273. }
  274. return 0
  275. }
  276. func (m *PayGoodsUpdateReq) GetStartTime() string {
  277. if m != nil {
  278. return m.StartTime
  279. }
  280. return ""
  281. }
  282. func (m *PayGoodsUpdateReq) GetEndTime() string {
  283. if m != nil {
  284. return m.EndTime
  285. }
  286. return ""
  287. }
  288. func (m *PayGoodsUpdateReq) GetIpLimit() int64 {
  289. if m != nil {
  290. return m.IpLimit
  291. }
  292. return 0
  293. }
  294. type PayGoodsUpdateResp struct {
  295. // 返回code
  296. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  297. // 返回msg
  298. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  299. // 返回data
  300. Data *PayGoodsUpdateResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  301. }
  302. func (m *PayGoodsUpdateResp) Reset() { *m = PayGoodsUpdateResp{} }
  303. func (m *PayGoodsUpdateResp) String() string { return proto.CompactTextString(m) }
  304. func (*PayGoodsUpdateResp) ProtoMessage() {}
  305. func (*PayGoodsUpdateResp) Descriptor() ([]byte, []int) {
  306. return fileDescriptor_PayGoods_35a38e54252e0017, []int{3}
  307. }
  308. func (m *PayGoodsUpdateResp) XXX_Unmarshal(b []byte) error {
  309. return m.Unmarshal(b)
  310. }
  311. func (m *PayGoodsUpdateResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  312. if deterministic {
  313. return xxx_messageInfo_PayGoodsUpdateResp.Marshal(b, m, deterministic)
  314. } else {
  315. b = b[:cap(b)]
  316. n, err := m.MarshalTo(b)
  317. if err != nil {
  318. return nil, err
  319. }
  320. return b[:n], nil
  321. }
  322. }
  323. func (dst *PayGoodsUpdateResp) XXX_Merge(src proto.Message) {
  324. xxx_messageInfo_PayGoodsUpdateResp.Merge(dst, src)
  325. }
  326. func (m *PayGoodsUpdateResp) XXX_Size() int {
  327. return m.Size()
  328. }
  329. func (m *PayGoodsUpdateResp) XXX_DiscardUnknown() {
  330. xxx_messageInfo_PayGoodsUpdateResp.DiscardUnknown(m)
  331. }
  332. var xxx_messageInfo_PayGoodsUpdateResp proto.InternalMessageInfo
  333. func (m *PayGoodsUpdateResp) GetCode() int64 {
  334. if m != nil {
  335. return m.Code
  336. }
  337. return 0
  338. }
  339. func (m *PayGoodsUpdateResp) GetMsg() string {
  340. if m != nil {
  341. return m.Msg
  342. }
  343. return ""
  344. }
  345. func (m *PayGoodsUpdateResp) GetData() *PayGoodsUpdateResp_Data {
  346. if m != nil {
  347. return m.Data
  348. }
  349. return nil
  350. }
  351. type PayGoodsUpdateResp_Data struct {
  352. }
  353. func (m *PayGoodsUpdateResp_Data) Reset() { *m = PayGoodsUpdateResp_Data{} }
  354. func (m *PayGoodsUpdateResp_Data) String() string { return proto.CompactTextString(m) }
  355. func (*PayGoodsUpdateResp_Data) ProtoMessage() {}
  356. func (*PayGoodsUpdateResp_Data) Descriptor() ([]byte, []int) {
  357. return fileDescriptor_PayGoods_35a38e54252e0017, []int{3, 0}
  358. }
  359. func (m *PayGoodsUpdateResp_Data) XXX_Unmarshal(b []byte) error {
  360. return m.Unmarshal(b)
  361. }
  362. func (m *PayGoodsUpdateResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  363. if deterministic {
  364. return xxx_messageInfo_PayGoodsUpdateResp_Data.Marshal(b, m, deterministic)
  365. } else {
  366. b = b[:cap(b)]
  367. n, err := m.MarshalTo(b)
  368. if err != nil {
  369. return nil, err
  370. }
  371. return b[:n], nil
  372. }
  373. }
  374. func (dst *PayGoodsUpdateResp_Data) XXX_Merge(src proto.Message) {
  375. xxx_messageInfo_PayGoodsUpdateResp_Data.Merge(dst, src)
  376. }
  377. func (m *PayGoodsUpdateResp_Data) XXX_Size() int {
  378. return m.Size()
  379. }
  380. func (m *PayGoodsUpdateResp_Data) XXX_DiscardUnknown() {
  381. xxx_messageInfo_PayGoodsUpdateResp_Data.DiscardUnknown(m)
  382. }
  383. var xxx_messageInfo_PayGoodsUpdateResp_Data proto.InternalMessageInfo
  384. type PayGoodsGetListReq struct {
  385. // 购票id
  386. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  387. // 平台
  388. Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform"`
  389. // 商品名称
  390. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title"`
  391. // 商品类型 2 付费直播门票
  392. Type int64 `protobuf:"varint,4,opt,name=type,proto3" json:"type"`
  393. // ip限制,0不限制,1仅限大陆,2仅限港澳台,3大陆+港澳台
  394. IpLimit int64 `protobuf:"varint,5,opt,name=ip_limit,json=ipLimit,proto3" json:"ip_limit"`
  395. // 页号,0开始
  396. PageNum int64 `protobuf:"varint,6,opt,name=page_num,json=pageNum,proto3" json:"page_num"`
  397. // 每页个数
  398. PageSize int64 `protobuf:"varint,7,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
  399. }
  400. func (m *PayGoodsGetListReq) Reset() { *m = PayGoodsGetListReq{} }
  401. func (m *PayGoodsGetListReq) String() string { return proto.CompactTextString(m) }
  402. func (*PayGoodsGetListReq) ProtoMessage() {}
  403. func (*PayGoodsGetListReq) Descriptor() ([]byte, []int) {
  404. return fileDescriptor_PayGoods_35a38e54252e0017, []int{4}
  405. }
  406. func (m *PayGoodsGetListReq) XXX_Unmarshal(b []byte) error {
  407. return m.Unmarshal(b)
  408. }
  409. func (m *PayGoodsGetListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  410. if deterministic {
  411. return xxx_messageInfo_PayGoodsGetListReq.Marshal(b, m, deterministic)
  412. } else {
  413. b = b[:cap(b)]
  414. n, err := m.MarshalTo(b)
  415. if err != nil {
  416. return nil, err
  417. }
  418. return b[:n], nil
  419. }
  420. }
  421. func (dst *PayGoodsGetListReq) XXX_Merge(src proto.Message) {
  422. xxx_messageInfo_PayGoodsGetListReq.Merge(dst, src)
  423. }
  424. func (m *PayGoodsGetListReq) XXX_Size() int {
  425. return m.Size()
  426. }
  427. func (m *PayGoodsGetListReq) XXX_DiscardUnknown() {
  428. xxx_messageInfo_PayGoodsGetListReq.DiscardUnknown(m)
  429. }
  430. var xxx_messageInfo_PayGoodsGetListReq proto.InternalMessageInfo
  431. func (m *PayGoodsGetListReq) GetId() int64 {
  432. if m != nil {
  433. return m.Id
  434. }
  435. return 0
  436. }
  437. func (m *PayGoodsGetListReq) GetPlatform() string {
  438. if m != nil {
  439. return m.Platform
  440. }
  441. return ""
  442. }
  443. func (m *PayGoodsGetListReq) GetTitle() string {
  444. if m != nil {
  445. return m.Title
  446. }
  447. return ""
  448. }
  449. func (m *PayGoodsGetListReq) GetType() int64 {
  450. if m != nil {
  451. return m.Type
  452. }
  453. return 0
  454. }
  455. func (m *PayGoodsGetListReq) GetIpLimit() int64 {
  456. if m != nil {
  457. return m.IpLimit
  458. }
  459. return 0
  460. }
  461. func (m *PayGoodsGetListReq) GetPageNum() int64 {
  462. if m != nil {
  463. return m.PageNum
  464. }
  465. return 0
  466. }
  467. func (m *PayGoodsGetListReq) GetPageSize() int64 {
  468. if m != nil {
  469. return m.PageSize
  470. }
  471. return 0
  472. }
  473. type PayGoodsGetListResp struct {
  474. // 返回code
  475. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  476. // 返回msg
  477. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  478. // 返回data
  479. Data *PayGoodsGetListResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  480. }
  481. func (m *PayGoodsGetListResp) Reset() { *m = PayGoodsGetListResp{} }
  482. func (m *PayGoodsGetListResp) String() string { return proto.CompactTextString(m) }
  483. func (*PayGoodsGetListResp) ProtoMessage() {}
  484. func (*PayGoodsGetListResp) Descriptor() ([]byte, []int) {
  485. return fileDescriptor_PayGoods_35a38e54252e0017, []int{5}
  486. }
  487. func (m *PayGoodsGetListResp) XXX_Unmarshal(b []byte) error {
  488. return m.Unmarshal(b)
  489. }
  490. func (m *PayGoodsGetListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  491. if deterministic {
  492. return xxx_messageInfo_PayGoodsGetListResp.Marshal(b, m, deterministic)
  493. } else {
  494. b = b[:cap(b)]
  495. n, err := m.MarshalTo(b)
  496. if err != nil {
  497. return nil, err
  498. }
  499. return b[:n], nil
  500. }
  501. }
  502. func (dst *PayGoodsGetListResp) XXX_Merge(src proto.Message) {
  503. xxx_messageInfo_PayGoodsGetListResp.Merge(dst, src)
  504. }
  505. func (m *PayGoodsGetListResp) XXX_Size() int {
  506. return m.Size()
  507. }
  508. func (m *PayGoodsGetListResp) XXX_DiscardUnknown() {
  509. xxx_messageInfo_PayGoodsGetListResp.DiscardUnknown(m)
  510. }
  511. var xxx_messageInfo_PayGoodsGetListResp proto.InternalMessageInfo
  512. func (m *PayGoodsGetListResp) GetCode() int64 {
  513. if m != nil {
  514. return m.Code
  515. }
  516. return 0
  517. }
  518. func (m *PayGoodsGetListResp) GetMsg() string {
  519. if m != nil {
  520. return m.Msg
  521. }
  522. return ""
  523. }
  524. func (m *PayGoodsGetListResp) GetData() *PayGoodsGetListResp_Data {
  525. if m != nil {
  526. return m.Data
  527. }
  528. return nil
  529. }
  530. type PayGoodsGetListResp_PageInfo struct {
  531. // 记录总数
  532. TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count"`
  533. // 当前页号
  534. PageNum int64 `protobuf:"varint,2,opt,name=page_num,json=pageNum,proto3" json:"page_num"`
  535. }
  536. func (m *PayGoodsGetListResp_PageInfo) Reset() { *m = PayGoodsGetListResp_PageInfo{} }
  537. func (m *PayGoodsGetListResp_PageInfo) String() string { return proto.CompactTextString(m) }
  538. func (*PayGoodsGetListResp_PageInfo) ProtoMessage() {}
  539. func (*PayGoodsGetListResp_PageInfo) Descriptor() ([]byte, []int) {
  540. return fileDescriptor_PayGoods_35a38e54252e0017, []int{5, 0}
  541. }
  542. func (m *PayGoodsGetListResp_PageInfo) XXX_Unmarshal(b []byte) error {
  543. return m.Unmarshal(b)
  544. }
  545. func (m *PayGoodsGetListResp_PageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  546. if deterministic {
  547. return xxx_messageInfo_PayGoodsGetListResp_PageInfo.Marshal(b, m, deterministic)
  548. } else {
  549. b = b[:cap(b)]
  550. n, err := m.MarshalTo(b)
  551. if err != nil {
  552. return nil, err
  553. }
  554. return b[:n], nil
  555. }
  556. }
  557. func (dst *PayGoodsGetListResp_PageInfo) XXX_Merge(src proto.Message) {
  558. xxx_messageInfo_PayGoodsGetListResp_PageInfo.Merge(dst, src)
  559. }
  560. func (m *PayGoodsGetListResp_PageInfo) XXX_Size() int {
  561. return m.Size()
  562. }
  563. func (m *PayGoodsGetListResp_PageInfo) XXX_DiscardUnknown() {
  564. xxx_messageInfo_PayGoodsGetListResp_PageInfo.DiscardUnknown(m)
  565. }
  566. var xxx_messageInfo_PayGoodsGetListResp_PageInfo proto.InternalMessageInfo
  567. func (m *PayGoodsGetListResp_PageInfo) GetTotalCount() int64 {
  568. if m != nil {
  569. return m.TotalCount
  570. }
  571. return 0
  572. }
  573. func (m *PayGoodsGetListResp_PageInfo) GetPageNum() int64 {
  574. if m != nil {
  575. return m.PageNum
  576. }
  577. return 0
  578. }
  579. type PayGoodsGetListResp_GoodsInfo struct {
  580. // 购票id
  581. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  582. // 标题
  583. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title"`
  584. // 平台
  585. Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform"`
  586. // 类型,2为付费直播
  587. Type int64 `protobuf:"varint,4,opt,name=type,proto3" json:"type"`
  588. // 价格,分
  589. Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price"`
  590. // 开始购票时间
  591. StartTime string `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time"`
  592. // 结束购票时间
  593. EndTime string `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time"`
  594. // ip限制
  595. IpLimit int64 `protobuf:"varint,8,opt,name=ip_limit,json=ipLimit,proto3" json:"ip_limit"`
  596. // 购票状态,0关闭,1购票中,2未开始
  597. Status int64 `protobuf:"varint,9,opt,name=status,proto3" json:"status"`
  598. }
  599. func (m *PayGoodsGetListResp_GoodsInfo) Reset() { *m = PayGoodsGetListResp_GoodsInfo{} }
  600. func (m *PayGoodsGetListResp_GoodsInfo) String() string { return proto.CompactTextString(m) }
  601. func (*PayGoodsGetListResp_GoodsInfo) ProtoMessage() {}
  602. func (*PayGoodsGetListResp_GoodsInfo) Descriptor() ([]byte, []int) {
  603. return fileDescriptor_PayGoods_35a38e54252e0017, []int{5, 1}
  604. }
  605. func (m *PayGoodsGetListResp_GoodsInfo) XXX_Unmarshal(b []byte) error {
  606. return m.Unmarshal(b)
  607. }
  608. func (m *PayGoodsGetListResp_GoodsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  609. if deterministic {
  610. return xxx_messageInfo_PayGoodsGetListResp_GoodsInfo.Marshal(b, m, deterministic)
  611. } else {
  612. b = b[:cap(b)]
  613. n, err := m.MarshalTo(b)
  614. if err != nil {
  615. return nil, err
  616. }
  617. return b[:n], nil
  618. }
  619. }
  620. func (dst *PayGoodsGetListResp_GoodsInfo) XXX_Merge(src proto.Message) {
  621. xxx_messageInfo_PayGoodsGetListResp_GoodsInfo.Merge(dst, src)
  622. }
  623. func (m *PayGoodsGetListResp_GoodsInfo) XXX_Size() int {
  624. return m.Size()
  625. }
  626. func (m *PayGoodsGetListResp_GoodsInfo) XXX_DiscardUnknown() {
  627. xxx_messageInfo_PayGoodsGetListResp_GoodsInfo.DiscardUnknown(m)
  628. }
  629. var xxx_messageInfo_PayGoodsGetListResp_GoodsInfo proto.InternalMessageInfo
  630. func (m *PayGoodsGetListResp_GoodsInfo) GetId() int64 {
  631. if m != nil {
  632. return m.Id
  633. }
  634. return 0
  635. }
  636. func (m *PayGoodsGetListResp_GoodsInfo) GetTitle() string {
  637. if m != nil {
  638. return m.Title
  639. }
  640. return ""
  641. }
  642. func (m *PayGoodsGetListResp_GoodsInfo) GetPlatform() string {
  643. if m != nil {
  644. return m.Platform
  645. }
  646. return ""
  647. }
  648. func (m *PayGoodsGetListResp_GoodsInfo) GetType() int64 {
  649. if m != nil {
  650. return m.Type
  651. }
  652. return 0
  653. }
  654. func (m *PayGoodsGetListResp_GoodsInfo) GetPrice() int64 {
  655. if m != nil {
  656. return m.Price
  657. }
  658. return 0
  659. }
  660. func (m *PayGoodsGetListResp_GoodsInfo) GetStartTime() string {
  661. if m != nil {
  662. return m.StartTime
  663. }
  664. return ""
  665. }
  666. func (m *PayGoodsGetListResp_GoodsInfo) GetEndTime() string {
  667. if m != nil {
  668. return m.EndTime
  669. }
  670. return ""
  671. }
  672. func (m *PayGoodsGetListResp_GoodsInfo) GetIpLimit() int64 {
  673. if m != nil {
  674. return m.IpLimit
  675. }
  676. return 0
  677. }
  678. func (m *PayGoodsGetListResp_GoodsInfo) GetStatus() int64 {
  679. if m != nil {
  680. return m.Status
  681. }
  682. return 0
  683. }
  684. type PayGoodsGetListResp_Data struct {
  685. //
  686. PageInfo *PayGoodsGetListResp_PageInfo `protobuf:"bytes,1,opt,name=page_info,json=pageInfo" json:"page_info"`
  687. //
  688. GoodsInfo []*PayGoodsGetListResp_GoodsInfo `protobuf:"bytes,2,rep,name=goods_info,json=goodsInfo" json:"goods_info"`
  689. }
  690. func (m *PayGoodsGetListResp_Data) Reset() { *m = PayGoodsGetListResp_Data{} }
  691. func (m *PayGoodsGetListResp_Data) String() string { return proto.CompactTextString(m) }
  692. func (*PayGoodsGetListResp_Data) ProtoMessage() {}
  693. func (*PayGoodsGetListResp_Data) Descriptor() ([]byte, []int) {
  694. return fileDescriptor_PayGoods_35a38e54252e0017, []int{5, 2}
  695. }
  696. func (m *PayGoodsGetListResp_Data) XXX_Unmarshal(b []byte) error {
  697. return m.Unmarshal(b)
  698. }
  699. func (m *PayGoodsGetListResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  700. if deterministic {
  701. return xxx_messageInfo_PayGoodsGetListResp_Data.Marshal(b, m, deterministic)
  702. } else {
  703. b = b[:cap(b)]
  704. n, err := m.MarshalTo(b)
  705. if err != nil {
  706. return nil, err
  707. }
  708. return b[:n], nil
  709. }
  710. }
  711. func (dst *PayGoodsGetListResp_Data) XXX_Merge(src proto.Message) {
  712. xxx_messageInfo_PayGoodsGetListResp_Data.Merge(dst, src)
  713. }
  714. func (m *PayGoodsGetListResp_Data) XXX_Size() int {
  715. return m.Size()
  716. }
  717. func (m *PayGoodsGetListResp_Data) XXX_DiscardUnknown() {
  718. xxx_messageInfo_PayGoodsGetListResp_Data.DiscardUnknown(m)
  719. }
  720. var xxx_messageInfo_PayGoodsGetListResp_Data proto.InternalMessageInfo
  721. func (m *PayGoodsGetListResp_Data) GetPageInfo() *PayGoodsGetListResp_PageInfo {
  722. if m != nil {
  723. return m.PageInfo
  724. }
  725. return nil
  726. }
  727. func (m *PayGoodsGetListResp_Data) GetGoodsInfo() []*PayGoodsGetListResp_GoodsInfo {
  728. if m != nil {
  729. return m.GoodsInfo
  730. }
  731. return nil
  732. }
  733. type PayGoodsCloseReq struct {
  734. // 购票id
  735. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  736. }
  737. func (m *PayGoodsCloseReq) Reset() { *m = PayGoodsCloseReq{} }
  738. func (m *PayGoodsCloseReq) String() string { return proto.CompactTextString(m) }
  739. func (*PayGoodsCloseReq) ProtoMessage() {}
  740. func (*PayGoodsCloseReq) Descriptor() ([]byte, []int) {
  741. return fileDescriptor_PayGoods_35a38e54252e0017, []int{6}
  742. }
  743. func (m *PayGoodsCloseReq) XXX_Unmarshal(b []byte) error {
  744. return m.Unmarshal(b)
  745. }
  746. func (m *PayGoodsCloseReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  747. if deterministic {
  748. return xxx_messageInfo_PayGoodsCloseReq.Marshal(b, m, deterministic)
  749. } else {
  750. b = b[:cap(b)]
  751. n, err := m.MarshalTo(b)
  752. if err != nil {
  753. return nil, err
  754. }
  755. return b[:n], nil
  756. }
  757. }
  758. func (dst *PayGoodsCloseReq) XXX_Merge(src proto.Message) {
  759. xxx_messageInfo_PayGoodsCloseReq.Merge(dst, src)
  760. }
  761. func (m *PayGoodsCloseReq) XXX_Size() int {
  762. return m.Size()
  763. }
  764. func (m *PayGoodsCloseReq) XXX_DiscardUnknown() {
  765. xxx_messageInfo_PayGoodsCloseReq.DiscardUnknown(m)
  766. }
  767. var xxx_messageInfo_PayGoodsCloseReq proto.InternalMessageInfo
  768. func (m *PayGoodsCloseReq) GetId() int64 {
  769. if m != nil {
  770. return m.Id
  771. }
  772. return 0
  773. }
  774. type PayGoodsCloseResp struct {
  775. // 返回code
  776. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  777. // 返回msg
  778. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  779. // 返回data
  780. Data *PayGoodsCloseResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  781. }
  782. func (m *PayGoodsCloseResp) Reset() { *m = PayGoodsCloseResp{} }
  783. func (m *PayGoodsCloseResp) String() string { return proto.CompactTextString(m) }
  784. func (*PayGoodsCloseResp) ProtoMessage() {}
  785. func (*PayGoodsCloseResp) Descriptor() ([]byte, []int) {
  786. return fileDescriptor_PayGoods_35a38e54252e0017, []int{7}
  787. }
  788. func (m *PayGoodsCloseResp) XXX_Unmarshal(b []byte) error {
  789. return m.Unmarshal(b)
  790. }
  791. func (m *PayGoodsCloseResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  792. if deterministic {
  793. return xxx_messageInfo_PayGoodsCloseResp.Marshal(b, m, deterministic)
  794. } else {
  795. b = b[:cap(b)]
  796. n, err := m.MarshalTo(b)
  797. if err != nil {
  798. return nil, err
  799. }
  800. return b[:n], nil
  801. }
  802. }
  803. func (dst *PayGoodsCloseResp) XXX_Merge(src proto.Message) {
  804. xxx_messageInfo_PayGoodsCloseResp.Merge(dst, src)
  805. }
  806. func (m *PayGoodsCloseResp) XXX_Size() int {
  807. return m.Size()
  808. }
  809. func (m *PayGoodsCloseResp) XXX_DiscardUnknown() {
  810. xxx_messageInfo_PayGoodsCloseResp.DiscardUnknown(m)
  811. }
  812. var xxx_messageInfo_PayGoodsCloseResp proto.InternalMessageInfo
  813. func (m *PayGoodsCloseResp) GetCode() int64 {
  814. if m != nil {
  815. return m.Code
  816. }
  817. return 0
  818. }
  819. func (m *PayGoodsCloseResp) GetMsg() string {
  820. if m != nil {
  821. return m.Msg
  822. }
  823. return ""
  824. }
  825. func (m *PayGoodsCloseResp) GetData() *PayGoodsCloseResp_Data {
  826. if m != nil {
  827. return m.Data
  828. }
  829. return nil
  830. }
  831. type PayGoodsCloseResp_Data struct {
  832. }
  833. func (m *PayGoodsCloseResp_Data) Reset() { *m = PayGoodsCloseResp_Data{} }
  834. func (m *PayGoodsCloseResp_Data) String() string { return proto.CompactTextString(m) }
  835. func (*PayGoodsCloseResp_Data) ProtoMessage() {}
  836. func (*PayGoodsCloseResp_Data) Descriptor() ([]byte, []int) {
  837. return fileDescriptor_PayGoods_35a38e54252e0017, []int{7, 0}
  838. }
  839. func (m *PayGoodsCloseResp_Data) XXX_Unmarshal(b []byte) error {
  840. return m.Unmarshal(b)
  841. }
  842. func (m *PayGoodsCloseResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  843. if deterministic {
  844. return xxx_messageInfo_PayGoodsCloseResp_Data.Marshal(b, m, deterministic)
  845. } else {
  846. b = b[:cap(b)]
  847. n, err := m.MarshalTo(b)
  848. if err != nil {
  849. return nil, err
  850. }
  851. return b[:n], nil
  852. }
  853. }
  854. func (dst *PayGoodsCloseResp_Data) XXX_Merge(src proto.Message) {
  855. xxx_messageInfo_PayGoodsCloseResp_Data.Merge(dst, src)
  856. }
  857. func (m *PayGoodsCloseResp_Data) XXX_Size() int {
  858. return m.Size()
  859. }
  860. func (m *PayGoodsCloseResp_Data) XXX_DiscardUnknown() {
  861. xxx_messageInfo_PayGoodsCloseResp_Data.DiscardUnknown(m)
  862. }
  863. var xxx_messageInfo_PayGoodsCloseResp_Data proto.InternalMessageInfo
  864. type PayGoodsOpenReq struct {
  865. // 购票id
  866. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  867. }
  868. func (m *PayGoodsOpenReq) Reset() { *m = PayGoodsOpenReq{} }
  869. func (m *PayGoodsOpenReq) String() string { return proto.CompactTextString(m) }
  870. func (*PayGoodsOpenReq) ProtoMessage() {}
  871. func (*PayGoodsOpenReq) Descriptor() ([]byte, []int) {
  872. return fileDescriptor_PayGoods_35a38e54252e0017, []int{8}
  873. }
  874. func (m *PayGoodsOpenReq) XXX_Unmarshal(b []byte) error {
  875. return m.Unmarshal(b)
  876. }
  877. func (m *PayGoodsOpenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  878. if deterministic {
  879. return xxx_messageInfo_PayGoodsOpenReq.Marshal(b, m, deterministic)
  880. } else {
  881. b = b[:cap(b)]
  882. n, err := m.MarshalTo(b)
  883. if err != nil {
  884. return nil, err
  885. }
  886. return b[:n], nil
  887. }
  888. }
  889. func (dst *PayGoodsOpenReq) XXX_Merge(src proto.Message) {
  890. xxx_messageInfo_PayGoodsOpenReq.Merge(dst, src)
  891. }
  892. func (m *PayGoodsOpenReq) XXX_Size() int {
  893. return m.Size()
  894. }
  895. func (m *PayGoodsOpenReq) XXX_DiscardUnknown() {
  896. xxx_messageInfo_PayGoodsOpenReq.DiscardUnknown(m)
  897. }
  898. var xxx_messageInfo_PayGoodsOpenReq proto.InternalMessageInfo
  899. func (m *PayGoodsOpenReq) GetId() int64 {
  900. if m != nil {
  901. return m.Id
  902. }
  903. return 0
  904. }
  905. type PayGoodsOpenResp struct {
  906. // 返回code
  907. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code"`
  908. // 返回msg
  909. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"`
  910. // 返回data
  911. Data *PayGoodsOpenResp_Data `protobuf:"bytes,3,opt,name=data" json:"data"`
  912. }
  913. func (m *PayGoodsOpenResp) Reset() { *m = PayGoodsOpenResp{} }
  914. func (m *PayGoodsOpenResp) String() string { return proto.CompactTextString(m) }
  915. func (*PayGoodsOpenResp) ProtoMessage() {}
  916. func (*PayGoodsOpenResp) Descriptor() ([]byte, []int) {
  917. return fileDescriptor_PayGoods_35a38e54252e0017, []int{9}
  918. }
  919. func (m *PayGoodsOpenResp) XXX_Unmarshal(b []byte) error {
  920. return m.Unmarshal(b)
  921. }
  922. func (m *PayGoodsOpenResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  923. if deterministic {
  924. return xxx_messageInfo_PayGoodsOpenResp.Marshal(b, m, deterministic)
  925. } else {
  926. b = b[:cap(b)]
  927. n, err := m.MarshalTo(b)
  928. if err != nil {
  929. return nil, err
  930. }
  931. return b[:n], nil
  932. }
  933. }
  934. func (dst *PayGoodsOpenResp) XXX_Merge(src proto.Message) {
  935. xxx_messageInfo_PayGoodsOpenResp.Merge(dst, src)
  936. }
  937. func (m *PayGoodsOpenResp) XXX_Size() int {
  938. return m.Size()
  939. }
  940. func (m *PayGoodsOpenResp) XXX_DiscardUnknown() {
  941. xxx_messageInfo_PayGoodsOpenResp.DiscardUnknown(m)
  942. }
  943. var xxx_messageInfo_PayGoodsOpenResp proto.InternalMessageInfo
  944. func (m *PayGoodsOpenResp) GetCode() int64 {
  945. if m != nil {
  946. return m.Code
  947. }
  948. return 0
  949. }
  950. func (m *PayGoodsOpenResp) GetMsg() string {
  951. if m != nil {
  952. return m.Msg
  953. }
  954. return ""
  955. }
  956. func (m *PayGoodsOpenResp) GetData() *PayGoodsOpenResp_Data {
  957. if m != nil {
  958. return m.Data
  959. }
  960. return nil
  961. }
  962. type PayGoodsOpenResp_Data struct {
  963. }
  964. func (m *PayGoodsOpenResp_Data) Reset() { *m = PayGoodsOpenResp_Data{} }
  965. func (m *PayGoodsOpenResp_Data) String() string { return proto.CompactTextString(m) }
  966. func (*PayGoodsOpenResp_Data) ProtoMessage() {}
  967. func (*PayGoodsOpenResp_Data) Descriptor() ([]byte, []int) {
  968. return fileDescriptor_PayGoods_35a38e54252e0017, []int{9, 0}
  969. }
  970. func (m *PayGoodsOpenResp_Data) XXX_Unmarshal(b []byte) error {
  971. return m.Unmarshal(b)
  972. }
  973. func (m *PayGoodsOpenResp_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  974. if deterministic {
  975. return xxx_messageInfo_PayGoodsOpenResp_Data.Marshal(b, m, deterministic)
  976. } else {
  977. b = b[:cap(b)]
  978. n, err := m.MarshalTo(b)
  979. if err != nil {
  980. return nil, err
  981. }
  982. return b[:n], nil
  983. }
  984. }
  985. func (dst *PayGoodsOpenResp_Data) XXX_Merge(src proto.Message) {
  986. xxx_messageInfo_PayGoodsOpenResp_Data.Merge(dst, src)
  987. }
  988. func (m *PayGoodsOpenResp_Data) XXX_Size() int {
  989. return m.Size()
  990. }
  991. func (m *PayGoodsOpenResp_Data) XXX_DiscardUnknown() {
  992. xxx_messageInfo_PayGoodsOpenResp_Data.DiscardUnknown(m)
  993. }
  994. var xxx_messageInfo_PayGoodsOpenResp_Data proto.InternalMessageInfo
  995. func init() {
  996. proto.RegisterType((*PayGoodsAddReq)(nil), "av.v0.PayGoodsAddReq")
  997. proto.RegisterType((*PayGoodsAddResp)(nil), "av.v0.PayGoodsAddResp")
  998. proto.RegisterType((*PayGoodsAddResp_Data)(nil), "av.v0.PayGoodsAddResp.Data")
  999. proto.RegisterType((*PayGoodsUpdateReq)(nil), "av.v0.PayGoodsUpdateReq")
  1000. proto.RegisterType((*PayGoodsUpdateResp)(nil), "av.v0.PayGoodsUpdateResp")
  1001. proto.RegisterType((*PayGoodsUpdateResp_Data)(nil), "av.v0.PayGoodsUpdateResp.Data")
  1002. proto.RegisterType((*PayGoodsGetListReq)(nil), "av.v0.PayGoodsGetListReq")
  1003. proto.RegisterType((*PayGoodsGetListResp)(nil), "av.v0.PayGoodsGetListResp")
  1004. proto.RegisterType((*PayGoodsGetListResp_PageInfo)(nil), "av.v0.PayGoodsGetListResp.PageInfo")
  1005. proto.RegisterType((*PayGoodsGetListResp_GoodsInfo)(nil), "av.v0.PayGoodsGetListResp.GoodsInfo")
  1006. proto.RegisterType((*PayGoodsGetListResp_Data)(nil), "av.v0.PayGoodsGetListResp.Data")
  1007. proto.RegisterType((*PayGoodsCloseReq)(nil), "av.v0.PayGoodsCloseReq")
  1008. proto.RegisterType((*PayGoodsCloseResp)(nil), "av.v0.PayGoodsCloseResp")
  1009. proto.RegisterType((*PayGoodsCloseResp_Data)(nil), "av.v0.PayGoodsCloseResp.Data")
  1010. proto.RegisterType((*PayGoodsOpenReq)(nil), "av.v0.PayGoodsOpenReq")
  1011. proto.RegisterType((*PayGoodsOpenResp)(nil), "av.v0.PayGoodsOpenResp")
  1012. proto.RegisterType((*PayGoodsOpenResp_Data)(nil), "av.v0.PayGoodsOpenResp.Data")
  1013. }
  1014. func (m *PayGoodsAddReq) Marshal() (dAtA []byte, err error) {
  1015. size := m.Size()
  1016. dAtA = make([]byte, size)
  1017. n, err := m.MarshalTo(dAtA)
  1018. if err != nil {
  1019. return nil, err
  1020. }
  1021. return dAtA[:n], nil
  1022. }
  1023. func (m *PayGoodsAddReq) MarshalTo(dAtA []byte) (int, error) {
  1024. var i int
  1025. _ = i
  1026. var l int
  1027. _ = l
  1028. if len(m.Platform) > 0 {
  1029. dAtA[i] = 0xa
  1030. i++
  1031. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Platform)))
  1032. i += copy(dAtA[i:], m.Platform)
  1033. }
  1034. if len(m.Title) > 0 {
  1035. dAtA[i] = 0x12
  1036. i++
  1037. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Title)))
  1038. i += copy(dAtA[i:], m.Title)
  1039. }
  1040. if m.Type != 0 {
  1041. dAtA[i] = 0x18
  1042. i++
  1043. i = encodeVarintPayGoods(dAtA, i, uint64(m.Type))
  1044. }
  1045. if m.Price != 0 {
  1046. dAtA[i] = 0x20
  1047. i++
  1048. i = encodeVarintPayGoods(dAtA, i, uint64(m.Price))
  1049. }
  1050. if len(m.StartTime) > 0 {
  1051. dAtA[i] = 0x2a
  1052. i++
  1053. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.StartTime)))
  1054. i += copy(dAtA[i:], m.StartTime)
  1055. }
  1056. if len(m.EndTime) > 0 {
  1057. dAtA[i] = 0x32
  1058. i++
  1059. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.EndTime)))
  1060. i += copy(dAtA[i:], m.EndTime)
  1061. }
  1062. if m.IpLimit != 0 {
  1063. dAtA[i] = 0x38
  1064. i++
  1065. i = encodeVarintPayGoods(dAtA, i, uint64(m.IpLimit))
  1066. }
  1067. return i, nil
  1068. }
  1069. func (m *PayGoodsAddResp) Marshal() (dAtA []byte, err error) {
  1070. size := m.Size()
  1071. dAtA = make([]byte, size)
  1072. n, err := m.MarshalTo(dAtA)
  1073. if err != nil {
  1074. return nil, err
  1075. }
  1076. return dAtA[:n], nil
  1077. }
  1078. func (m *PayGoodsAddResp) MarshalTo(dAtA []byte) (int, error) {
  1079. var i int
  1080. _ = i
  1081. var l int
  1082. _ = l
  1083. if m.Code != 0 {
  1084. dAtA[i] = 0x8
  1085. i++
  1086. i = encodeVarintPayGoods(dAtA, i, uint64(m.Code))
  1087. }
  1088. if len(m.Msg) > 0 {
  1089. dAtA[i] = 0x12
  1090. i++
  1091. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Msg)))
  1092. i += copy(dAtA[i:], m.Msg)
  1093. }
  1094. if m.Data != nil {
  1095. dAtA[i] = 0x1a
  1096. i++
  1097. i = encodeVarintPayGoods(dAtA, i, uint64(m.Data.Size()))
  1098. n1, err := m.Data.MarshalTo(dAtA[i:])
  1099. if err != nil {
  1100. return 0, err
  1101. }
  1102. i += n1
  1103. }
  1104. return i, nil
  1105. }
  1106. func (m *PayGoodsAddResp_Data) Marshal() (dAtA []byte, err error) {
  1107. size := m.Size()
  1108. dAtA = make([]byte, size)
  1109. n, err := m.MarshalTo(dAtA)
  1110. if err != nil {
  1111. return nil, err
  1112. }
  1113. return dAtA[:n], nil
  1114. }
  1115. func (m *PayGoodsAddResp_Data) MarshalTo(dAtA []byte) (int, error) {
  1116. var i int
  1117. _ = i
  1118. var l int
  1119. _ = l
  1120. return i, nil
  1121. }
  1122. func (m *PayGoodsUpdateReq) Marshal() (dAtA []byte, err error) {
  1123. size := m.Size()
  1124. dAtA = make([]byte, size)
  1125. n, err := m.MarshalTo(dAtA)
  1126. if err != nil {
  1127. return nil, err
  1128. }
  1129. return dAtA[:n], nil
  1130. }
  1131. func (m *PayGoodsUpdateReq) MarshalTo(dAtA []byte) (int, error) {
  1132. var i int
  1133. _ = i
  1134. var l int
  1135. _ = l
  1136. if m.Id != 0 {
  1137. dAtA[i] = 0x8
  1138. i++
  1139. i = encodeVarintPayGoods(dAtA, i, uint64(m.Id))
  1140. }
  1141. if len(m.Platform) > 0 {
  1142. dAtA[i] = 0x12
  1143. i++
  1144. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Platform)))
  1145. i += copy(dAtA[i:], m.Platform)
  1146. }
  1147. if len(m.Title) > 0 {
  1148. dAtA[i] = 0x1a
  1149. i++
  1150. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Title)))
  1151. i += copy(dAtA[i:], m.Title)
  1152. }
  1153. if m.Type != 0 {
  1154. dAtA[i] = 0x20
  1155. i++
  1156. i = encodeVarintPayGoods(dAtA, i, uint64(m.Type))
  1157. }
  1158. if m.Price != 0 {
  1159. dAtA[i] = 0x28
  1160. i++
  1161. i = encodeVarintPayGoods(dAtA, i, uint64(m.Price))
  1162. }
  1163. if len(m.StartTime) > 0 {
  1164. dAtA[i] = 0x32
  1165. i++
  1166. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.StartTime)))
  1167. i += copy(dAtA[i:], m.StartTime)
  1168. }
  1169. if len(m.EndTime) > 0 {
  1170. dAtA[i] = 0x3a
  1171. i++
  1172. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.EndTime)))
  1173. i += copy(dAtA[i:], m.EndTime)
  1174. }
  1175. if m.IpLimit != 0 {
  1176. dAtA[i] = 0x40
  1177. i++
  1178. i = encodeVarintPayGoods(dAtA, i, uint64(m.IpLimit))
  1179. }
  1180. return i, nil
  1181. }
  1182. func (m *PayGoodsUpdateResp) Marshal() (dAtA []byte, err error) {
  1183. size := m.Size()
  1184. dAtA = make([]byte, size)
  1185. n, err := m.MarshalTo(dAtA)
  1186. if err != nil {
  1187. return nil, err
  1188. }
  1189. return dAtA[:n], nil
  1190. }
  1191. func (m *PayGoodsUpdateResp) MarshalTo(dAtA []byte) (int, error) {
  1192. var i int
  1193. _ = i
  1194. var l int
  1195. _ = l
  1196. if m.Code != 0 {
  1197. dAtA[i] = 0x8
  1198. i++
  1199. i = encodeVarintPayGoods(dAtA, i, uint64(m.Code))
  1200. }
  1201. if len(m.Msg) > 0 {
  1202. dAtA[i] = 0x12
  1203. i++
  1204. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Msg)))
  1205. i += copy(dAtA[i:], m.Msg)
  1206. }
  1207. if m.Data != nil {
  1208. dAtA[i] = 0x1a
  1209. i++
  1210. i = encodeVarintPayGoods(dAtA, i, uint64(m.Data.Size()))
  1211. n2, err := m.Data.MarshalTo(dAtA[i:])
  1212. if err != nil {
  1213. return 0, err
  1214. }
  1215. i += n2
  1216. }
  1217. return i, nil
  1218. }
  1219. func (m *PayGoodsUpdateResp_Data) Marshal() (dAtA []byte, err error) {
  1220. size := m.Size()
  1221. dAtA = make([]byte, size)
  1222. n, err := m.MarshalTo(dAtA)
  1223. if err != nil {
  1224. return nil, err
  1225. }
  1226. return dAtA[:n], nil
  1227. }
  1228. func (m *PayGoodsUpdateResp_Data) MarshalTo(dAtA []byte) (int, error) {
  1229. var i int
  1230. _ = i
  1231. var l int
  1232. _ = l
  1233. return i, nil
  1234. }
  1235. func (m *PayGoodsGetListReq) Marshal() (dAtA []byte, err error) {
  1236. size := m.Size()
  1237. dAtA = make([]byte, size)
  1238. n, err := m.MarshalTo(dAtA)
  1239. if err != nil {
  1240. return nil, err
  1241. }
  1242. return dAtA[:n], nil
  1243. }
  1244. func (m *PayGoodsGetListReq) MarshalTo(dAtA []byte) (int, error) {
  1245. var i int
  1246. _ = i
  1247. var l int
  1248. _ = l
  1249. if m.Id != 0 {
  1250. dAtA[i] = 0x8
  1251. i++
  1252. i = encodeVarintPayGoods(dAtA, i, uint64(m.Id))
  1253. }
  1254. if len(m.Platform) > 0 {
  1255. dAtA[i] = 0x12
  1256. i++
  1257. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Platform)))
  1258. i += copy(dAtA[i:], m.Platform)
  1259. }
  1260. if len(m.Title) > 0 {
  1261. dAtA[i] = 0x1a
  1262. i++
  1263. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Title)))
  1264. i += copy(dAtA[i:], m.Title)
  1265. }
  1266. if m.Type != 0 {
  1267. dAtA[i] = 0x20
  1268. i++
  1269. i = encodeVarintPayGoods(dAtA, i, uint64(m.Type))
  1270. }
  1271. if m.IpLimit != 0 {
  1272. dAtA[i] = 0x28
  1273. i++
  1274. i = encodeVarintPayGoods(dAtA, i, uint64(m.IpLimit))
  1275. }
  1276. if m.PageNum != 0 {
  1277. dAtA[i] = 0x30
  1278. i++
  1279. i = encodeVarintPayGoods(dAtA, i, uint64(m.PageNum))
  1280. }
  1281. if m.PageSize != 0 {
  1282. dAtA[i] = 0x38
  1283. i++
  1284. i = encodeVarintPayGoods(dAtA, i, uint64(m.PageSize))
  1285. }
  1286. return i, nil
  1287. }
  1288. func (m *PayGoodsGetListResp) Marshal() (dAtA []byte, err error) {
  1289. size := m.Size()
  1290. dAtA = make([]byte, size)
  1291. n, err := m.MarshalTo(dAtA)
  1292. if err != nil {
  1293. return nil, err
  1294. }
  1295. return dAtA[:n], nil
  1296. }
  1297. func (m *PayGoodsGetListResp) MarshalTo(dAtA []byte) (int, error) {
  1298. var i int
  1299. _ = i
  1300. var l int
  1301. _ = l
  1302. if m.Code != 0 {
  1303. dAtA[i] = 0x8
  1304. i++
  1305. i = encodeVarintPayGoods(dAtA, i, uint64(m.Code))
  1306. }
  1307. if len(m.Msg) > 0 {
  1308. dAtA[i] = 0x12
  1309. i++
  1310. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Msg)))
  1311. i += copy(dAtA[i:], m.Msg)
  1312. }
  1313. if m.Data != nil {
  1314. dAtA[i] = 0x1a
  1315. i++
  1316. i = encodeVarintPayGoods(dAtA, i, uint64(m.Data.Size()))
  1317. n3, err := m.Data.MarshalTo(dAtA[i:])
  1318. if err != nil {
  1319. return 0, err
  1320. }
  1321. i += n3
  1322. }
  1323. return i, nil
  1324. }
  1325. func (m *PayGoodsGetListResp_PageInfo) Marshal() (dAtA []byte, err error) {
  1326. size := m.Size()
  1327. dAtA = make([]byte, size)
  1328. n, err := m.MarshalTo(dAtA)
  1329. if err != nil {
  1330. return nil, err
  1331. }
  1332. return dAtA[:n], nil
  1333. }
  1334. func (m *PayGoodsGetListResp_PageInfo) MarshalTo(dAtA []byte) (int, error) {
  1335. var i int
  1336. _ = i
  1337. var l int
  1338. _ = l
  1339. if m.TotalCount != 0 {
  1340. dAtA[i] = 0x8
  1341. i++
  1342. i = encodeVarintPayGoods(dAtA, i, uint64(m.TotalCount))
  1343. }
  1344. if m.PageNum != 0 {
  1345. dAtA[i] = 0x10
  1346. i++
  1347. i = encodeVarintPayGoods(dAtA, i, uint64(m.PageNum))
  1348. }
  1349. return i, nil
  1350. }
  1351. func (m *PayGoodsGetListResp_GoodsInfo) Marshal() (dAtA []byte, err error) {
  1352. size := m.Size()
  1353. dAtA = make([]byte, size)
  1354. n, err := m.MarshalTo(dAtA)
  1355. if err != nil {
  1356. return nil, err
  1357. }
  1358. return dAtA[:n], nil
  1359. }
  1360. func (m *PayGoodsGetListResp_GoodsInfo) MarshalTo(dAtA []byte) (int, error) {
  1361. var i int
  1362. _ = i
  1363. var l int
  1364. _ = l
  1365. if m.Id != 0 {
  1366. dAtA[i] = 0x8
  1367. i++
  1368. i = encodeVarintPayGoods(dAtA, i, uint64(m.Id))
  1369. }
  1370. if len(m.Title) > 0 {
  1371. dAtA[i] = 0x12
  1372. i++
  1373. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Title)))
  1374. i += copy(dAtA[i:], m.Title)
  1375. }
  1376. if len(m.Platform) > 0 {
  1377. dAtA[i] = 0x1a
  1378. i++
  1379. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Platform)))
  1380. i += copy(dAtA[i:], m.Platform)
  1381. }
  1382. if m.Type != 0 {
  1383. dAtA[i] = 0x20
  1384. i++
  1385. i = encodeVarintPayGoods(dAtA, i, uint64(m.Type))
  1386. }
  1387. if m.Price != 0 {
  1388. dAtA[i] = 0x28
  1389. i++
  1390. i = encodeVarintPayGoods(dAtA, i, uint64(m.Price))
  1391. }
  1392. if len(m.StartTime) > 0 {
  1393. dAtA[i] = 0x32
  1394. i++
  1395. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.StartTime)))
  1396. i += copy(dAtA[i:], m.StartTime)
  1397. }
  1398. if len(m.EndTime) > 0 {
  1399. dAtA[i] = 0x3a
  1400. i++
  1401. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.EndTime)))
  1402. i += copy(dAtA[i:], m.EndTime)
  1403. }
  1404. if m.IpLimit != 0 {
  1405. dAtA[i] = 0x40
  1406. i++
  1407. i = encodeVarintPayGoods(dAtA, i, uint64(m.IpLimit))
  1408. }
  1409. if m.Status != 0 {
  1410. dAtA[i] = 0x48
  1411. i++
  1412. i = encodeVarintPayGoods(dAtA, i, uint64(m.Status))
  1413. }
  1414. return i, nil
  1415. }
  1416. func (m *PayGoodsGetListResp_Data) Marshal() (dAtA []byte, err error) {
  1417. size := m.Size()
  1418. dAtA = make([]byte, size)
  1419. n, err := m.MarshalTo(dAtA)
  1420. if err != nil {
  1421. return nil, err
  1422. }
  1423. return dAtA[:n], nil
  1424. }
  1425. func (m *PayGoodsGetListResp_Data) MarshalTo(dAtA []byte) (int, error) {
  1426. var i int
  1427. _ = i
  1428. var l int
  1429. _ = l
  1430. if m.PageInfo != nil {
  1431. dAtA[i] = 0xa
  1432. i++
  1433. i = encodeVarintPayGoods(dAtA, i, uint64(m.PageInfo.Size()))
  1434. n4, err := m.PageInfo.MarshalTo(dAtA[i:])
  1435. if err != nil {
  1436. return 0, err
  1437. }
  1438. i += n4
  1439. }
  1440. if len(m.GoodsInfo) > 0 {
  1441. for _, msg := range m.GoodsInfo {
  1442. dAtA[i] = 0x12
  1443. i++
  1444. i = encodeVarintPayGoods(dAtA, i, uint64(msg.Size()))
  1445. n, err := msg.MarshalTo(dAtA[i:])
  1446. if err != nil {
  1447. return 0, err
  1448. }
  1449. i += n
  1450. }
  1451. }
  1452. return i, nil
  1453. }
  1454. func (m *PayGoodsCloseReq) Marshal() (dAtA []byte, err error) {
  1455. size := m.Size()
  1456. dAtA = make([]byte, size)
  1457. n, err := m.MarshalTo(dAtA)
  1458. if err != nil {
  1459. return nil, err
  1460. }
  1461. return dAtA[:n], nil
  1462. }
  1463. func (m *PayGoodsCloseReq) MarshalTo(dAtA []byte) (int, error) {
  1464. var i int
  1465. _ = i
  1466. var l int
  1467. _ = l
  1468. if m.Id != 0 {
  1469. dAtA[i] = 0x8
  1470. i++
  1471. i = encodeVarintPayGoods(dAtA, i, uint64(m.Id))
  1472. }
  1473. return i, nil
  1474. }
  1475. func (m *PayGoodsCloseResp) Marshal() (dAtA []byte, err error) {
  1476. size := m.Size()
  1477. dAtA = make([]byte, size)
  1478. n, err := m.MarshalTo(dAtA)
  1479. if err != nil {
  1480. return nil, err
  1481. }
  1482. return dAtA[:n], nil
  1483. }
  1484. func (m *PayGoodsCloseResp) MarshalTo(dAtA []byte) (int, error) {
  1485. var i int
  1486. _ = i
  1487. var l int
  1488. _ = l
  1489. if m.Code != 0 {
  1490. dAtA[i] = 0x8
  1491. i++
  1492. i = encodeVarintPayGoods(dAtA, i, uint64(m.Code))
  1493. }
  1494. if len(m.Msg) > 0 {
  1495. dAtA[i] = 0x12
  1496. i++
  1497. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Msg)))
  1498. i += copy(dAtA[i:], m.Msg)
  1499. }
  1500. if m.Data != nil {
  1501. dAtA[i] = 0x1a
  1502. i++
  1503. i = encodeVarintPayGoods(dAtA, i, uint64(m.Data.Size()))
  1504. n5, err := m.Data.MarshalTo(dAtA[i:])
  1505. if err != nil {
  1506. return 0, err
  1507. }
  1508. i += n5
  1509. }
  1510. return i, nil
  1511. }
  1512. func (m *PayGoodsCloseResp_Data) Marshal() (dAtA []byte, err error) {
  1513. size := m.Size()
  1514. dAtA = make([]byte, size)
  1515. n, err := m.MarshalTo(dAtA)
  1516. if err != nil {
  1517. return nil, err
  1518. }
  1519. return dAtA[:n], nil
  1520. }
  1521. func (m *PayGoodsCloseResp_Data) MarshalTo(dAtA []byte) (int, error) {
  1522. var i int
  1523. _ = i
  1524. var l int
  1525. _ = l
  1526. return i, nil
  1527. }
  1528. func (m *PayGoodsOpenReq) Marshal() (dAtA []byte, err error) {
  1529. size := m.Size()
  1530. dAtA = make([]byte, size)
  1531. n, err := m.MarshalTo(dAtA)
  1532. if err != nil {
  1533. return nil, err
  1534. }
  1535. return dAtA[:n], nil
  1536. }
  1537. func (m *PayGoodsOpenReq) MarshalTo(dAtA []byte) (int, error) {
  1538. var i int
  1539. _ = i
  1540. var l int
  1541. _ = l
  1542. if m.Id != 0 {
  1543. dAtA[i] = 0x8
  1544. i++
  1545. i = encodeVarintPayGoods(dAtA, i, uint64(m.Id))
  1546. }
  1547. return i, nil
  1548. }
  1549. func (m *PayGoodsOpenResp) Marshal() (dAtA []byte, err error) {
  1550. size := m.Size()
  1551. dAtA = make([]byte, size)
  1552. n, err := m.MarshalTo(dAtA)
  1553. if err != nil {
  1554. return nil, err
  1555. }
  1556. return dAtA[:n], nil
  1557. }
  1558. func (m *PayGoodsOpenResp) MarshalTo(dAtA []byte) (int, error) {
  1559. var i int
  1560. _ = i
  1561. var l int
  1562. _ = l
  1563. if m.Code != 0 {
  1564. dAtA[i] = 0x8
  1565. i++
  1566. i = encodeVarintPayGoods(dAtA, i, uint64(m.Code))
  1567. }
  1568. if len(m.Msg) > 0 {
  1569. dAtA[i] = 0x12
  1570. i++
  1571. i = encodeVarintPayGoods(dAtA, i, uint64(len(m.Msg)))
  1572. i += copy(dAtA[i:], m.Msg)
  1573. }
  1574. if m.Data != nil {
  1575. dAtA[i] = 0x1a
  1576. i++
  1577. i = encodeVarintPayGoods(dAtA, i, uint64(m.Data.Size()))
  1578. n6, err := m.Data.MarshalTo(dAtA[i:])
  1579. if err != nil {
  1580. return 0, err
  1581. }
  1582. i += n6
  1583. }
  1584. return i, nil
  1585. }
  1586. func (m *PayGoodsOpenResp_Data) Marshal() (dAtA []byte, err error) {
  1587. size := m.Size()
  1588. dAtA = make([]byte, size)
  1589. n, err := m.MarshalTo(dAtA)
  1590. if err != nil {
  1591. return nil, err
  1592. }
  1593. return dAtA[:n], nil
  1594. }
  1595. func (m *PayGoodsOpenResp_Data) MarshalTo(dAtA []byte) (int, error) {
  1596. var i int
  1597. _ = i
  1598. var l int
  1599. _ = l
  1600. return i, nil
  1601. }
  1602. func encodeVarintPayGoods(dAtA []byte, offset int, v uint64) int {
  1603. for v >= 1<<7 {
  1604. dAtA[offset] = uint8(v&0x7f | 0x80)
  1605. v >>= 7
  1606. offset++
  1607. }
  1608. dAtA[offset] = uint8(v)
  1609. return offset + 1
  1610. }
  1611. func (m *PayGoodsAddReq) Size() (n int) {
  1612. if m == nil {
  1613. return 0
  1614. }
  1615. var l int
  1616. _ = l
  1617. l = len(m.Platform)
  1618. if l > 0 {
  1619. n += 1 + l + sovPayGoods(uint64(l))
  1620. }
  1621. l = len(m.Title)
  1622. if l > 0 {
  1623. n += 1 + l + sovPayGoods(uint64(l))
  1624. }
  1625. if m.Type != 0 {
  1626. n += 1 + sovPayGoods(uint64(m.Type))
  1627. }
  1628. if m.Price != 0 {
  1629. n += 1 + sovPayGoods(uint64(m.Price))
  1630. }
  1631. l = len(m.StartTime)
  1632. if l > 0 {
  1633. n += 1 + l + sovPayGoods(uint64(l))
  1634. }
  1635. l = len(m.EndTime)
  1636. if l > 0 {
  1637. n += 1 + l + sovPayGoods(uint64(l))
  1638. }
  1639. if m.IpLimit != 0 {
  1640. n += 1 + sovPayGoods(uint64(m.IpLimit))
  1641. }
  1642. return n
  1643. }
  1644. func (m *PayGoodsAddResp) Size() (n int) {
  1645. if m == nil {
  1646. return 0
  1647. }
  1648. var l int
  1649. _ = l
  1650. if m.Code != 0 {
  1651. n += 1 + sovPayGoods(uint64(m.Code))
  1652. }
  1653. l = len(m.Msg)
  1654. if l > 0 {
  1655. n += 1 + l + sovPayGoods(uint64(l))
  1656. }
  1657. if m.Data != nil {
  1658. l = m.Data.Size()
  1659. n += 1 + l + sovPayGoods(uint64(l))
  1660. }
  1661. return n
  1662. }
  1663. func (m *PayGoodsAddResp_Data) Size() (n int) {
  1664. if m == nil {
  1665. return 0
  1666. }
  1667. var l int
  1668. _ = l
  1669. return n
  1670. }
  1671. func (m *PayGoodsUpdateReq) Size() (n int) {
  1672. if m == nil {
  1673. return 0
  1674. }
  1675. var l int
  1676. _ = l
  1677. if m.Id != 0 {
  1678. n += 1 + sovPayGoods(uint64(m.Id))
  1679. }
  1680. l = len(m.Platform)
  1681. if l > 0 {
  1682. n += 1 + l + sovPayGoods(uint64(l))
  1683. }
  1684. l = len(m.Title)
  1685. if l > 0 {
  1686. n += 1 + l + sovPayGoods(uint64(l))
  1687. }
  1688. if m.Type != 0 {
  1689. n += 1 + sovPayGoods(uint64(m.Type))
  1690. }
  1691. if m.Price != 0 {
  1692. n += 1 + sovPayGoods(uint64(m.Price))
  1693. }
  1694. l = len(m.StartTime)
  1695. if l > 0 {
  1696. n += 1 + l + sovPayGoods(uint64(l))
  1697. }
  1698. l = len(m.EndTime)
  1699. if l > 0 {
  1700. n += 1 + l + sovPayGoods(uint64(l))
  1701. }
  1702. if m.IpLimit != 0 {
  1703. n += 1 + sovPayGoods(uint64(m.IpLimit))
  1704. }
  1705. return n
  1706. }
  1707. func (m *PayGoodsUpdateResp) Size() (n int) {
  1708. if m == nil {
  1709. return 0
  1710. }
  1711. var l int
  1712. _ = l
  1713. if m.Code != 0 {
  1714. n += 1 + sovPayGoods(uint64(m.Code))
  1715. }
  1716. l = len(m.Msg)
  1717. if l > 0 {
  1718. n += 1 + l + sovPayGoods(uint64(l))
  1719. }
  1720. if m.Data != nil {
  1721. l = m.Data.Size()
  1722. n += 1 + l + sovPayGoods(uint64(l))
  1723. }
  1724. return n
  1725. }
  1726. func (m *PayGoodsUpdateResp_Data) Size() (n int) {
  1727. if m == nil {
  1728. return 0
  1729. }
  1730. var l int
  1731. _ = l
  1732. return n
  1733. }
  1734. func (m *PayGoodsGetListReq) Size() (n int) {
  1735. if m == nil {
  1736. return 0
  1737. }
  1738. var l int
  1739. _ = l
  1740. if m.Id != 0 {
  1741. n += 1 + sovPayGoods(uint64(m.Id))
  1742. }
  1743. l = len(m.Platform)
  1744. if l > 0 {
  1745. n += 1 + l + sovPayGoods(uint64(l))
  1746. }
  1747. l = len(m.Title)
  1748. if l > 0 {
  1749. n += 1 + l + sovPayGoods(uint64(l))
  1750. }
  1751. if m.Type != 0 {
  1752. n += 1 + sovPayGoods(uint64(m.Type))
  1753. }
  1754. if m.IpLimit != 0 {
  1755. n += 1 + sovPayGoods(uint64(m.IpLimit))
  1756. }
  1757. if m.PageNum != 0 {
  1758. n += 1 + sovPayGoods(uint64(m.PageNum))
  1759. }
  1760. if m.PageSize != 0 {
  1761. n += 1 + sovPayGoods(uint64(m.PageSize))
  1762. }
  1763. return n
  1764. }
  1765. func (m *PayGoodsGetListResp) Size() (n int) {
  1766. if m == nil {
  1767. return 0
  1768. }
  1769. var l int
  1770. _ = l
  1771. if m.Code != 0 {
  1772. n += 1 + sovPayGoods(uint64(m.Code))
  1773. }
  1774. l = len(m.Msg)
  1775. if l > 0 {
  1776. n += 1 + l + sovPayGoods(uint64(l))
  1777. }
  1778. if m.Data != nil {
  1779. l = m.Data.Size()
  1780. n += 1 + l + sovPayGoods(uint64(l))
  1781. }
  1782. return n
  1783. }
  1784. func (m *PayGoodsGetListResp_PageInfo) Size() (n int) {
  1785. if m == nil {
  1786. return 0
  1787. }
  1788. var l int
  1789. _ = l
  1790. if m.TotalCount != 0 {
  1791. n += 1 + sovPayGoods(uint64(m.TotalCount))
  1792. }
  1793. if m.PageNum != 0 {
  1794. n += 1 + sovPayGoods(uint64(m.PageNum))
  1795. }
  1796. return n
  1797. }
  1798. func (m *PayGoodsGetListResp_GoodsInfo) Size() (n int) {
  1799. if m == nil {
  1800. return 0
  1801. }
  1802. var l int
  1803. _ = l
  1804. if m.Id != 0 {
  1805. n += 1 + sovPayGoods(uint64(m.Id))
  1806. }
  1807. l = len(m.Title)
  1808. if l > 0 {
  1809. n += 1 + l + sovPayGoods(uint64(l))
  1810. }
  1811. l = len(m.Platform)
  1812. if l > 0 {
  1813. n += 1 + l + sovPayGoods(uint64(l))
  1814. }
  1815. if m.Type != 0 {
  1816. n += 1 + sovPayGoods(uint64(m.Type))
  1817. }
  1818. if m.Price != 0 {
  1819. n += 1 + sovPayGoods(uint64(m.Price))
  1820. }
  1821. l = len(m.StartTime)
  1822. if l > 0 {
  1823. n += 1 + l + sovPayGoods(uint64(l))
  1824. }
  1825. l = len(m.EndTime)
  1826. if l > 0 {
  1827. n += 1 + l + sovPayGoods(uint64(l))
  1828. }
  1829. if m.IpLimit != 0 {
  1830. n += 1 + sovPayGoods(uint64(m.IpLimit))
  1831. }
  1832. if m.Status != 0 {
  1833. n += 1 + sovPayGoods(uint64(m.Status))
  1834. }
  1835. return n
  1836. }
  1837. func (m *PayGoodsGetListResp_Data) Size() (n int) {
  1838. if m == nil {
  1839. return 0
  1840. }
  1841. var l int
  1842. _ = l
  1843. if m.PageInfo != nil {
  1844. l = m.PageInfo.Size()
  1845. n += 1 + l + sovPayGoods(uint64(l))
  1846. }
  1847. if len(m.GoodsInfo) > 0 {
  1848. for _, e := range m.GoodsInfo {
  1849. l = e.Size()
  1850. n += 1 + l + sovPayGoods(uint64(l))
  1851. }
  1852. }
  1853. return n
  1854. }
  1855. func (m *PayGoodsCloseReq) Size() (n int) {
  1856. if m == nil {
  1857. return 0
  1858. }
  1859. var l int
  1860. _ = l
  1861. if m.Id != 0 {
  1862. n += 1 + sovPayGoods(uint64(m.Id))
  1863. }
  1864. return n
  1865. }
  1866. func (m *PayGoodsCloseResp) Size() (n int) {
  1867. if m == nil {
  1868. return 0
  1869. }
  1870. var l int
  1871. _ = l
  1872. if m.Code != 0 {
  1873. n += 1 + sovPayGoods(uint64(m.Code))
  1874. }
  1875. l = len(m.Msg)
  1876. if l > 0 {
  1877. n += 1 + l + sovPayGoods(uint64(l))
  1878. }
  1879. if m.Data != nil {
  1880. l = m.Data.Size()
  1881. n += 1 + l + sovPayGoods(uint64(l))
  1882. }
  1883. return n
  1884. }
  1885. func (m *PayGoodsCloseResp_Data) Size() (n int) {
  1886. if m == nil {
  1887. return 0
  1888. }
  1889. var l int
  1890. _ = l
  1891. return n
  1892. }
  1893. func (m *PayGoodsOpenReq) Size() (n int) {
  1894. if m == nil {
  1895. return 0
  1896. }
  1897. var l int
  1898. _ = l
  1899. if m.Id != 0 {
  1900. n += 1 + sovPayGoods(uint64(m.Id))
  1901. }
  1902. return n
  1903. }
  1904. func (m *PayGoodsOpenResp) Size() (n int) {
  1905. if m == nil {
  1906. return 0
  1907. }
  1908. var l int
  1909. _ = l
  1910. if m.Code != 0 {
  1911. n += 1 + sovPayGoods(uint64(m.Code))
  1912. }
  1913. l = len(m.Msg)
  1914. if l > 0 {
  1915. n += 1 + l + sovPayGoods(uint64(l))
  1916. }
  1917. if m.Data != nil {
  1918. l = m.Data.Size()
  1919. n += 1 + l + sovPayGoods(uint64(l))
  1920. }
  1921. return n
  1922. }
  1923. func (m *PayGoodsOpenResp_Data) Size() (n int) {
  1924. if m == nil {
  1925. return 0
  1926. }
  1927. var l int
  1928. _ = l
  1929. return n
  1930. }
  1931. func sovPayGoods(x uint64) (n int) {
  1932. for {
  1933. n++
  1934. x >>= 7
  1935. if x == 0 {
  1936. break
  1937. }
  1938. }
  1939. return n
  1940. }
  1941. func sozPayGoods(x uint64) (n int) {
  1942. return sovPayGoods(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1943. }
  1944. func (m *PayGoodsAddReq) Unmarshal(dAtA []byte) error {
  1945. l := len(dAtA)
  1946. iNdEx := 0
  1947. for iNdEx < l {
  1948. preIndex := iNdEx
  1949. var wire uint64
  1950. for shift := uint(0); ; shift += 7 {
  1951. if shift >= 64 {
  1952. return ErrIntOverflowPayGoods
  1953. }
  1954. if iNdEx >= l {
  1955. return io.ErrUnexpectedEOF
  1956. }
  1957. b := dAtA[iNdEx]
  1958. iNdEx++
  1959. wire |= (uint64(b) & 0x7F) << shift
  1960. if b < 0x80 {
  1961. break
  1962. }
  1963. }
  1964. fieldNum := int32(wire >> 3)
  1965. wireType := int(wire & 0x7)
  1966. if wireType == 4 {
  1967. return fmt.Errorf("proto: PayGoodsAddReq: wiretype end group for non-group")
  1968. }
  1969. if fieldNum <= 0 {
  1970. return fmt.Errorf("proto: PayGoodsAddReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1971. }
  1972. switch fieldNum {
  1973. case 1:
  1974. if wireType != 2 {
  1975. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  1976. }
  1977. var stringLen uint64
  1978. for shift := uint(0); ; shift += 7 {
  1979. if shift >= 64 {
  1980. return ErrIntOverflowPayGoods
  1981. }
  1982. if iNdEx >= l {
  1983. return io.ErrUnexpectedEOF
  1984. }
  1985. b := dAtA[iNdEx]
  1986. iNdEx++
  1987. stringLen |= (uint64(b) & 0x7F) << shift
  1988. if b < 0x80 {
  1989. break
  1990. }
  1991. }
  1992. intStringLen := int(stringLen)
  1993. if intStringLen < 0 {
  1994. return ErrInvalidLengthPayGoods
  1995. }
  1996. postIndex := iNdEx + intStringLen
  1997. if postIndex > l {
  1998. return io.ErrUnexpectedEOF
  1999. }
  2000. m.Platform = string(dAtA[iNdEx:postIndex])
  2001. iNdEx = postIndex
  2002. case 2:
  2003. if wireType != 2 {
  2004. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  2005. }
  2006. var stringLen uint64
  2007. for shift := uint(0); ; shift += 7 {
  2008. if shift >= 64 {
  2009. return ErrIntOverflowPayGoods
  2010. }
  2011. if iNdEx >= l {
  2012. return io.ErrUnexpectedEOF
  2013. }
  2014. b := dAtA[iNdEx]
  2015. iNdEx++
  2016. stringLen |= (uint64(b) & 0x7F) << shift
  2017. if b < 0x80 {
  2018. break
  2019. }
  2020. }
  2021. intStringLen := int(stringLen)
  2022. if intStringLen < 0 {
  2023. return ErrInvalidLengthPayGoods
  2024. }
  2025. postIndex := iNdEx + intStringLen
  2026. if postIndex > l {
  2027. return io.ErrUnexpectedEOF
  2028. }
  2029. m.Title = string(dAtA[iNdEx:postIndex])
  2030. iNdEx = postIndex
  2031. case 3:
  2032. if wireType != 0 {
  2033. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2034. }
  2035. m.Type = 0
  2036. for shift := uint(0); ; shift += 7 {
  2037. if shift >= 64 {
  2038. return ErrIntOverflowPayGoods
  2039. }
  2040. if iNdEx >= l {
  2041. return io.ErrUnexpectedEOF
  2042. }
  2043. b := dAtA[iNdEx]
  2044. iNdEx++
  2045. m.Type |= (int64(b) & 0x7F) << shift
  2046. if b < 0x80 {
  2047. break
  2048. }
  2049. }
  2050. case 4:
  2051. if wireType != 0 {
  2052. return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType)
  2053. }
  2054. m.Price = 0
  2055. for shift := uint(0); ; shift += 7 {
  2056. if shift >= 64 {
  2057. return ErrIntOverflowPayGoods
  2058. }
  2059. if iNdEx >= l {
  2060. return io.ErrUnexpectedEOF
  2061. }
  2062. b := dAtA[iNdEx]
  2063. iNdEx++
  2064. m.Price |= (int64(b) & 0x7F) << shift
  2065. if b < 0x80 {
  2066. break
  2067. }
  2068. }
  2069. case 5:
  2070. if wireType != 2 {
  2071. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  2072. }
  2073. var stringLen uint64
  2074. for shift := uint(0); ; shift += 7 {
  2075. if shift >= 64 {
  2076. return ErrIntOverflowPayGoods
  2077. }
  2078. if iNdEx >= l {
  2079. return io.ErrUnexpectedEOF
  2080. }
  2081. b := dAtA[iNdEx]
  2082. iNdEx++
  2083. stringLen |= (uint64(b) & 0x7F) << shift
  2084. if b < 0x80 {
  2085. break
  2086. }
  2087. }
  2088. intStringLen := int(stringLen)
  2089. if intStringLen < 0 {
  2090. return ErrInvalidLengthPayGoods
  2091. }
  2092. postIndex := iNdEx + intStringLen
  2093. if postIndex > l {
  2094. return io.ErrUnexpectedEOF
  2095. }
  2096. m.StartTime = string(dAtA[iNdEx:postIndex])
  2097. iNdEx = postIndex
  2098. case 6:
  2099. if wireType != 2 {
  2100. return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType)
  2101. }
  2102. var stringLen uint64
  2103. for shift := uint(0); ; shift += 7 {
  2104. if shift >= 64 {
  2105. return ErrIntOverflowPayGoods
  2106. }
  2107. if iNdEx >= l {
  2108. return io.ErrUnexpectedEOF
  2109. }
  2110. b := dAtA[iNdEx]
  2111. iNdEx++
  2112. stringLen |= (uint64(b) & 0x7F) << shift
  2113. if b < 0x80 {
  2114. break
  2115. }
  2116. }
  2117. intStringLen := int(stringLen)
  2118. if intStringLen < 0 {
  2119. return ErrInvalidLengthPayGoods
  2120. }
  2121. postIndex := iNdEx + intStringLen
  2122. if postIndex > l {
  2123. return io.ErrUnexpectedEOF
  2124. }
  2125. m.EndTime = string(dAtA[iNdEx:postIndex])
  2126. iNdEx = postIndex
  2127. case 7:
  2128. if wireType != 0 {
  2129. return fmt.Errorf("proto: wrong wireType = %d for field IpLimit", wireType)
  2130. }
  2131. m.IpLimit = 0
  2132. for shift := uint(0); ; shift += 7 {
  2133. if shift >= 64 {
  2134. return ErrIntOverflowPayGoods
  2135. }
  2136. if iNdEx >= l {
  2137. return io.ErrUnexpectedEOF
  2138. }
  2139. b := dAtA[iNdEx]
  2140. iNdEx++
  2141. m.IpLimit |= (int64(b) & 0x7F) << shift
  2142. if b < 0x80 {
  2143. break
  2144. }
  2145. }
  2146. default:
  2147. iNdEx = preIndex
  2148. skippy, err := skipPayGoods(dAtA[iNdEx:])
  2149. if err != nil {
  2150. return err
  2151. }
  2152. if skippy < 0 {
  2153. return ErrInvalidLengthPayGoods
  2154. }
  2155. if (iNdEx + skippy) > l {
  2156. return io.ErrUnexpectedEOF
  2157. }
  2158. iNdEx += skippy
  2159. }
  2160. }
  2161. if iNdEx > l {
  2162. return io.ErrUnexpectedEOF
  2163. }
  2164. return nil
  2165. }
  2166. func (m *PayGoodsAddResp) Unmarshal(dAtA []byte) error {
  2167. l := len(dAtA)
  2168. iNdEx := 0
  2169. for iNdEx < l {
  2170. preIndex := iNdEx
  2171. var wire uint64
  2172. for shift := uint(0); ; shift += 7 {
  2173. if shift >= 64 {
  2174. return ErrIntOverflowPayGoods
  2175. }
  2176. if iNdEx >= l {
  2177. return io.ErrUnexpectedEOF
  2178. }
  2179. b := dAtA[iNdEx]
  2180. iNdEx++
  2181. wire |= (uint64(b) & 0x7F) << shift
  2182. if b < 0x80 {
  2183. break
  2184. }
  2185. }
  2186. fieldNum := int32(wire >> 3)
  2187. wireType := int(wire & 0x7)
  2188. if wireType == 4 {
  2189. return fmt.Errorf("proto: PayGoodsAddResp: wiretype end group for non-group")
  2190. }
  2191. if fieldNum <= 0 {
  2192. return fmt.Errorf("proto: PayGoodsAddResp: illegal tag %d (wire type %d)", fieldNum, wire)
  2193. }
  2194. switch fieldNum {
  2195. case 1:
  2196. if wireType != 0 {
  2197. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2198. }
  2199. m.Code = 0
  2200. for shift := uint(0); ; shift += 7 {
  2201. if shift >= 64 {
  2202. return ErrIntOverflowPayGoods
  2203. }
  2204. if iNdEx >= l {
  2205. return io.ErrUnexpectedEOF
  2206. }
  2207. b := dAtA[iNdEx]
  2208. iNdEx++
  2209. m.Code |= (int64(b) & 0x7F) << shift
  2210. if b < 0x80 {
  2211. break
  2212. }
  2213. }
  2214. case 2:
  2215. if wireType != 2 {
  2216. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  2217. }
  2218. var stringLen uint64
  2219. for shift := uint(0); ; shift += 7 {
  2220. if shift >= 64 {
  2221. return ErrIntOverflowPayGoods
  2222. }
  2223. if iNdEx >= l {
  2224. return io.ErrUnexpectedEOF
  2225. }
  2226. b := dAtA[iNdEx]
  2227. iNdEx++
  2228. stringLen |= (uint64(b) & 0x7F) << shift
  2229. if b < 0x80 {
  2230. break
  2231. }
  2232. }
  2233. intStringLen := int(stringLen)
  2234. if intStringLen < 0 {
  2235. return ErrInvalidLengthPayGoods
  2236. }
  2237. postIndex := iNdEx + intStringLen
  2238. if postIndex > l {
  2239. return io.ErrUnexpectedEOF
  2240. }
  2241. m.Msg = string(dAtA[iNdEx:postIndex])
  2242. iNdEx = postIndex
  2243. case 3:
  2244. if wireType != 2 {
  2245. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2246. }
  2247. var msglen int
  2248. for shift := uint(0); ; shift += 7 {
  2249. if shift >= 64 {
  2250. return ErrIntOverflowPayGoods
  2251. }
  2252. if iNdEx >= l {
  2253. return io.ErrUnexpectedEOF
  2254. }
  2255. b := dAtA[iNdEx]
  2256. iNdEx++
  2257. msglen |= (int(b) & 0x7F) << shift
  2258. if b < 0x80 {
  2259. break
  2260. }
  2261. }
  2262. if msglen < 0 {
  2263. return ErrInvalidLengthPayGoods
  2264. }
  2265. postIndex := iNdEx + msglen
  2266. if postIndex > l {
  2267. return io.ErrUnexpectedEOF
  2268. }
  2269. if m.Data == nil {
  2270. m.Data = &PayGoodsAddResp_Data{}
  2271. }
  2272. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2273. return err
  2274. }
  2275. iNdEx = postIndex
  2276. default:
  2277. iNdEx = preIndex
  2278. skippy, err := skipPayGoods(dAtA[iNdEx:])
  2279. if err != nil {
  2280. return err
  2281. }
  2282. if skippy < 0 {
  2283. return ErrInvalidLengthPayGoods
  2284. }
  2285. if (iNdEx + skippy) > l {
  2286. return io.ErrUnexpectedEOF
  2287. }
  2288. iNdEx += skippy
  2289. }
  2290. }
  2291. if iNdEx > l {
  2292. return io.ErrUnexpectedEOF
  2293. }
  2294. return nil
  2295. }
  2296. func (m *PayGoodsAddResp_Data) Unmarshal(dAtA []byte) error {
  2297. l := len(dAtA)
  2298. iNdEx := 0
  2299. for iNdEx < l {
  2300. preIndex := iNdEx
  2301. var wire uint64
  2302. for shift := uint(0); ; shift += 7 {
  2303. if shift >= 64 {
  2304. return ErrIntOverflowPayGoods
  2305. }
  2306. if iNdEx >= l {
  2307. return io.ErrUnexpectedEOF
  2308. }
  2309. b := dAtA[iNdEx]
  2310. iNdEx++
  2311. wire |= (uint64(b) & 0x7F) << shift
  2312. if b < 0x80 {
  2313. break
  2314. }
  2315. }
  2316. fieldNum := int32(wire >> 3)
  2317. wireType := int(wire & 0x7)
  2318. if wireType == 4 {
  2319. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  2320. }
  2321. if fieldNum <= 0 {
  2322. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  2323. }
  2324. switch fieldNum {
  2325. default:
  2326. iNdEx = preIndex
  2327. skippy, err := skipPayGoods(dAtA[iNdEx:])
  2328. if err != nil {
  2329. return err
  2330. }
  2331. if skippy < 0 {
  2332. return ErrInvalidLengthPayGoods
  2333. }
  2334. if (iNdEx + skippy) > l {
  2335. return io.ErrUnexpectedEOF
  2336. }
  2337. iNdEx += skippy
  2338. }
  2339. }
  2340. if iNdEx > l {
  2341. return io.ErrUnexpectedEOF
  2342. }
  2343. return nil
  2344. }
  2345. func (m *PayGoodsUpdateReq) Unmarshal(dAtA []byte) error {
  2346. l := len(dAtA)
  2347. iNdEx := 0
  2348. for iNdEx < l {
  2349. preIndex := iNdEx
  2350. var wire uint64
  2351. for shift := uint(0); ; shift += 7 {
  2352. if shift >= 64 {
  2353. return ErrIntOverflowPayGoods
  2354. }
  2355. if iNdEx >= l {
  2356. return io.ErrUnexpectedEOF
  2357. }
  2358. b := dAtA[iNdEx]
  2359. iNdEx++
  2360. wire |= (uint64(b) & 0x7F) << shift
  2361. if b < 0x80 {
  2362. break
  2363. }
  2364. }
  2365. fieldNum := int32(wire >> 3)
  2366. wireType := int(wire & 0x7)
  2367. if wireType == 4 {
  2368. return fmt.Errorf("proto: PayGoodsUpdateReq: wiretype end group for non-group")
  2369. }
  2370. if fieldNum <= 0 {
  2371. return fmt.Errorf("proto: PayGoodsUpdateReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2372. }
  2373. switch fieldNum {
  2374. case 1:
  2375. if wireType != 0 {
  2376. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  2377. }
  2378. m.Id = 0
  2379. for shift := uint(0); ; shift += 7 {
  2380. if shift >= 64 {
  2381. return ErrIntOverflowPayGoods
  2382. }
  2383. if iNdEx >= l {
  2384. return io.ErrUnexpectedEOF
  2385. }
  2386. b := dAtA[iNdEx]
  2387. iNdEx++
  2388. m.Id |= (int64(b) & 0x7F) << shift
  2389. if b < 0x80 {
  2390. break
  2391. }
  2392. }
  2393. case 2:
  2394. if wireType != 2 {
  2395. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  2396. }
  2397. var stringLen uint64
  2398. for shift := uint(0); ; shift += 7 {
  2399. if shift >= 64 {
  2400. return ErrIntOverflowPayGoods
  2401. }
  2402. if iNdEx >= l {
  2403. return io.ErrUnexpectedEOF
  2404. }
  2405. b := dAtA[iNdEx]
  2406. iNdEx++
  2407. stringLen |= (uint64(b) & 0x7F) << shift
  2408. if b < 0x80 {
  2409. break
  2410. }
  2411. }
  2412. intStringLen := int(stringLen)
  2413. if intStringLen < 0 {
  2414. return ErrInvalidLengthPayGoods
  2415. }
  2416. postIndex := iNdEx + intStringLen
  2417. if postIndex > l {
  2418. return io.ErrUnexpectedEOF
  2419. }
  2420. m.Platform = string(dAtA[iNdEx:postIndex])
  2421. iNdEx = postIndex
  2422. case 3:
  2423. if wireType != 2 {
  2424. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  2425. }
  2426. var stringLen uint64
  2427. for shift := uint(0); ; shift += 7 {
  2428. if shift >= 64 {
  2429. return ErrIntOverflowPayGoods
  2430. }
  2431. if iNdEx >= l {
  2432. return io.ErrUnexpectedEOF
  2433. }
  2434. b := dAtA[iNdEx]
  2435. iNdEx++
  2436. stringLen |= (uint64(b) & 0x7F) << shift
  2437. if b < 0x80 {
  2438. break
  2439. }
  2440. }
  2441. intStringLen := int(stringLen)
  2442. if intStringLen < 0 {
  2443. return ErrInvalidLengthPayGoods
  2444. }
  2445. postIndex := iNdEx + intStringLen
  2446. if postIndex > l {
  2447. return io.ErrUnexpectedEOF
  2448. }
  2449. m.Title = string(dAtA[iNdEx:postIndex])
  2450. iNdEx = postIndex
  2451. case 4:
  2452. if wireType != 0 {
  2453. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2454. }
  2455. m.Type = 0
  2456. for shift := uint(0); ; shift += 7 {
  2457. if shift >= 64 {
  2458. return ErrIntOverflowPayGoods
  2459. }
  2460. if iNdEx >= l {
  2461. return io.ErrUnexpectedEOF
  2462. }
  2463. b := dAtA[iNdEx]
  2464. iNdEx++
  2465. m.Type |= (int64(b) & 0x7F) << shift
  2466. if b < 0x80 {
  2467. break
  2468. }
  2469. }
  2470. case 5:
  2471. if wireType != 0 {
  2472. return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType)
  2473. }
  2474. m.Price = 0
  2475. for shift := uint(0); ; shift += 7 {
  2476. if shift >= 64 {
  2477. return ErrIntOverflowPayGoods
  2478. }
  2479. if iNdEx >= l {
  2480. return io.ErrUnexpectedEOF
  2481. }
  2482. b := dAtA[iNdEx]
  2483. iNdEx++
  2484. m.Price |= (int64(b) & 0x7F) << shift
  2485. if b < 0x80 {
  2486. break
  2487. }
  2488. }
  2489. case 6:
  2490. if wireType != 2 {
  2491. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  2492. }
  2493. var stringLen uint64
  2494. for shift := uint(0); ; shift += 7 {
  2495. if shift >= 64 {
  2496. return ErrIntOverflowPayGoods
  2497. }
  2498. if iNdEx >= l {
  2499. return io.ErrUnexpectedEOF
  2500. }
  2501. b := dAtA[iNdEx]
  2502. iNdEx++
  2503. stringLen |= (uint64(b) & 0x7F) << shift
  2504. if b < 0x80 {
  2505. break
  2506. }
  2507. }
  2508. intStringLen := int(stringLen)
  2509. if intStringLen < 0 {
  2510. return ErrInvalidLengthPayGoods
  2511. }
  2512. postIndex := iNdEx + intStringLen
  2513. if postIndex > l {
  2514. return io.ErrUnexpectedEOF
  2515. }
  2516. m.StartTime = string(dAtA[iNdEx:postIndex])
  2517. iNdEx = postIndex
  2518. case 7:
  2519. if wireType != 2 {
  2520. return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType)
  2521. }
  2522. var stringLen uint64
  2523. for shift := uint(0); ; shift += 7 {
  2524. if shift >= 64 {
  2525. return ErrIntOverflowPayGoods
  2526. }
  2527. if iNdEx >= l {
  2528. return io.ErrUnexpectedEOF
  2529. }
  2530. b := dAtA[iNdEx]
  2531. iNdEx++
  2532. stringLen |= (uint64(b) & 0x7F) << shift
  2533. if b < 0x80 {
  2534. break
  2535. }
  2536. }
  2537. intStringLen := int(stringLen)
  2538. if intStringLen < 0 {
  2539. return ErrInvalidLengthPayGoods
  2540. }
  2541. postIndex := iNdEx + intStringLen
  2542. if postIndex > l {
  2543. return io.ErrUnexpectedEOF
  2544. }
  2545. m.EndTime = string(dAtA[iNdEx:postIndex])
  2546. iNdEx = postIndex
  2547. case 8:
  2548. if wireType != 0 {
  2549. return fmt.Errorf("proto: wrong wireType = %d for field IpLimit", wireType)
  2550. }
  2551. m.IpLimit = 0
  2552. for shift := uint(0); ; shift += 7 {
  2553. if shift >= 64 {
  2554. return ErrIntOverflowPayGoods
  2555. }
  2556. if iNdEx >= l {
  2557. return io.ErrUnexpectedEOF
  2558. }
  2559. b := dAtA[iNdEx]
  2560. iNdEx++
  2561. m.IpLimit |= (int64(b) & 0x7F) << shift
  2562. if b < 0x80 {
  2563. break
  2564. }
  2565. }
  2566. default:
  2567. iNdEx = preIndex
  2568. skippy, err := skipPayGoods(dAtA[iNdEx:])
  2569. if err != nil {
  2570. return err
  2571. }
  2572. if skippy < 0 {
  2573. return ErrInvalidLengthPayGoods
  2574. }
  2575. if (iNdEx + skippy) > l {
  2576. return io.ErrUnexpectedEOF
  2577. }
  2578. iNdEx += skippy
  2579. }
  2580. }
  2581. if iNdEx > l {
  2582. return io.ErrUnexpectedEOF
  2583. }
  2584. return nil
  2585. }
  2586. func (m *PayGoodsUpdateResp) Unmarshal(dAtA []byte) error {
  2587. l := len(dAtA)
  2588. iNdEx := 0
  2589. for iNdEx < l {
  2590. preIndex := iNdEx
  2591. var wire uint64
  2592. for shift := uint(0); ; shift += 7 {
  2593. if shift >= 64 {
  2594. return ErrIntOverflowPayGoods
  2595. }
  2596. if iNdEx >= l {
  2597. return io.ErrUnexpectedEOF
  2598. }
  2599. b := dAtA[iNdEx]
  2600. iNdEx++
  2601. wire |= (uint64(b) & 0x7F) << shift
  2602. if b < 0x80 {
  2603. break
  2604. }
  2605. }
  2606. fieldNum := int32(wire >> 3)
  2607. wireType := int(wire & 0x7)
  2608. if wireType == 4 {
  2609. return fmt.Errorf("proto: PayGoodsUpdateResp: wiretype end group for non-group")
  2610. }
  2611. if fieldNum <= 0 {
  2612. return fmt.Errorf("proto: PayGoodsUpdateResp: illegal tag %d (wire type %d)", fieldNum, wire)
  2613. }
  2614. switch fieldNum {
  2615. case 1:
  2616. if wireType != 0 {
  2617. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2618. }
  2619. m.Code = 0
  2620. for shift := uint(0); ; shift += 7 {
  2621. if shift >= 64 {
  2622. return ErrIntOverflowPayGoods
  2623. }
  2624. if iNdEx >= l {
  2625. return io.ErrUnexpectedEOF
  2626. }
  2627. b := dAtA[iNdEx]
  2628. iNdEx++
  2629. m.Code |= (int64(b) & 0x7F) << shift
  2630. if b < 0x80 {
  2631. break
  2632. }
  2633. }
  2634. case 2:
  2635. if wireType != 2 {
  2636. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  2637. }
  2638. var stringLen uint64
  2639. for shift := uint(0); ; shift += 7 {
  2640. if shift >= 64 {
  2641. return ErrIntOverflowPayGoods
  2642. }
  2643. if iNdEx >= l {
  2644. return io.ErrUnexpectedEOF
  2645. }
  2646. b := dAtA[iNdEx]
  2647. iNdEx++
  2648. stringLen |= (uint64(b) & 0x7F) << shift
  2649. if b < 0x80 {
  2650. break
  2651. }
  2652. }
  2653. intStringLen := int(stringLen)
  2654. if intStringLen < 0 {
  2655. return ErrInvalidLengthPayGoods
  2656. }
  2657. postIndex := iNdEx + intStringLen
  2658. if postIndex > l {
  2659. return io.ErrUnexpectedEOF
  2660. }
  2661. m.Msg = string(dAtA[iNdEx:postIndex])
  2662. iNdEx = postIndex
  2663. case 3:
  2664. if wireType != 2 {
  2665. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  2666. }
  2667. var msglen int
  2668. for shift := uint(0); ; shift += 7 {
  2669. if shift >= 64 {
  2670. return ErrIntOverflowPayGoods
  2671. }
  2672. if iNdEx >= l {
  2673. return io.ErrUnexpectedEOF
  2674. }
  2675. b := dAtA[iNdEx]
  2676. iNdEx++
  2677. msglen |= (int(b) & 0x7F) << shift
  2678. if b < 0x80 {
  2679. break
  2680. }
  2681. }
  2682. if msglen < 0 {
  2683. return ErrInvalidLengthPayGoods
  2684. }
  2685. postIndex := iNdEx + msglen
  2686. if postIndex > l {
  2687. return io.ErrUnexpectedEOF
  2688. }
  2689. if m.Data == nil {
  2690. m.Data = &PayGoodsUpdateResp_Data{}
  2691. }
  2692. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2693. return err
  2694. }
  2695. iNdEx = postIndex
  2696. default:
  2697. iNdEx = preIndex
  2698. skippy, err := skipPayGoods(dAtA[iNdEx:])
  2699. if err != nil {
  2700. return err
  2701. }
  2702. if skippy < 0 {
  2703. return ErrInvalidLengthPayGoods
  2704. }
  2705. if (iNdEx + skippy) > l {
  2706. return io.ErrUnexpectedEOF
  2707. }
  2708. iNdEx += skippy
  2709. }
  2710. }
  2711. if iNdEx > l {
  2712. return io.ErrUnexpectedEOF
  2713. }
  2714. return nil
  2715. }
  2716. func (m *PayGoodsUpdateResp_Data) Unmarshal(dAtA []byte) error {
  2717. l := len(dAtA)
  2718. iNdEx := 0
  2719. for iNdEx < l {
  2720. preIndex := iNdEx
  2721. var wire uint64
  2722. for shift := uint(0); ; shift += 7 {
  2723. if shift >= 64 {
  2724. return ErrIntOverflowPayGoods
  2725. }
  2726. if iNdEx >= l {
  2727. return io.ErrUnexpectedEOF
  2728. }
  2729. b := dAtA[iNdEx]
  2730. iNdEx++
  2731. wire |= (uint64(b) & 0x7F) << shift
  2732. if b < 0x80 {
  2733. break
  2734. }
  2735. }
  2736. fieldNum := int32(wire >> 3)
  2737. wireType := int(wire & 0x7)
  2738. if wireType == 4 {
  2739. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  2740. }
  2741. if fieldNum <= 0 {
  2742. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  2743. }
  2744. switch fieldNum {
  2745. default:
  2746. iNdEx = preIndex
  2747. skippy, err := skipPayGoods(dAtA[iNdEx:])
  2748. if err != nil {
  2749. return err
  2750. }
  2751. if skippy < 0 {
  2752. return ErrInvalidLengthPayGoods
  2753. }
  2754. if (iNdEx + skippy) > l {
  2755. return io.ErrUnexpectedEOF
  2756. }
  2757. iNdEx += skippy
  2758. }
  2759. }
  2760. if iNdEx > l {
  2761. return io.ErrUnexpectedEOF
  2762. }
  2763. return nil
  2764. }
  2765. func (m *PayGoodsGetListReq) Unmarshal(dAtA []byte) error {
  2766. l := len(dAtA)
  2767. iNdEx := 0
  2768. for iNdEx < l {
  2769. preIndex := iNdEx
  2770. var wire uint64
  2771. for shift := uint(0); ; shift += 7 {
  2772. if shift >= 64 {
  2773. return ErrIntOverflowPayGoods
  2774. }
  2775. if iNdEx >= l {
  2776. return io.ErrUnexpectedEOF
  2777. }
  2778. b := dAtA[iNdEx]
  2779. iNdEx++
  2780. wire |= (uint64(b) & 0x7F) << shift
  2781. if b < 0x80 {
  2782. break
  2783. }
  2784. }
  2785. fieldNum := int32(wire >> 3)
  2786. wireType := int(wire & 0x7)
  2787. if wireType == 4 {
  2788. return fmt.Errorf("proto: PayGoodsGetListReq: wiretype end group for non-group")
  2789. }
  2790. if fieldNum <= 0 {
  2791. return fmt.Errorf("proto: PayGoodsGetListReq: illegal tag %d (wire type %d)", fieldNum, wire)
  2792. }
  2793. switch fieldNum {
  2794. case 1:
  2795. if wireType != 0 {
  2796. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  2797. }
  2798. m.Id = 0
  2799. for shift := uint(0); ; shift += 7 {
  2800. if shift >= 64 {
  2801. return ErrIntOverflowPayGoods
  2802. }
  2803. if iNdEx >= l {
  2804. return io.ErrUnexpectedEOF
  2805. }
  2806. b := dAtA[iNdEx]
  2807. iNdEx++
  2808. m.Id |= (int64(b) & 0x7F) << shift
  2809. if b < 0x80 {
  2810. break
  2811. }
  2812. }
  2813. case 2:
  2814. if wireType != 2 {
  2815. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  2816. }
  2817. var stringLen uint64
  2818. for shift := uint(0); ; shift += 7 {
  2819. if shift >= 64 {
  2820. return ErrIntOverflowPayGoods
  2821. }
  2822. if iNdEx >= l {
  2823. return io.ErrUnexpectedEOF
  2824. }
  2825. b := dAtA[iNdEx]
  2826. iNdEx++
  2827. stringLen |= (uint64(b) & 0x7F) << shift
  2828. if b < 0x80 {
  2829. break
  2830. }
  2831. }
  2832. intStringLen := int(stringLen)
  2833. if intStringLen < 0 {
  2834. return ErrInvalidLengthPayGoods
  2835. }
  2836. postIndex := iNdEx + intStringLen
  2837. if postIndex > l {
  2838. return io.ErrUnexpectedEOF
  2839. }
  2840. m.Platform = string(dAtA[iNdEx:postIndex])
  2841. iNdEx = postIndex
  2842. case 3:
  2843. if wireType != 2 {
  2844. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  2845. }
  2846. var stringLen uint64
  2847. for shift := uint(0); ; shift += 7 {
  2848. if shift >= 64 {
  2849. return ErrIntOverflowPayGoods
  2850. }
  2851. if iNdEx >= l {
  2852. return io.ErrUnexpectedEOF
  2853. }
  2854. b := dAtA[iNdEx]
  2855. iNdEx++
  2856. stringLen |= (uint64(b) & 0x7F) << shift
  2857. if b < 0x80 {
  2858. break
  2859. }
  2860. }
  2861. intStringLen := int(stringLen)
  2862. if intStringLen < 0 {
  2863. return ErrInvalidLengthPayGoods
  2864. }
  2865. postIndex := iNdEx + intStringLen
  2866. if postIndex > l {
  2867. return io.ErrUnexpectedEOF
  2868. }
  2869. m.Title = string(dAtA[iNdEx:postIndex])
  2870. iNdEx = postIndex
  2871. case 4:
  2872. if wireType != 0 {
  2873. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2874. }
  2875. m.Type = 0
  2876. for shift := uint(0); ; shift += 7 {
  2877. if shift >= 64 {
  2878. return ErrIntOverflowPayGoods
  2879. }
  2880. if iNdEx >= l {
  2881. return io.ErrUnexpectedEOF
  2882. }
  2883. b := dAtA[iNdEx]
  2884. iNdEx++
  2885. m.Type |= (int64(b) & 0x7F) << shift
  2886. if b < 0x80 {
  2887. break
  2888. }
  2889. }
  2890. case 5:
  2891. if wireType != 0 {
  2892. return fmt.Errorf("proto: wrong wireType = %d for field IpLimit", wireType)
  2893. }
  2894. m.IpLimit = 0
  2895. for shift := uint(0); ; shift += 7 {
  2896. if shift >= 64 {
  2897. return ErrIntOverflowPayGoods
  2898. }
  2899. if iNdEx >= l {
  2900. return io.ErrUnexpectedEOF
  2901. }
  2902. b := dAtA[iNdEx]
  2903. iNdEx++
  2904. m.IpLimit |= (int64(b) & 0x7F) << shift
  2905. if b < 0x80 {
  2906. break
  2907. }
  2908. }
  2909. case 6:
  2910. if wireType != 0 {
  2911. return fmt.Errorf("proto: wrong wireType = %d for field PageNum", wireType)
  2912. }
  2913. m.PageNum = 0
  2914. for shift := uint(0); ; shift += 7 {
  2915. if shift >= 64 {
  2916. return ErrIntOverflowPayGoods
  2917. }
  2918. if iNdEx >= l {
  2919. return io.ErrUnexpectedEOF
  2920. }
  2921. b := dAtA[iNdEx]
  2922. iNdEx++
  2923. m.PageNum |= (int64(b) & 0x7F) << shift
  2924. if b < 0x80 {
  2925. break
  2926. }
  2927. }
  2928. case 7:
  2929. if wireType != 0 {
  2930. return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType)
  2931. }
  2932. m.PageSize = 0
  2933. for shift := uint(0); ; shift += 7 {
  2934. if shift >= 64 {
  2935. return ErrIntOverflowPayGoods
  2936. }
  2937. if iNdEx >= l {
  2938. return io.ErrUnexpectedEOF
  2939. }
  2940. b := dAtA[iNdEx]
  2941. iNdEx++
  2942. m.PageSize |= (int64(b) & 0x7F) << shift
  2943. if b < 0x80 {
  2944. break
  2945. }
  2946. }
  2947. default:
  2948. iNdEx = preIndex
  2949. skippy, err := skipPayGoods(dAtA[iNdEx:])
  2950. if err != nil {
  2951. return err
  2952. }
  2953. if skippy < 0 {
  2954. return ErrInvalidLengthPayGoods
  2955. }
  2956. if (iNdEx + skippy) > l {
  2957. return io.ErrUnexpectedEOF
  2958. }
  2959. iNdEx += skippy
  2960. }
  2961. }
  2962. if iNdEx > l {
  2963. return io.ErrUnexpectedEOF
  2964. }
  2965. return nil
  2966. }
  2967. func (m *PayGoodsGetListResp) Unmarshal(dAtA []byte) error {
  2968. l := len(dAtA)
  2969. iNdEx := 0
  2970. for iNdEx < l {
  2971. preIndex := iNdEx
  2972. var wire uint64
  2973. for shift := uint(0); ; shift += 7 {
  2974. if shift >= 64 {
  2975. return ErrIntOverflowPayGoods
  2976. }
  2977. if iNdEx >= l {
  2978. return io.ErrUnexpectedEOF
  2979. }
  2980. b := dAtA[iNdEx]
  2981. iNdEx++
  2982. wire |= (uint64(b) & 0x7F) << shift
  2983. if b < 0x80 {
  2984. break
  2985. }
  2986. }
  2987. fieldNum := int32(wire >> 3)
  2988. wireType := int(wire & 0x7)
  2989. if wireType == 4 {
  2990. return fmt.Errorf("proto: PayGoodsGetListResp: wiretype end group for non-group")
  2991. }
  2992. if fieldNum <= 0 {
  2993. return fmt.Errorf("proto: PayGoodsGetListResp: illegal tag %d (wire type %d)", fieldNum, wire)
  2994. }
  2995. switch fieldNum {
  2996. case 1:
  2997. if wireType != 0 {
  2998. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  2999. }
  3000. m.Code = 0
  3001. for shift := uint(0); ; shift += 7 {
  3002. if shift >= 64 {
  3003. return ErrIntOverflowPayGoods
  3004. }
  3005. if iNdEx >= l {
  3006. return io.ErrUnexpectedEOF
  3007. }
  3008. b := dAtA[iNdEx]
  3009. iNdEx++
  3010. m.Code |= (int64(b) & 0x7F) << shift
  3011. if b < 0x80 {
  3012. break
  3013. }
  3014. }
  3015. case 2:
  3016. if wireType != 2 {
  3017. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  3018. }
  3019. var stringLen uint64
  3020. for shift := uint(0); ; shift += 7 {
  3021. if shift >= 64 {
  3022. return ErrIntOverflowPayGoods
  3023. }
  3024. if iNdEx >= l {
  3025. return io.ErrUnexpectedEOF
  3026. }
  3027. b := dAtA[iNdEx]
  3028. iNdEx++
  3029. stringLen |= (uint64(b) & 0x7F) << shift
  3030. if b < 0x80 {
  3031. break
  3032. }
  3033. }
  3034. intStringLen := int(stringLen)
  3035. if intStringLen < 0 {
  3036. return ErrInvalidLengthPayGoods
  3037. }
  3038. postIndex := iNdEx + intStringLen
  3039. if postIndex > l {
  3040. return io.ErrUnexpectedEOF
  3041. }
  3042. m.Msg = string(dAtA[iNdEx:postIndex])
  3043. iNdEx = postIndex
  3044. case 3:
  3045. if wireType != 2 {
  3046. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  3047. }
  3048. var msglen int
  3049. for shift := uint(0); ; shift += 7 {
  3050. if shift >= 64 {
  3051. return ErrIntOverflowPayGoods
  3052. }
  3053. if iNdEx >= l {
  3054. return io.ErrUnexpectedEOF
  3055. }
  3056. b := dAtA[iNdEx]
  3057. iNdEx++
  3058. msglen |= (int(b) & 0x7F) << shift
  3059. if b < 0x80 {
  3060. break
  3061. }
  3062. }
  3063. if msglen < 0 {
  3064. return ErrInvalidLengthPayGoods
  3065. }
  3066. postIndex := iNdEx + msglen
  3067. if postIndex > l {
  3068. return io.ErrUnexpectedEOF
  3069. }
  3070. if m.Data == nil {
  3071. m.Data = &PayGoodsGetListResp_Data{}
  3072. }
  3073. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3074. return err
  3075. }
  3076. iNdEx = postIndex
  3077. default:
  3078. iNdEx = preIndex
  3079. skippy, err := skipPayGoods(dAtA[iNdEx:])
  3080. if err != nil {
  3081. return err
  3082. }
  3083. if skippy < 0 {
  3084. return ErrInvalidLengthPayGoods
  3085. }
  3086. if (iNdEx + skippy) > l {
  3087. return io.ErrUnexpectedEOF
  3088. }
  3089. iNdEx += skippy
  3090. }
  3091. }
  3092. if iNdEx > l {
  3093. return io.ErrUnexpectedEOF
  3094. }
  3095. return nil
  3096. }
  3097. func (m *PayGoodsGetListResp_PageInfo) Unmarshal(dAtA []byte) error {
  3098. l := len(dAtA)
  3099. iNdEx := 0
  3100. for iNdEx < l {
  3101. preIndex := iNdEx
  3102. var wire uint64
  3103. for shift := uint(0); ; shift += 7 {
  3104. if shift >= 64 {
  3105. return ErrIntOverflowPayGoods
  3106. }
  3107. if iNdEx >= l {
  3108. return io.ErrUnexpectedEOF
  3109. }
  3110. b := dAtA[iNdEx]
  3111. iNdEx++
  3112. wire |= (uint64(b) & 0x7F) << shift
  3113. if b < 0x80 {
  3114. break
  3115. }
  3116. }
  3117. fieldNum := int32(wire >> 3)
  3118. wireType := int(wire & 0x7)
  3119. if wireType == 4 {
  3120. return fmt.Errorf("proto: PageInfo: wiretype end group for non-group")
  3121. }
  3122. if fieldNum <= 0 {
  3123. return fmt.Errorf("proto: PageInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  3124. }
  3125. switch fieldNum {
  3126. case 1:
  3127. if wireType != 0 {
  3128. return fmt.Errorf("proto: wrong wireType = %d for field TotalCount", wireType)
  3129. }
  3130. m.TotalCount = 0
  3131. for shift := uint(0); ; shift += 7 {
  3132. if shift >= 64 {
  3133. return ErrIntOverflowPayGoods
  3134. }
  3135. if iNdEx >= l {
  3136. return io.ErrUnexpectedEOF
  3137. }
  3138. b := dAtA[iNdEx]
  3139. iNdEx++
  3140. m.TotalCount |= (int64(b) & 0x7F) << shift
  3141. if b < 0x80 {
  3142. break
  3143. }
  3144. }
  3145. case 2:
  3146. if wireType != 0 {
  3147. return fmt.Errorf("proto: wrong wireType = %d for field PageNum", wireType)
  3148. }
  3149. m.PageNum = 0
  3150. for shift := uint(0); ; shift += 7 {
  3151. if shift >= 64 {
  3152. return ErrIntOverflowPayGoods
  3153. }
  3154. if iNdEx >= l {
  3155. return io.ErrUnexpectedEOF
  3156. }
  3157. b := dAtA[iNdEx]
  3158. iNdEx++
  3159. m.PageNum |= (int64(b) & 0x7F) << shift
  3160. if b < 0x80 {
  3161. break
  3162. }
  3163. }
  3164. default:
  3165. iNdEx = preIndex
  3166. skippy, err := skipPayGoods(dAtA[iNdEx:])
  3167. if err != nil {
  3168. return err
  3169. }
  3170. if skippy < 0 {
  3171. return ErrInvalidLengthPayGoods
  3172. }
  3173. if (iNdEx + skippy) > l {
  3174. return io.ErrUnexpectedEOF
  3175. }
  3176. iNdEx += skippy
  3177. }
  3178. }
  3179. if iNdEx > l {
  3180. return io.ErrUnexpectedEOF
  3181. }
  3182. return nil
  3183. }
  3184. func (m *PayGoodsGetListResp_GoodsInfo) Unmarshal(dAtA []byte) error {
  3185. l := len(dAtA)
  3186. iNdEx := 0
  3187. for iNdEx < l {
  3188. preIndex := iNdEx
  3189. var wire uint64
  3190. for shift := uint(0); ; shift += 7 {
  3191. if shift >= 64 {
  3192. return ErrIntOverflowPayGoods
  3193. }
  3194. if iNdEx >= l {
  3195. return io.ErrUnexpectedEOF
  3196. }
  3197. b := dAtA[iNdEx]
  3198. iNdEx++
  3199. wire |= (uint64(b) & 0x7F) << shift
  3200. if b < 0x80 {
  3201. break
  3202. }
  3203. }
  3204. fieldNum := int32(wire >> 3)
  3205. wireType := int(wire & 0x7)
  3206. if wireType == 4 {
  3207. return fmt.Errorf("proto: GoodsInfo: wiretype end group for non-group")
  3208. }
  3209. if fieldNum <= 0 {
  3210. return fmt.Errorf("proto: GoodsInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  3211. }
  3212. switch fieldNum {
  3213. case 1:
  3214. if wireType != 0 {
  3215. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  3216. }
  3217. m.Id = 0
  3218. for shift := uint(0); ; shift += 7 {
  3219. if shift >= 64 {
  3220. return ErrIntOverflowPayGoods
  3221. }
  3222. if iNdEx >= l {
  3223. return io.ErrUnexpectedEOF
  3224. }
  3225. b := dAtA[iNdEx]
  3226. iNdEx++
  3227. m.Id |= (int64(b) & 0x7F) << shift
  3228. if b < 0x80 {
  3229. break
  3230. }
  3231. }
  3232. case 2:
  3233. if wireType != 2 {
  3234. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  3235. }
  3236. var stringLen uint64
  3237. for shift := uint(0); ; shift += 7 {
  3238. if shift >= 64 {
  3239. return ErrIntOverflowPayGoods
  3240. }
  3241. if iNdEx >= l {
  3242. return io.ErrUnexpectedEOF
  3243. }
  3244. b := dAtA[iNdEx]
  3245. iNdEx++
  3246. stringLen |= (uint64(b) & 0x7F) << shift
  3247. if b < 0x80 {
  3248. break
  3249. }
  3250. }
  3251. intStringLen := int(stringLen)
  3252. if intStringLen < 0 {
  3253. return ErrInvalidLengthPayGoods
  3254. }
  3255. postIndex := iNdEx + intStringLen
  3256. if postIndex > l {
  3257. return io.ErrUnexpectedEOF
  3258. }
  3259. m.Title = string(dAtA[iNdEx:postIndex])
  3260. iNdEx = postIndex
  3261. case 3:
  3262. if wireType != 2 {
  3263. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  3264. }
  3265. var stringLen uint64
  3266. for shift := uint(0); ; shift += 7 {
  3267. if shift >= 64 {
  3268. return ErrIntOverflowPayGoods
  3269. }
  3270. if iNdEx >= l {
  3271. return io.ErrUnexpectedEOF
  3272. }
  3273. b := dAtA[iNdEx]
  3274. iNdEx++
  3275. stringLen |= (uint64(b) & 0x7F) << shift
  3276. if b < 0x80 {
  3277. break
  3278. }
  3279. }
  3280. intStringLen := int(stringLen)
  3281. if intStringLen < 0 {
  3282. return ErrInvalidLengthPayGoods
  3283. }
  3284. postIndex := iNdEx + intStringLen
  3285. if postIndex > l {
  3286. return io.ErrUnexpectedEOF
  3287. }
  3288. m.Platform = string(dAtA[iNdEx:postIndex])
  3289. iNdEx = postIndex
  3290. case 4:
  3291. if wireType != 0 {
  3292. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3293. }
  3294. m.Type = 0
  3295. for shift := uint(0); ; shift += 7 {
  3296. if shift >= 64 {
  3297. return ErrIntOverflowPayGoods
  3298. }
  3299. if iNdEx >= l {
  3300. return io.ErrUnexpectedEOF
  3301. }
  3302. b := dAtA[iNdEx]
  3303. iNdEx++
  3304. m.Type |= (int64(b) & 0x7F) << shift
  3305. if b < 0x80 {
  3306. break
  3307. }
  3308. }
  3309. case 5:
  3310. if wireType != 0 {
  3311. return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType)
  3312. }
  3313. m.Price = 0
  3314. for shift := uint(0); ; shift += 7 {
  3315. if shift >= 64 {
  3316. return ErrIntOverflowPayGoods
  3317. }
  3318. if iNdEx >= l {
  3319. return io.ErrUnexpectedEOF
  3320. }
  3321. b := dAtA[iNdEx]
  3322. iNdEx++
  3323. m.Price |= (int64(b) & 0x7F) << shift
  3324. if b < 0x80 {
  3325. break
  3326. }
  3327. }
  3328. case 6:
  3329. if wireType != 2 {
  3330. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  3331. }
  3332. var stringLen uint64
  3333. for shift := uint(0); ; shift += 7 {
  3334. if shift >= 64 {
  3335. return ErrIntOverflowPayGoods
  3336. }
  3337. if iNdEx >= l {
  3338. return io.ErrUnexpectedEOF
  3339. }
  3340. b := dAtA[iNdEx]
  3341. iNdEx++
  3342. stringLen |= (uint64(b) & 0x7F) << shift
  3343. if b < 0x80 {
  3344. break
  3345. }
  3346. }
  3347. intStringLen := int(stringLen)
  3348. if intStringLen < 0 {
  3349. return ErrInvalidLengthPayGoods
  3350. }
  3351. postIndex := iNdEx + intStringLen
  3352. if postIndex > l {
  3353. return io.ErrUnexpectedEOF
  3354. }
  3355. m.StartTime = string(dAtA[iNdEx:postIndex])
  3356. iNdEx = postIndex
  3357. case 7:
  3358. if wireType != 2 {
  3359. return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType)
  3360. }
  3361. var stringLen uint64
  3362. for shift := uint(0); ; shift += 7 {
  3363. if shift >= 64 {
  3364. return ErrIntOverflowPayGoods
  3365. }
  3366. if iNdEx >= l {
  3367. return io.ErrUnexpectedEOF
  3368. }
  3369. b := dAtA[iNdEx]
  3370. iNdEx++
  3371. stringLen |= (uint64(b) & 0x7F) << shift
  3372. if b < 0x80 {
  3373. break
  3374. }
  3375. }
  3376. intStringLen := int(stringLen)
  3377. if intStringLen < 0 {
  3378. return ErrInvalidLengthPayGoods
  3379. }
  3380. postIndex := iNdEx + intStringLen
  3381. if postIndex > l {
  3382. return io.ErrUnexpectedEOF
  3383. }
  3384. m.EndTime = string(dAtA[iNdEx:postIndex])
  3385. iNdEx = postIndex
  3386. case 8:
  3387. if wireType != 0 {
  3388. return fmt.Errorf("proto: wrong wireType = %d for field IpLimit", wireType)
  3389. }
  3390. m.IpLimit = 0
  3391. for shift := uint(0); ; shift += 7 {
  3392. if shift >= 64 {
  3393. return ErrIntOverflowPayGoods
  3394. }
  3395. if iNdEx >= l {
  3396. return io.ErrUnexpectedEOF
  3397. }
  3398. b := dAtA[iNdEx]
  3399. iNdEx++
  3400. m.IpLimit |= (int64(b) & 0x7F) << shift
  3401. if b < 0x80 {
  3402. break
  3403. }
  3404. }
  3405. case 9:
  3406. if wireType != 0 {
  3407. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  3408. }
  3409. m.Status = 0
  3410. for shift := uint(0); ; shift += 7 {
  3411. if shift >= 64 {
  3412. return ErrIntOverflowPayGoods
  3413. }
  3414. if iNdEx >= l {
  3415. return io.ErrUnexpectedEOF
  3416. }
  3417. b := dAtA[iNdEx]
  3418. iNdEx++
  3419. m.Status |= (int64(b) & 0x7F) << shift
  3420. if b < 0x80 {
  3421. break
  3422. }
  3423. }
  3424. default:
  3425. iNdEx = preIndex
  3426. skippy, err := skipPayGoods(dAtA[iNdEx:])
  3427. if err != nil {
  3428. return err
  3429. }
  3430. if skippy < 0 {
  3431. return ErrInvalidLengthPayGoods
  3432. }
  3433. if (iNdEx + skippy) > l {
  3434. return io.ErrUnexpectedEOF
  3435. }
  3436. iNdEx += skippy
  3437. }
  3438. }
  3439. if iNdEx > l {
  3440. return io.ErrUnexpectedEOF
  3441. }
  3442. return nil
  3443. }
  3444. func (m *PayGoodsGetListResp_Data) Unmarshal(dAtA []byte) error {
  3445. l := len(dAtA)
  3446. iNdEx := 0
  3447. for iNdEx < l {
  3448. preIndex := iNdEx
  3449. var wire uint64
  3450. for shift := uint(0); ; shift += 7 {
  3451. if shift >= 64 {
  3452. return ErrIntOverflowPayGoods
  3453. }
  3454. if iNdEx >= l {
  3455. return io.ErrUnexpectedEOF
  3456. }
  3457. b := dAtA[iNdEx]
  3458. iNdEx++
  3459. wire |= (uint64(b) & 0x7F) << shift
  3460. if b < 0x80 {
  3461. break
  3462. }
  3463. }
  3464. fieldNum := int32(wire >> 3)
  3465. wireType := int(wire & 0x7)
  3466. if wireType == 4 {
  3467. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  3468. }
  3469. if fieldNum <= 0 {
  3470. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  3471. }
  3472. switch fieldNum {
  3473. case 1:
  3474. if wireType != 2 {
  3475. return fmt.Errorf("proto: wrong wireType = %d for field PageInfo", wireType)
  3476. }
  3477. var msglen int
  3478. for shift := uint(0); ; shift += 7 {
  3479. if shift >= 64 {
  3480. return ErrIntOverflowPayGoods
  3481. }
  3482. if iNdEx >= l {
  3483. return io.ErrUnexpectedEOF
  3484. }
  3485. b := dAtA[iNdEx]
  3486. iNdEx++
  3487. msglen |= (int(b) & 0x7F) << shift
  3488. if b < 0x80 {
  3489. break
  3490. }
  3491. }
  3492. if msglen < 0 {
  3493. return ErrInvalidLengthPayGoods
  3494. }
  3495. postIndex := iNdEx + msglen
  3496. if postIndex > l {
  3497. return io.ErrUnexpectedEOF
  3498. }
  3499. if m.PageInfo == nil {
  3500. m.PageInfo = &PayGoodsGetListResp_PageInfo{}
  3501. }
  3502. if err := m.PageInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3503. return err
  3504. }
  3505. iNdEx = postIndex
  3506. case 2:
  3507. if wireType != 2 {
  3508. return fmt.Errorf("proto: wrong wireType = %d for field GoodsInfo", wireType)
  3509. }
  3510. var msglen int
  3511. for shift := uint(0); ; shift += 7 {
  3512. if shift >= 64 {
  3513. return ErrIntOverflowPayGoods
  3514. }
  3515. if iNdEx >= l {
  3516. return io.ErrUnexpectedEOF
  3517. }
  3518. b := dAtA[iNdEx]
  3519. iNdEx++
  3520. msglen |= (int(b) & 0x7F) << shift
  3521. if b < 0x80 {
  3522. break
  3523. }
  3524. }
  3525. if msglen < 0 {
  3526. return ErrInvalidLengthPayGoods
  3527. }
  3528. postIndex := iNdEx + msglen
  3529. if postIndex > l {
  3530. return io.ErrUnexpectedEOF
  3531. }
  3532. m.GoodsInfo = append(m.GoodsInfo, &PayGoodsGetListResp_GoodsInfo{})
  3533. if err := m.GoodsInfo[len(m.GoodsInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3534. return err
  3535. }
  3536. iNdEx = postIndex
  3537. default:
  3538. iNdEx = preIndex
  3539. skippy, err := skipPayGoods(dAtA[iNdEx:])
  3540. if err != nil {
  3541. return err
  3542. }
  3543. if skippy < 0 {
  3544. return ErrInvalidLengthPayGoods
  3545. }
  3546. if (iNdEx + skippy) > l {
  3547. return io.ErrUnexpectedEOF
  3548. }
  3549. iNdEx += skippy
  3550. }
  3551. }
  3552. if iNdEx > l {
  3553. return io.ErrUnexpectedEOF
  3554. }
  3555. return nil
  3556. }
  3557. func (m *PayGoodsCloseReq) Unmarshal(dAtA []byte) error {
  3558. l := len(dAtA)
  3559. iNdEx := 0
  3560. for iNdEx < l {
  3561. preIndex := iNdEx
  3562. var wire uint64
  3563. for shift := uint(0); ; shift += 7 {
  3564. if shift >= 64 {
  3565. return ErrIntOverflowPayGoods
  3566. }
  3567. if iNdEx >= l {
  3568. return io.ErrUnexpectedEOF
  3569. }
  3570. b := dAtA[iNdEx]
  3571. iNdEx++
  3572. wire |= (uint64(b) & 0x7F) << shift
  3573. if b < 0x80 {
  3574. break
  3575. }
  3576. }
  3577. fieldNum := int32(wire >> 3)
  3578. wireType := int(wire & 0x7)
  3579. if wireType == 4 {
  3580. return fmt.Errorf("proto: PayGoodsCloseReq: wiretype end group for non-group")
  3581. }
  3582. if fieldNum <= 0 {
  3583. return fmt.Errorf("proto: PayGoodsCloseReq: illegal tag %d (wire type %d)", fieldNum, wire)
  3584. }
  3585. switch fieldNum {
  3586. case 1:
  3587. if wireType != 0 {
  3588. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  3589. }
  3590. m.Id = 0
  3591. for shift := uint(0); ; shift += 7 {
  3592. if shift >= 64 {
  3593. return ErrIntOverflowPayGoods
  3594. }
  3595. if iNdEx >= l {
  3596. return io.ErrUnexpectedEOF
  3597. }
  3598. b := dAtA[iNdEx]
  3599. iNdEx++
  3600. m.Id |= (int64(b) & 0x7F) << shift
  3601. if b < 0x80 {
  3602. break
  3603. }
  3604. }
  3605. default:
  3606. iNdEx = preIndex
  3607. skippy, err := skipPayGoods(dAtA[iNdEx:])
  3608. if err != nil {
  3609. return err
  3610. }
  3611. if skippy < 0 {
  3612. return ErrInvalidLengthPayGoods
  3613. }
  3614. if (iNdEx + skippy) > l {
  3615. return io.ErrUnexpectedEOF
  3616. }
  3617. iNdEx += skippy
  3618. }
  3619. }
  3620. if iNdEx > l {
  3621. return io.ErrUnexpectedEOF
  3622. }
  3623. return nil
  3624. }
  3625. func (m *PayGoodsCloseResp) Unmarshal(dAtA []byte) error {
  3626. l := len(dAtA)
  3627. iNdEx := 0
  3628. for iNdEx < l {
  3629. preIndex := iNdEx
  3630. var wire uint64
  3631. for shift := uint(0); ; shift += 7 {
  3632. if shift >= 64 {
  3633. return ErrIntOverflowPayGoods
  3634. }
  3635. if iNdEx >= l {
  3636. return io.ErrUnexpectedEOF
  3637. }
  3638. b := dAtA[iNdEx]
  3639. iNdEx++
  3640. wire |= (uint64(b) & 0x7F) << shift
  3641. if b < 0x80 {
  3642. break
  3643. }
  3644. }
  3645. fieldNum := int32(wire >> 3)
  3646. wireType := int(wire & 0x7)
  3647. if wireType == 4 {
  3648. return fmt.Errorf("proto: PayGoodsCloseResp: wiretype end group for non-group")
  3649. }
  3650. if fieldNum <= 0 {
  3651. return fmt.Errorf("proto: PayGoodsCloseResp: illegal tag %d (wire type %d)", fieldNum, wire)
  3652. }
  3653. switch fieldNum {
  3654. case 1:
  3655. if wireType != 0 {
  3656. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  3657. }
  3658. m.Code = 0
  3659. for shift := uint(0); ; shift += 7 {
  3660. if shift >= 64 {
  3661. return ErrIntOverflowPayGoods
  3662. }
  3663. if iNdEx >= l {
  3664. return io.ErrUnexpectedEOF
  3665. }
  3666. b := dAtA[iNdEx]
  3667. iNdEx++
  3668. m.Code |= (int64(b) & 0x7F) << shift
  3669. if b < 0x80 {
  3670. break
  3671. }
  3672. }
  3673. case 2:
  3674. if wireType != 2 {
  3675. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  3676. }
  3677. var stringLen uint64
  3678. for shift := uint(0); ; shift += 7 {
  3679. if shift >= 64 {
  3680. return ErrIntOverflowPayGoods
  3681. }
  3682. if iNdEx >= l {
  3683. return io.ErrUnexpectedEOF
  3684. }
  3685. b := dAtA[iNdEx]
  3686. iNdEx++
  3687. stringLen |= (uint64(b) & 0x7F) << shift
  3688. if b < 0x80 {
  3689. break
  3690. }
  3691. }
  3692. intStringLen := int(stringLen)
  3693. if intStringLen < 0 {
  3694. return ErrInvalidLengthPayGoods
  3695. }
  3696. postIndex := iNdEx + intStringLen
  3697. if postIndex > l {
  3698. return io.ErrUnexpectedEOF
  3699. }
  3700. m.Msg = string(dAtA[iNdEx:postIndex])
  3701. iNdEx = postIndex
  3702. case 3:
  3703. if wireType != 2 {
  3704. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  3705. }
  3706. var msglen int
  3707. for shift := uint(0); ; shift += 7 {
  3708. if shift >= 64 {
  3709. return ErrIntOverflowPayGoods
  3710. }
  3711. if iNdEx >= l {
  3712. return io.ErrUnexpectedEOF
  3713. }
  3714. b := dAtA[iNdEx]
  3715. iNdEx++
  3716. msglen |= (int(b) & 0x7F) << shift
  3717. if b < 0x80 {
  3718. break
  3719. }
  3720. }
  3721. if msglen < 0 {
  3722. return ErrInvalidLengthPayGoods
  3723. }
  3724. postIndex := iNdEx + msglen
  3725. if postIndex > l {
  3726. return io.ErrUnexpectedEOF
  3727. }
  3728. if m.Data == nil {
  3729. m.Data = &PayGoodsCloseResp_Data{}
  3730. }
  3731. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3732. return err
  3733. }
  3734. iNdEx = postIndex
  3735. default:
  3736. iNdEx = preIndex
  3737. skippy, err := skipPayGoods(dAtA[iNdEx:])
  3738. if err != nil {
  3739. return err
  3740. }
  3741. if skippy < 0 {
  3742. return ErrInvalidLengthPayGoods
  3743. }
  3744. if (iNdEx + skippy) > l {
  3745. return io.ErrUnexpectedEOF
  3746. }
  3747. iNdEx += skippy
  3748. }
  3749. }
  3750. if iNdEx > l {
  3751. return io.ErrUnexpectedEOF
  3752. }
  3753. return nil
  3754. }
  3755. func (m *PayGoodsCloseResp_Data) Unmarshal(dAtA []byte) error {
  3756. l := len(dAtA)
  3757. iNdEx := 0
  3758. for iNdEx < l {
  3759. preIndex := iNdEx
  3760. var wire uint64
  3761. for shift := uint(0); ; shift += 7 {
  3762. if shift >= 64 {
  3763. return ErrIntOverflowPayGoods
  3764. }
  3765. if iNdEx >= l {
  3766. return io.ErrUnexpectedEOF
  3767. }
  3768. b := dAtA[iNdEx]
  3769. iNdEx++
  3770. wire |= (uint64(b) & 0x7F) << shift
  3771. if b < 0x80 {
  3772. break
  3773. }
  3774. }
  3775. fieldNum := int32(wire >> 3)
  3776. wireType := int(wire & 0x7)
  3777. if wireType == 4 {
  3778. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  3779. }
  3780. if fieldNum <= 0 {
  3781. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  3782. }
  3783. switch fieldNum {
  3784. default:
  3785. iNdEx = preIndex
  3786. skippy, err := skipPayGoods(dAtA[iNdEx:])
  3787. if err != nil {
  3788. return err
  3789. }
  3790. if skippy < 0 {
  3791. return ErrInvalidLengthPayGoods
  3792. }
  3793. if (iNdEx + skippy) > l {
  3794. return io.ErrUnexpectedEOF
  3795. }
  3796. iNdEx += skippy
  3797. }
  3798. }
  3799. if iNdEx > l {
  3800. return io.ErrUnexpectedEOF
  3801. }
  3802. return nil
  3803. }
  3804. func (m *PayGoodsOpenReq) Unmarshal(dAtA []byte) error {
  3805. l := len(dAtA)
  3806. iNdEx := 0
  3807. for iNdEx < l {
  3808. preIndex := iNdEx
  3809. var wire uint64
  3810. for shift := uint(0); ; shift += 7 {
  3811. if shift >= 64 {
  3812. return ErrIntOverflowPayGoods
  3813. }
  3814. if iNdEx >= l {
  3815. return io.ErrUnexpectedEOF
  3816. }
  3817. b := dAtA[iNdEx]
  3818. iNdEx++
  3819. wire |= (uint64(b) & 0x7F) << shift
  3820. if b < 0x80 {
  3821. break
  3822. }
  3823. }
  3824. fieldNum := int32(wire >> 3)
  3825. wireType := int(wire & 0x7)
  3826. if wireType == 4 {
  3827. return fmt.Errorf("proto: PayGoodsOpenReq: wiretype end group for non-group")
  3828. }
  3829. if fieldNum <= 0 {
  3830. return fmt.Errorf("proto: PayGoodsOpenReq: illegal tag %d (wire type %d)", fieldNum, wire)
  3831. }
  3832. switch fieldNum {
  3833. case 1:
  3834. if wireType != 0 {
  3835. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  3836. }
  3837. m.Id = 0
  3838. for shift := uint(0); ; shift += 7 {
  3839. if shift >= 64 {
  3840. return ErrIntOverflowPayGoods
  3841. }
  3842. if iNdEx >= l {
  3843. return io.ErrUnexpectedEOF
  3844. }
  3845. b := dAtA[iNdEx]
  3846. iNdEx++
  3847. m.Id |= (int64(b) & 0x7F) << shift
  3848. if b < 0x80 {
  3849. break
  3850. }
  3851. }
  3852. default:
  3853. iNdEx = preIndex
  3854. skippy, err := skipPayGoods(dAtA[iNdEx:])
  3855. if err != nil {
  3856. return err
  3857. }
  3858. if skippy < 0 {
  3859. return ErrInvalidLengthPayGoods
  3860. }
  3861. if (iNdEx + skippy) > l {
  3862. return io.ErrUnexpectedEOF
  3863. }
  3864. iNdEx += skippy
  3865. }
  3866. }
  3867. if iNdEx > l {
  3868. return io.ErrUnexpectedEOF
  3869. }
  3870. return nil
  3871. }
  3872. func (m *PayGoodsOpenResp) Unmarshal(dAtA []byte) error {
  3873. l := len(dAtA)
  3874. iNdEx := 0
  3875. for iNdEx < l {
  3876. preIndex := iNdEx
  3877. var wire uint64
  3878. for shift := uint(0); ; shift += 7 {
  3879. if shift >= 64 {
  3880. return ErrIntOverflowPayGoods
  3881. }
  3882. if iNdEx >= l {
  3883. return io.ErrUnexpectedEOF
  3884. }
  3885. b := dAtA[iNdEx]
  3886. iNdEx++
  3887. wire |= (uint64(b) & 0x7F) << shift
  3888. if b < 0x80 {
  3889. break
  3890. }
  3891. }
  3892. fieldNum := int32(wire >> 3)
  3893. wireType := int(wire & 0x7)
  3894. if wireType == 4 {
  3895. return fmt.Errorf("proto: PayGoodsOpenResp: wiretype end group for non-group")
  3896. }
  3897. if fieldNum <= 0 {
  3898. return fmt.Errorf("proto: PayGoodsOpenResp: illegal tag %d (wire type %d)", fieldNum, wire)
  3899. }
  3900. switch fieldNum {
  3901. case 1:
  3902. if wireType != 0 {
  3903. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  3904. }
  3905. m.Code = 0
  3906. for shift := uint(0); ; shift += 7 {
  3907. if shift >= 64 {
  3908. return ErrIntOverflowPayGoods
  3909. }
  3910. if iNdEx >= l {
  3911. return io.ErrUnexpectedEOF
  3912. }
  3913. b := dAtA[iNdEx]
  3914. iNdEx++
  3915. m.Code |= (int64(b) & 0x7F) << shift
  3916. if b < 0x80 {
  3917. break
  3918. }
  3919. }
  3920. case 2:
  3921. if wireType != 2 {
  3922. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  3923. }
  3924. var stringLen uint64
  3925. for shift := uint(0); ; shift += 7 {
  3926. if shift >= 64 {
  3927. return ErrIntOverflowPayGoods
  3928. }
  3929. if iNdEx >= l {
  3930. return io.ErrUnexpectedEOF
  3931. }
  3932. b := dAtA[iNdEx]
  3933. iNdEx++
  3934. stringLen |= (uint64(b) & 0x7F) << shift
  3935. if b < 0x80 {
  3936. break
  3937. }
  3938. }
  3939. intStringLen := int(stringLen)
  3940. if intStringLen < 0 {
  3941. return ErrInvalidLengthPayGoods
  3942. }
  3943. postIndex := iNdEx + intStringLen
  3944. if postIndex > l {
  3945. return io.ErrUnexpectedEOF
  3946. }
  3947. m.Msg = string(dAtA[iNdEx:postIndex])
  3948. iNdEx = postIndex
  3949. case 3:
  3950. if wireType != 2 {
  3951. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  3952. }
  3953. var msglen int
  3954. for shift := uint(0); ; shift += 7 {
  3955. if shift >= 64 {
  3956. return ErrIntOverflowPayGoods
  3957. }
  3958. if iNdEx >= l {
  3959. return io.ErrUnexpectedEOF
  3960. }
  3961. b := dAtA[iNdEx]
  3962. iNdEx++
  3963. msglen |= (int(b) & 0x7F) << shift
  3964. if b < 0x80 {
  3965. break
  3966. }
  3967. }
  3968. if msglen < 0 {
  3969. return ErrInvalidLengthPayGoods
  3970. }
  3971. postIndex := iNdEx + msglen
  3972. if postIndex > l {
  3973. return io.ErrUnexpectedEOF
  3974. }
  3975. if m.Data == nil {
  3976. m.Data = &PayGoodsOpenResp_Data{}
  3977. }
  3978. if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3979. return err
  3980. }
  3981. iNdEx = postIndex
  3982. default:
  3983. iNdEx = preIndex
  3984. skippy, err := skipPayGoods(dAtA[iNdEx:])
  3985. if err != nil {
  3986. return err
  3987. }
  3988. if skippy < 0 {
  3989. return ErrInvalidLengthPayGoods
  3990. }
  3991. if (iNdEx + skippy) > l {
  3992. return io.ErrUnexpectedEOF
  3993. }
  3994. iNdEx += skippy
  3995. }
  3996. }
  3997. if iNdEx > l {
  3998. return io.ErrUnexpectedEOF
  3999. }
  4000. return nil
  4001. }
  4002. func (m *PayGoodsOpenResp_Data) Unmarshal(dAtA []byte) error {
  4003. l := len(dAtA)
  4004. iNdEx := 0
  4005. for iNdEx < l {
  4006. preIndex := iNdEx
  4007. var wire uint64
  4008. for shift := uint(0); ; shift += 7 {
  4009. if shift >= 64 {
  4010. return ErrIntOverflowPayGoods
  4011. }
  4012. if iNdEx >= l {
  4013. return io.ErrUnexpectedEOF
  4014. }
  4015. b := dAtA[iNdEx]
  4016. iNdEx++
  4017. wire |= (uint64(b) & 0x7F) << shift
  4018. if b < 0x80 {
  4019. break
  4020. }
  4021. }
  4022. fieldNum := int32(wire >> 3)
  4023. wireType := int(wire & 0x7)
  4024. if wireType == 4 {
  4025. return fmt.Errorf("proto: Data: wiretype end group for non-group")
  4026. }
  4027. if fieldNum <= 0 {
  4028. return fmt.Errorf("proto: Data: illegal tag %d (wire type %d)", fieldNum, wire)
  4029. }
  4030. switch fieldNum {
  4031. default:
  4032. iNdEx = preIndex
  4033. skippy, err := skipPayGoods(dAtA[iNdEx:])
  4034. if err != nil {
  4035. return err
  4036. }
  4037. if skippy < 0 {
  4038. return ErrInvalidLengthPayGoods
  4039. }
  4040. if (iNdEx + skippy) > l {
  4041. return io.ErrUnexpectedEOF
  4042. }
  4043. iNdEx += skippy
  4044. }
  4045. }
  4046. if iNdEx > l {
  4047. return io.ErrUnexpectedEOF
  4048. }
  4049. return nil
  4050. }
  4051. func skipPayGoods(dAtA []byte) (n int, err error) {
  4052. l := len(dAtA)
  4053. iNdEx := 0
  4054. for iNdEx < l {
  4055. var wire uint64
  4056. for shift := uint(0); ; shift += 7 {
  4057. if shift >= 64 {
  4058. return 0, ErrIntOverflowPayGoods
  4059. }
  4060. if iNdEx >= l {
  4061. return 0, io.ErrUnexpectedEOF
  4062. }
  4063. b := dAtA[iNdEx]
  4064. iNdEx++
  4065. wire |= (uint64(b) & 0x7F) << shift
  4066. if b < 0x80 {
  4067. break
  4068. }
  4069. }
  4070. wireType := int(wire & 0x7)
  4071. switch wireType {
  4072. case 0:
  4073. for shift := uint(0); ; shift += 7 {
  4074. if shift >= 64 {
  4075. return 0, ErrIntOverflowPayGoods
  4076. }
  4077. if iNdEx >= l {
  4078. return 0, io.ErrUnexpectedEOF
  4079. }
  4080. iNdEx++
  4081. if dAtA[iNdEx-1] < 0x80 {
  4082. break
  4083. }
  4084. }
  4085. return iNdEx, nil
  4086. case 1:
  4087. iNdEx += 8
  4088. return iNdEx, nil
  4089. case 2:
  4090. var length int
  4091. for shift := uint(0); ; shift += 7 {
  4092. if shift >= 64 {
  4093. return 0, ErrIntOverflowPayGoods
  4094. }
  4095. if iNdEx >= l {
  4096. return 0, io.ErrUnexpectedEOF
  4097. }
  4098. b := dAtA[iNdEx]
  4099. iNdEx++
  4100. length |= (int(b) & 0x7F) << shift
  4101. if b < 0x80 {
  4102. break
  4103. }
  4104. }
  4105. iNdEx += length
  4106. if length < 0 {
  4107. return 0, ErrInvalidLengthPayGoods
  4108. }
  4109. return iNdEx, nil
  4110. case 3:
  4111. for {
  4112. var innerWire uint64
  4113. var start int = iNdEx
  4114. for shift := uint(0); ; shift += 7 {
  4115. if shift >= 64 {
  4116. return 0, ErrIntOverflowPayGoods
  4117. }
  4118. if iNdEx >= l {
  4119. return 0, io.ErrUnexpectedEOF
  4120. }
  4121. b := dAtA[iNdEx]
  4122. iNdEx++
  4123. innerWire |= (uint64(b) & 0x7F) << shift
  4124. if b < 0x80 {
  4125. break
  4126. }
  4127. }
  4128. innerWireType := int(innerWire & 0x7)
  4129. if innerWireType == 4 {
  4130. break
  4131. }
  4132. next, err := skipPayGoods(dAtA[start:])
  4133. if err != nil {
  4134. return 0, err
  4135. }
  4136. iNdEx = start + next
  4137. }
  4138. return iNdEx, nil
  4139. case 4:
  4140. return iNdEx, nil
  4141. case 5:
  4142. iNdEx += 4
  4143. return iNdEx, nil
  4144. default:
  4145. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4146. }
  4147. }
  4148. panic("unreachable")
  4149. }
  4150. var (
  4151. ErrInvalidLengthPayGoods = fmt.Errorf("proto: negative length found during unmarshaling")
  4152. ErrIntOverflowPayGoods = fmt.Errorf("proto: integer overflow")
  4153. )
  4154. func init() { proto.RegisterFile("v0/PayGoods.proto", fileDescriptor_PayGoods_35a38e54252e0017) }
  4155. var fileDescriptor_PayGoods_35a38e54252e0017 = []byte{
  4156. // 829 bytes of a gzipped FileDescriptorProto
  4157. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x96, 0xcf, 0x6f, 0xdb, 0x36,
  4158. 0x14, 0xc7, 0x23, 0xf9, 0xf7, 0xf3, 0x96, 0x2c, 0x1c, 0x96, 0x28, 0x5a, 0x66, 0x05, 0xde, 0x80,
  4159. 0x79, 0x01, 0xe2, 0x18, 0xde, 0x80, 0x61, 0xd9, 0x02, 0x6c, 0xc9, 0x80, 0x60, 0x40, 0xb0, 0x04,
  4160. 0xcc, 0x76, 0xe9, 0xc5, 0x50, 0x2c, 0x5a, 0x25, 0x60, 0xfd, 0xb0, 0x45, 0x1b, 0x48, 0xfe, 0x87,
  4161. 0xa2, 0x2d, 0x72, 0xec, 0xbf, 0xd0, 0x73, 0xfe, 0x86, 0x1e, 0x83, 0x9e, 0x7a, 0x12, 0x8a, 0xe4,
  4162. 0xa6, 0xbf, 0xa0, 0xc7, 0x82, 0x94, 0x64, 0xd9, 0xae, 0xad, 0xa4, 0xf0, 0xa5, 0xbd, 0xd0, 0xe4,
  4163. 0xd3, 0x7b, 0xe4, 0xe3, 0xf7, 0xf3, 0x48, 0x1a, 0x56, 0x87, 0x8d, 0xdd, 0x53, 0xfd, 0xe2, 0xc8,
  4164. 0x71, 0x0c, 0xaf, 0xee, 0xf6, 0x1d, 0xe6, 0xa0, 0x9c, 0x3e, 0xac, 0x0f, 0x1b, 0xea, 0x8e, 0x49,
  4165. 0xd9, 0xe3, 0xc1, 0x79, 0xbd, 0xed, 0x58, 0xbb, 0xa6, 0x63, 0x3a, 0xbb, 0xe2, 0xeb, 0xf9, 0xa0,
  4166. 0x23, 0x46, 0x62, 0x20, 0x7a, 0x61, 0x54, 0xf5, 0x85, 0x0c, 0xcb, 0xf1, 0x44, 0x7f, 0x19, 0x06,
  4167. 0x26, 0x3d, 0x54, 0x83, 0xa2, 0xdb, 0xd5, 0x59, 0xc7, 0xe9, 0x5b, 0x8a, 0xb4, 0x25, 0xd5, 0x4a,
  4168. 0x07, 0x5f, 0x04, 0xbe, 0x36, 0xb2, 0xe1, 0x51, 0x0f, 0x69, 0x90, 0x63, 0x94, 0x75, 0x89, 0x22,
  4169. 0x0b, 0xb7, 0x52, 0xe0, 0x6b, 0xa1, 0x01, 0x87, 0x3f, 0x68, 0x13, 0xb2, 0xec, 0xc2, 0x25, 0x4a,
  4170. 0x66, 0x4b, 0xaa, 0x65, 0x0e, 0x8a, 0x81, 0xaf, 0x89, 0x31, 0x16, 0x2d, 0x0f, 0x77, 0xfb, 0xb4,
  4171. 0x4d, 0x94, 0xac, 0xf8, 0x2c, 0xc2, 0x85, 0x01, 0x87, 0x3f, 0x68, 0x07, 0xc0, 0x63, 0x7a, 0x9f,
  4172. 0xb5, 0x18, 0xb5, 0x88, 0x92, 0x13, 0x8b, 0x2c, 0x07, 0xbe, 0x36, 0x66, 0xc5, 0x25, 0xd1, 0xff,
  4173. 0x8f, 0x5a, 0x04, 0xfd, 0x08, 0x45, 0x62, 0x1b, 0xa1, 0x73, 0x3e, 0x49, 0x3c, 0xb6, 0xe1, 0x02,
  4174. 0xb1, 0x8d, 0xd8, 0x91, 0xba, 0xad, 0x2e, 0xb5, 0x28, 0x53, 0x0a, 0x62, 0x6d, 0xe1, 0x18, 0xdb,
  4175. 0x70, 0x81, 0xba, 0xc7, 0xbc, 0x53, 0x7d, 0x22, 0xc1, 0xca, 0x84, 0x3a, 0x9e, 0xcb, 0xf7, 0xd4,
  4176. 0x76, 0x0c, 0x22, 0xa4, 0x89, 0xf6, 0xc4, 0xc7, 0x58, 0xb4, 0x68, 0x03, 0x32, 0x96, 0x67, 0x46,
  4177. 0x82, 0x14, 0x02, 0x5f, 0xe3, 0x43, 0xcc, 0x1b, 0xf4, 0x1b, 0x64, 0x0d, 0x9d, 0xe9, 0x42, 0x8c,
  4178. 0x72, 0xf3, 0xdb, 0xba, 0xe0, 0x55, 0x9f, 0x9a, 0xbe, 0xfe, 0xb7, 0xce, 0xf4, 0x70, 0x56, 0xee,
  4179. 0x8c, 0x45, 0xab, 0xe6, 0x21, 0xcb, 0xed, 0xd5, 0x6b, 0x19, 0x56, 0xe3, 0x80, 0xff, 0x5d, 0x43,
  4180. 0x67, 0x84, 0x03, 0x5b, 0x03, 0x99, 0x1a, 0x51, 0x3e, 0xf9, 0xc0, 0xd7, 0x64, 0x6a, 0x60, 0x99,
  4181. 0x1a, 0x13, 0x20, 0xe5, 0x87, 0x81, 0xcc, 0xdc, 0x03, 0x32, 0x9b, 0x0e, 0x32, 0xf7, 0x20, 0x90,
  4182. 0xf9, 0x8f, 0x01, 0x59, 0x78, 0x28, 0xc8, 0x62, 0x1a, 0xc8, 0x2b, 0x09, 0xd0, 0xb4, 0x70, 0x8b,
  4183. 0xb0, 0xfc, 0x63, 0x82, 0x65, 0x65, 0x8a, 0x65, 0xb2, 0x42, 0x3a, 0xce, 0x2b, 0x39, 0xc9, 0xea,
  4184. 0x88, 0xb0, 0x63, 0xea, 0xb1, 0x4f, 0x82, 0xe7, 0xb8, 0xac, 0xb9, 0x14, 0x59, 0xb9, 0xa3, 0xab,
  4185. 0x9b, 0xa4, 0x65, 0x0f, 0x2c, 0x41, 0x35, 0x72, 0x8c, 0x6d, 0xb8, 0xc0, 0x7b, 0xff, 0x0e, 0x2c,
  4186. 0xb4, 0x0d, 0x25, 0x61, 0xf4, 0xe8, 0x25, 0x89, 0x8e, 0xdc, 0x97, 0x81, 0xaf, 0x25, 0x46, 0x2c,
  4187. 0x82, 0xce, 0xe8, 0x25, 0xa9, 0xbe, 0xcb, 0xc1, 0xd7, 0x1f, 0xa8, 0xb2, 0x08, 0xac, 0xfd, 0x09,
  4188. 0x58, 0xda, 0x14, 0xac, 0xb1, 0x25, 0x66, 0xd3, 0x22, 0x50, 0x3c, 0xd5, 0x4d, 0xf2, 0x8f, 0xdd,
  4189. 0x71, 0x50, 0x03, 0xca, 0xcc, 0x61, 0x7a, 0xb7, 0xd5, 0x76, 0x06, 0x36, 0x8b, 0x52, 0x59, 0x09,
  4190. 0x7c, 0x6d, 0xdc, 0x8c, 0x41, 0x0c, 0x0e, 0x79, 0x7f, 0x42, 0x22, 0x39, 0x45, 0x22, 0xf5, 0xb5,
  4191. 0x0c, 0x25, 0x91, 0x90, 0x58, 0x68, 0x5e, 0x0d, 0xdc, 0x7b, 0xe5, 0x8e, 0x17, 0x49, 0x26, 0xb5,
  4192. 0x48, 0x3e, 0xf3, 0x33, 0x8d, 0xaa, 0x90, 0xf7, 0x98, 0xce, 0x06, 0x9e, 0x52, 0x12, 0x6e, 0x10,
  4193. 0xf8, 0x5a, 0x64, 0xc1, 0xd1, 0xaf, 0xfa, 0x52, 0x0a, 0x8f, 0x1a, 0x3a, 0x89, 0x0a, 0x90, 0xda,
  4194. 0x1d, 0x47, 0xc8, 0x5a, 0x6e, 0x7e, 0x9f, 0x52, 0x08, 0x31, 0xf0, 0xb1, 0x2a, 0xe5, 0x91, 0x61,
  4195. 0x95, 0x0a, 0x40, 0x67, 0x00, 0x26, 0x8f, 0x0a, 0x67, 0x94, 0xb7, 0x32, 0xb5, 0x72, 0xf3, 0x87,
  4196. 0x94, 0x19, 0x47, 0x68, 0x43, 0x91, 0x92, 0x58, 0x5c, 0x32, 0xe3, 0x4f, 0xd5, 0x6d, 0xf8, 0x2a,
  4197. 0x8e, 0x3d, 0xec, 0x3a, 0x5e, 0xda, 0xed, 0x5e, 0x7d, 0x2e, 0x25, 0x6f, 0x41, 0xe4, 0xbc, 0xc8,
  4198. 0x21, 0xf9, 0x7d, 0xe2, 0x90, 0x7c, 0x37, 0xb5, 0x93, 0xd1, 0x02, 0xe9, 0x17, 0xda, 0x4f, 0xc9,
  4199. 0x73, 0x79, 0xe2, 0x12, 0x3b, 0x2d, 0xfd, 0xa7, 0x52, 0xb2, 0xd7, 0xd0, 0x77, 0x91, 0xec, 0xf7,
  4200. 0x26, 0xb2, 0xdf, 0x9c, 0xca, 0x3e, 0x9e, 0x3f, 0x35, 0xf9, 0xe6, 0xb5, 0xcc, 0x0f, 0x7a, 0x18,
  4201. 0x81, 0x7e, 0x81, 0x8c, 0x6e, 0x18, 0xe8, 0x9b, 0x59, 0xaf, 0x74, 0x4f, 0x5d, 0x9b, 0xfd, 0x78,
  4202. 0xa3, 0x7d, 0xc8, 0x0f, 0xc4, 0xdd, 0x8f, 0x94, 0x39, 0x4f, 0x42, 0x4f, 0xdd, 0x98, 0xfb, 0x58,
  4203. 0xa0, 0x3f, 0xa1, 0x60, 0x86, 0x25, 0x83, 0x36, 0xe6, 0x95, 0x52, 0x4f, 0x55, 0xe7, 0x57, 0x19,
  4204. 0xda, 0x83, 0x5c, 0x9b, 0xa3, 0x42, 0xeb, 0xb3, 0x01, 0xf6, 0x54, 0x65, 0x1e, 0x59, 0xf4, 0x2b,
  4205. 0x64, 0x1d, 0x97, 0xd8, 0x68, 0x6d, 0xa6, 0x7a, 0x3d, 0x75, 0x7d, 0x8e, 0xaa, 0x07, 0x9b, 0xaf,
  4206. 0x6e, 0x2b, 0xd2, 0xcd, 0x6d, 0x45, 0x7a, 0x7b, 0x5b, 0x91, 0x9e, 0xdd, 0x55, 0x96, 0x6e, 0xee,
  4207. 0x2a, 0x4b, 0x6f, 0xee, 0x2a, 0x4b, 0x8f, 0xe4, 0x61, 0xe3, 0x3c, 0x2f, 0xfe, 0x68, 0xfe, 0xfc,
  4208. 0x3e, 0x00, 0x00, 0xff, 0xff, 0xa1, 0xf3, 0x44, 0x74, 0xb3, 0x0a, 0x00, 0x00,
  4209. }