api.pb.go 94 KB

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