api.pb.go 118 KB

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