api.pb.go 120 KB

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