promotion.pb.go 139 KB

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