api.pb.go 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/coupon/api/api.proto
  3. /*
  4. Package v1 is a generated protocol buffer package.
  5. use {app_id}.{version} as package name
  6. It is generated from these files:
  7. app/service/main/coupon/api/api.proto
  8. It has these top-level messages:
  9. CaptchaTokenReq
  10. CaptchaTokenReply
  11. UseCouponCodeReq
  12. UseCouponCodeResp
  13. UsableAllowanceCouponV2Req
  14. ModelPriceInfo
  15. UsableAllowanceCouponV2Reply
  16. ModelCouponAllowancePanelInfo
  17. */
  18. package v1
  19. import proto "github.com/gogo/protobuf/proto"
  20. import fmt "fmt"
  21. import math "math"
  22. import _ "github.com/gogo/protobuf/gogoproto"
  23. import context "golang.org/x/net/context"
  24. import grpc "google.golang.org/grpc"
  25. import binary "encoding/binary"
  26. import io "io"
  27. // Reference imports to suppress errors if they are not otherwise used.
  28. var _ = proto.Marshal
  29. var _ = fmt.Errorf
  30. var _ = math.Inf
  31. // This is a compile-time assertion to ensure that this generated file
  32. // is compatible with the proto package it is being compiled against.
  33. // A compilation error at this line likely means your copy of the
  34. // proto package needs to be updated.
  35. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  36. type CaptchaTokenReq struct {
  37. Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
  38. }
  39. func (m *CaptchaTokenReq) Reset() { *m = CaptchaTokenReq{} }
  40. func (m *CaptchaTokenReq) String() string { return proto.CompactTextString(m) }
  41. func (*CaptchaTokenReq) ProtoMessage() {}
  42. func (*CaptchaTokenReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  43. func (m *CaptchaTokenReq) GetIp() string {
  44. if m != nil {
  45. return m.Ip
  46. }
  47. return ""
  48. }
  49. type CaptchaTokenReply struct {
  50. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  51. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
  52. }
  53. func (m *CaptchaTokenReply) Reset() { *m = CaptchaTokenReply{} }
  54. func (m *CaptchaTokenReply) String() string { return proto.CompactTextString(m) }
  55. func (*CaptchaTokenReply) ProtoMessage() {}
  56. func (*CaptchaTokenReply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  57. func (m *CaptchaTokenReply) GetToken() string {
  58. if m != nil {
  59. return m.Token
  60. }
  61. return ""
  62. }
  63. func (m *CaptchaTokenReply) GetUrl() string {
  64. if m != nil {
  65. return m.Url
  66. }
  67. return ""
  68. }
  69. type UseCouponCodeReq struct {
  70. Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
  71. Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
  72. Verify string `protobuf:"bytes,3,opt,name=verify,proto3" json:"verify,omitempty"`
  73. Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
  74. Mid int64 `protobuf:"varint,5,opt,name=mid,proto3" json:"mid,omitempty"`
  75. }
  76. func (m *UseCouponCodeReq) Reset() { *m = UseCouponCodeReq{} }
  77. func (m *UseCouponCodeReq) String() string { return proto.CompactTextString(m) }
  78. func (*UseCouponCodeReq) ProtoMessage() {}
  79. func (*UseCouponCodeReq) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} }
  80. func (m *UseCouponCodeReq) GetToken() string {
  81. if m != nil {
  82. return m.Token
  83. }
  84. return ""
  85. }
  86. func (m *UseCouponCodeReq) GetCode() string {
  87. if m != nil {
  88. return m.Code
  89. }
  90. return ""
  91. }
  92. func (m *UseCouponCodeReq) GetVerify() string {
  93. if m != nil {
  94. return m.Verify
  95. }
  96. return ""
  97. }
  98. func (m *UseCouponCodeReq) GetIp() string {
  99. if m != nil {
  100. return m.Ip
  101. }
  102. return ""
  103. }
  104. func (m *UseCouponCodeReq) GetMid() int64 {
  105. if m != nil {
  106. return m.Mid
  107. }
  108. return 0
  109. }
  110. type UseCouponCodeResp struct {
  111. CouponToken string `protobuf:"bytes,1,opt,name=coupon_token,json=couponToken,proto3" json:"coupon_token,omitempty"`
  112. CouponAmount float64 `protobuf:"fixed64,2,opt,name=coupon_amount,json=couponAmount,proto3" json:"coupon_amount,omitempty"`
  113. FullAmount float64 `protobuf:"fixed64,3,opt,name=full_amount,json=fullAmount,proto3" json:"full_amount,omitempty"`
  114. PlatfromLimitExplain string `protobuf:"bytes,4,opt,name=platfrom_limit_explain,json=platfromLimitExplain,proto3" json:"platfrom_limit_explain,omitempty"`
  115. ProductLimitMonth int32 `protobuf:"varint,5,opt,name=product_limit_month,json=productLimitMonth,proto3" json:"product_limit_month,omitempty"`
  116. ProductLimitRenewal int32 `protobuf:"varint,6,opt,name=product_limit_renewal,json=productLimitRenewal,proto3" json:"product_limit_renewal,omitempty"`
  117. }
  118. func (m *UseCouponCodeResp) Reset() { *m = UseCouponCodeResp{} }
  119. func (m *UseCouponCodeResp) String() string { return proto.CompactTextString(m) }
  120. func (*UseCouponCodeResp) ProtoMessage() {}
  121. func (*UseCouponCodeResp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} }
  122. func (m *UseCouponCodeResp) GetCouponToken() string {
  123. if m != nil {
  124. return m.CouponToken
  125. }
  126. return ""
  127. }
  128. func (m *UseCouponCodeResp) GetCouponAmount() float64 {
  129. if m != nil {
  130. return m.CouponAmount
  131. }
  132. return 0
  133. }
  134. func (m *UseCouponCodeResp) GetFullAmount() float64 {
  135. if m != nil {
  136. return m.FullAmount
  137. }
  138. return 0
  139. }
  140. func (m *UseCouponCodeResp) GetPlatfromLimitExplain() string {
  141. if m != nil {
  142. return m.PlatfromLimitExplain
  143. }
  144. return ""
  145. }
  146. func (m *UseCouponCodeResp) GetProductLimitMonth() int32 {
  147. if m != nil {
  148. return m.ProductLimitMonth
  149. }
  150. return 0
  151. }
  152. func (m *UseCouponCodeResp) GetProductLimitRenewal() int32 {
  153. if m != nil {
  154. return m.ProductLimitRenewal
  155. }
  156. return 0
  157. }
  158. type UsableAllowanceCouponV2Req struct {
  159. Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
  160. PriceInfo []*ModelPriceInfo `protobuf:"bytes,2,rep,name=priceInfo" json:"priceInfo,omitempty"`
  161. }
  162. func (m *UsableAllowanceCouponV2Req) Reset() { *m = UsableAllowanceCouponV2Req{} }
  163. func (m *UsableAllowanceCouponV2Req) String() string { return proto.CompactTextString(m) }
  164. func (*UsableAllowanceCouponV2Req) ProtoMessage() {}
  165. func (*UsableAllowanceCouponV2Req) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} }
  166. func (m *UsableAllowanceCouponV2Req) GetMid() int64 {
  167. if m != nil {
  168. return m.Mid
  169. }
  170. return 0
  171. }
  172. func (m *UsableAllowanceCouponV2Req) GetPriceInfo() []*ModelPriceInfo {
  173. if m != nil {
  174. return m.PriceInfo
  175. }
  176. return nil
  177. }
  178. type ModelPriceInfo struct {
  179. Price float64 `protobuf:"fixed64,1,opt,name=price,proto3" json:"price,omitempty"`
  180. Plat int64 `protobuf:"varint,2,opt,name=plat,proto3" json:"plat,omitempty"`
  181. ProdLimMonth int32 `protobuf:"varint,3,opt,name=prodLimMonth,proto3" json:"prodLimMonth,omitempty"`
  182. ProdLimRenewal int32 `protobuf:"varint,4,opt,name=prodLimRenewal,proto3" json:"prodLimRenewal,omitempty"`
  183. }
  184. func (m *ModelPriceInfo) Reset() { *m = ModelPriceInfo{} }
  185. func (m *ModelPriceInfo) String() string { return proto.CompactTextString(m) }
  186. func (*ModelPriceInfo) ProtoMessage() {}
  187. func (*ModelPriceInfo) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{5} }
  188. func (m *ModelPriceInfo) GetPrice() float64 {
  189. if m != nil {
  190. return m.Price
  191. }
  192. return 0
  193. }
  194. func (m *ModelPriceInfo) GetPlat() int64 {
  195. if m != nil {
  196. return m.Plat
  197. }
  198. return 0
  199. }
  200. func (m *ModelPriceInfo) GetProdLimMonth() int32 {
  201. if m != nil {
  202. return m.ProdLimMonth
  203. }
  204. return 0
  205. }
  206. func (m *ModelPriceInfo) GetProdLimRenewal() int32 {
  207. if m != nil {
  208. return m.ProdLimRenewal
  209. }
  210. return 0
  211. }
  212. type UsableAllowanceCouponV2Reply struct {
  213. CouponTip string `protobuf:"bytes,1,opt,name=coupon_tip,json=couponTip,proto3" json:"coupon_tip,omitempty"`
  214. CouponInfo *ModelCouponAllowancePanelInfo `protobuf:"bytes,2,opt,name=coupon_info,json=couponInfo" json:"coupon_info,omitempty"`
  215. }
  216. func (m *UsableAllowanceCouponV2Reply) Reset() { *m = UsableAllowanceCouponV2Reply{} }
  217. func (m *UsableAllowanceCouponV2Reply) String() string { return proto.CompactTextString(m) }
  218. func (*UsableAllowanceCouponV2Reply) ProtoMessage() {}
  219. func (*UsableAllowanceCouponV2Reply) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{6} }
  220. func (m *UsableAllowanceCouponV2Reply) GetCouponTip() string {
  221. if m != nil {
  222. return m.CouponTip
  223. }
  224. return ""
  225. }
  226. func (m *UsableAllowanceCouponV2Reply) GetCouponInfo() *ModelCouponAllowancePanelInfo {
  227. if m != nil {
  228. return m.CouponInfo
  229. }
  230. return nil
  231. }
  232. type ModelCouponAllowancePanelInfo struct {
  233. CouponToken string `protobuf:"bytes,1,opt,name=coupon_token,json=couponToken,proto3" json:"coupon_token,omitempty"`
  234. CouponAmount float64 `protobuf:"fixed64,2,opt,name=coupon_amount,json=couponAmount,proto3" json:"coupon_amount,omitempty"`
  235. State int32 `protobuf:"varint,3,opt,name=state,proto3" json:"state,omitempty"`
  236. FullLimitExplain string `protobuf:"bytes,4,opt,name=full_limit_explain,json=fullLimitExplain,proto3" json:"full_limit_explain,omitempty"`
  237. ScopeExplain string `protobuf:"bytes,5,opt,name=scope_explain,json=scopeExplain,proto3" json:"scope_explain,omitempty"`
  238. FullAmount float64 `protobuf:"fixed64,6,opt,name=full_amount,json=fullAmount,proto3" json:"full_amount,omitempty"`
  239. CouponDiscountPrice float64 `protobuf:"fixed64,7,opt,name=coupon_discount_price,json=couponDiscountPrice,proto3" json:"coupon_discount_price,omitempty"`
  240. StartTime int64 `protobuf:"varint,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  241. ExpireTime int64 `protobuf:"varint,9,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
  242. Selected int32 `protobuf:"varint,10,opt,name=selected,proto3" json:"selected,omitempty"`
  243. DisablesExplains string `protobuf:"bytes,11,opt,name=disables_explains,json=disablesExplains,proto3" json:"disables_explains,omitempty"`
  244. OrderNo string `protobuf:"bytes,12,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
  245. Name string `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"`
  246. Usable int32 `protobuf:"varint,14,opt,name=usable,proto3" json:"usable,omitempty"`
  247. }
  248. func (m *ModelCouponAllowancePanelInfo) Reset() { *m = ModelCouponAllowancePanelInfo{} }
  249. func (m *ModelCouponAllowancePanelInfo) String() string { return proto.CompactTextString(m) }
  250. func (*ModelCouponAllowancePanelInfo) ProtoMessage() {}
  251. func (*ModelCouponAllowancePanelInfo) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{7} }
  252. func (m *ModelCouponAllowancePanelInfo) GetCouponToken() string {
  253. if m != nil {
  254. return m.CouponToken
  255. }
  256. return ""
  257. }
  258. func (m *ModelCouponAllowancePanelInfo) GetCouponAmount() float64 {
  259. if m != nil {
  260. return m.CouponAmount
  261. }
  262. return 0
  263. }
  264. func (m *ModelCouponAllowancePanelInfo) GetState() int32 {
  265. if m != nil {
  266. return m.State
  267. }
  268. return 0
  269. }
  270. func (m *ModelCouponAllowancePanelInfo) GetFullLimitExplain() string {
  271. if m != nil {
  272. return m.FullLimitExplain
  273. }
  274. return ""
  275. }
  276. func (m *ModelCouponAllowancePanelInfo) GetScopeExplain() string {
  277. if m != nil {
  278. return m.ScopeExplain
  279. }
  280. return ""
  281. }
  282. func (m *ModelCouponAllowancePanelInfo) GetFullAmount() float64 {
  283. if m != nil {
  284. return m.FullAmount
  285. }
  286. return 0
  287. }
  288. func (m *ModelCouponAllowancePanelInfo) GetCouponDiscountPrice() float64 {
  289. if m != nil {
  290. return m.CouponDiscountPrice
  291. }
  292. return 0
  293. }
  294. func (m *ModelCouponAllowancePanelInfo) GetStartTime() int64 {
  295. if m != nil {
  296. return m.StartTime
  297. }
  298. return 0
  299. }
  300. func (m *ModelCouponAllowancePanelInfo) GetExpireTime() int64 {
  301. if m != nil {
  302. return m.ExpireTime
  303. }
  304. return 0
  305. }
  306. func (m *ModelCouponAllowancePanelInfo) GetSelected() int32 {
  307. if m != nil {
  308. return m.Selected
  309. }
  310. return 0
  311. }
  312. func (m *ModelCouponAllowancePanelInfo) GetDisablesExplains() string {
  313. if m != nil {
  314. return m.DisablesExplains
  315. }
  316. return ""
  317. }
  318. func (m *ModelCouponAllowancePanelInfo) GetOrderNo() string {
  319. if m != nil {
  320. return m.OrderNo
  321. }
  322. return ""
  323. }
  324. func (m *ModelCouponAllowancePanelInfo) GetName() string {
  325. if m != nil {
  326. return m.Name
  327. }
  328. return ""
  329. }
  330. func (m *ModelCouponAllowancePanelInfo) GetUsable() int32 {
  331. if m != nil {
  332. return m.Usable
  333. }
  334. return 0
  335. }
  336. func init() {
  337. proto.RegisterType((*CaptchaTokenReq)(nil), "account.coupon.CaptchaTokenReq")
  338. proto.RegisterType((*CaptchaTokenReply)(nil), "account.coupon.CaptchaTokenReply")
  339. proto.RegisterType((*UseCouponCodeReq)(nil), "account.coupon.UseCouponCodeReq")
  340. proto.RegisterType((*UseCouponCodeResp)(nil), "account.coupon.UseCouponCodeResp")
  341. proto.RegisterType((*UsableAllowanceCouponV2Req)(nil), "account.coupon.UsableAllowanceCouponV2Req")
  342. proto.RegisterType((*ModelPriceInfo)(nil), "account.coupon.ModelPriceInfo")
  343. proto.RegisterType((*UsableAllowanceCouponV2Reply)(nil), "account.coupon.UsableAllowanceCouponV2Reply")
  344. proto.RegisterType((*ModelCouponAllowancePanelInfo)(nil), "account.coupon.ModelCouponAllowancePanelInfo")
  345. }
  346. // Reference imports to suppress errors if they are not otherwise used.
  347. var _ context.Context
  348. var _ grpc.ClientConn
  349. // This is a compile-time assertion to ensure that this generated file
  350. // is compatible with the grpc package it is being compiled against.
  351. const _ = grpc.SupportPackageIsVersion4
  352. // Client API for Coupon service
  353. type CouponClient interface {
  354. // CaptchaToken captcha token.
  355. CaptchaToken(ctx context.Context, in *CaptchaTokenReq, opts ...grpc.CallOption) (*CaptchaTokenReply, error)
  356. // UseCouponCode use coupon code.
  357. UseCouponCode(ctx context.Context, in *UseCouponCodeReq, opts ...grpc.CallOption) (*UseCouponCodeResp, error)
  358. // UsableAllowanceCouponV2 use allowance coupon v2.
  359. UsableAllowanceCouponV2(ctx context.Context, in *UsableAllowanceCouponV2Req, opts ...grpc.CallOption) (*UsableAllowanceCouponV2Reply, error)
  360. }
  361. type couponClient struct {
  362. cc *grpc.ClientConn
  363. }
  364. func NewCouponClient(cc *grpc.ClientConn) CouponClient {
  365. return &couponClient{cc}
  366. }
  367. func (c *couponClient) CaptchaToken(ctx context.Context, in *CaptchaTokenReq, opts ...grpc.CallOption) (*CaptchaTokenReply, error) {
  368. out := new(CaptchaTokenReply)
  369. err := grpc.Invoke(ctx, "/account.coupon.Coupon/CaptchaToken", in, out, c.cc, opts...)
  370. if err != nil {
  371. return nil, err
  372. }
  373. return out, nil
  374. }
  375. func (c *couponClient) UseCouponCode(ctx context.Context, in *UseCouponCodeReq, opts ...grpc.CallOption) (*UseCouponCodeResp, error) {
  376. out := new(UseCouponCodeResp)
  377. err := grpc.Invoke(ctx, "/account.coupon.Coupon/UseCouponCode", in, out, c.cc, opts...)
  378. if err != nil {
  379. return nil, err
  380. }
  381. return out, nil
  382. }
  383. func (c *couponClient) UsableAllowanceCouponV2(ctx context.Context, in *UsableAllowanceCouponV2Req, opts ...grpc.CallOption) (*UsableAllowanceCouponV2Reply, error) {
  384. out := new(UsableAllowanceCouponV2Reply)
  385. err := grpc.Invoke(ctx, "/account.coupon.Coupon/UsableAllowanceCouponV2", in, out, c.cc, opts...)
  386. if err != nil {
  387. return nil, err
  388. }
  389. return out, nil
  390. }
  391. // Server API for Coupon service
  392. type CouponServer interface {
  393. // CaptchaToken captcha token.
  394. CaptchaToken(context.Context, *CaptchaTokenReq) (*CaptchaTokenReply, error)
  395. // UseCouponCode use coupon code.
  396. UseCouponCode(context.Context, *UseCouponCodeReq) (*UseCouponCodeResp, error)
  397. // UsableAllowanceCouponV2 use allowance coupon v2.
  398. UsableAllowanceCouponV2(context.Context, *UsableAllowanceCouponV2Req) (*UsableAllowanceCouponV2Reply, error)
  399. }
  400. func RegisterCouponServer(s *grpc.Server, srv CouponServer) {
  401. s.RegisterService(&_Coupon_serviceDesc, srv)
  402. }
  403. func _Coupon_CaptchaToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  404. in := new(CaptchaTokenReq)
  405. if err := dec(in); err != nil {
  406. return nil, err
  407. }
  408. if interceptor == nil {
  409. return srv.(CouponServer).CaptchaToken(ctx, in)
  410. }
  411. info := &grpc.UnaryServerInfo{
  412. Server: srv,
  413. FullMethod: "/account.coupon.Coupon/CaptchaToken",
  414. }
  415. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  416. return srv.(CouponServer).CaptchaToken(ctx, req.(*CaptchaTokenReq))
  417. }
  418. return interceptor(ctx, in, info, handler)
  419. }
  420. func _Coupon_UseCouponCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  421. in := new(UseCouponCodeReq)
  422. if err := dec(in); err != nil {
  423. return nil, err
  424. }
  425. if interceptor == nil {
  426. return srv.(CouponServer).UseCouponCode(ctx, in)
  427. }
  428. info := &grpc.UnaryServerInfo{
  429. Server: srv,
  430. FullMethod: "/account.coupon.Coupon/UseCouponCode",
  431. }
  432. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  433. return srv.(CouponServer).UseCouponCode(ctx, req.(*UseCouponCodeReq))
  434. }
  435. return interceptor(ctx, in, info, handler)
  436. }
  437. func _Coupon_UsableAllowanceCouponV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  438. in := new(UsableAllowanceCouponV2Req)
  439. if err := dec(in); err != nil {
  440. return nil, err
  441. }
  442. if interceptor == nil {
  443. return srv.(CouponServer).UsableAllowanceCouponV2(ctx, in)
  444. }
  445. info := &grpc.UnaryServerInfo{
  446. Server: srv,
  447. FullMethod: "/account.coupon.Coupon/UsableAllowanceCouponV2",
  448. }
  449. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  450. return srv.(CouponServer).UsableAllowanceCouponV2(ctx, req.(*UsableAllowanceCouponV2Req))
  451. }
  452. return interceptor(ctx, in, info, handler)
  453. }
  454. var _Coupon_serviceDesc = grpc.ServiceDesc{
  455. ServiceName: "account.coupon.Coupon",
  456. HandlerType: (*CouponServer)(nil),
  457. Methods: []grpc.MethodDesc{
  458. {
  459. MethodName: "CaptchaToken",
  460. Handler: _Coupon_CaptchaToken_Handler,
  461. },
  462. {
  463. MethodName: "UseCouponCode",
  464. Handler: _Coupon_UseCouponCode_Handler,
  465. },
  466. {
  467. MethodName: "UsableAllowanceCouponV2",
  468. Handler: _Coupon_UsableAllowanceCouponV2_Handler,
  469. },
  470. },
  471. Streams: []grpc.StreamDesc{},
  472. Metadata: "app/service/main/coupon/api/api.proto",
  473. }
  474. func (m *CaptchaTokenReq) Marshal() (dAtA []byte, err error) {
  475. size := m.Size()
  476. dAtA = make([]byte, size)
  477. n, err := m.MarshalTo(dAtA)
  478. if err != nil {
  479. return nil, err
  480. }
  481. return dAtA[:n], nil
  482. }
  483. func (m *CaptchaTokenReq) MarshalTo(dAtA []byte) (int, error) {
  484. var i int
  485. _ = i
  486. var l int
  487. _ = l
  488. if len(m.Ip) > 0 {
  489. dAtA[i] = 0xa
  490. i++
  491. i = encodeVarintApi(dAtA, i, uint64(len(m.Ip)))
  492. i += copy(dAtA[i:], m.Ip)
  493. }
  494. return i, nil
  495. }
  496. func (m *CaptchaTokenReply) Marshal() (dAtA []byte, err error) {
  497. size := m.Size()
  498. dAtA = make([]byte, size)
  499. n, err := m.MarshalTo(dAtA)
  500. if err != nil {
  501. return nil, err
  502. }
  503. return dAtA[:n], nil
  504. }
  505. func (m *CaptchaTokenReply) MarshalTo(dAtA []byte) (int, error) {
  506. var i int
  507. _ = i
  508. var l int
  509. _ = l
  510. if len(m.Token) > 0 {
  511. dAtA[i] = 0xa
  512. i++
  513. i = encodeVarintApi(dAtA, i, uint64(len(m.Token)))
  514. i += copy(dAtA[i:], m.Token)
  515. }
  516. if len(m.Url) > 0 {
  517. dAtA[i] = 0x12
  518. i++
  519. i = encodeVarintApi(dAtA, i, uint64(len(m.Url)))
  520. i += copy(dAtA[i:], m.Url)
  521. }
  522. return i, nil
  523. }
  524. func (m *UseCouponCodeReq) Marshal() (dAtA []byte, err error) {
  525. size := m.Size()
  526. dAtA = make([]byte, size)
  527. n, err := m.MarshalTo(dAtA)
  528. if err != nil {
  529. return nil, err
  530. }
  531. return dAtA[:n], nil
  532. }
  533. func (m *UseCouponCodeReq) MarshalTo(dAtA []byte) (int, error) {
  534. var i int
  535. _ = i
  536. var l int
  537. _ = l
  538. if len(m.Token) > 0 {
  539. dAtA[i] = 0xa
  540. i++
  541. i = encodeVarintApi(dAtA, i, uint64(len(m.Token)))
  542. i += copy(dAtA[i:], m.Token)
  543. }
  544. if len(m.Code) > 0 {
  545. dAtA[i] = 0x12
  546. i++
  547. i = encodeVarintApi(dAtA, i, uint64(len(m.Code)))
  548. i += copy(dAtA[i:], m.Code)
  549. }
  550. if len(m.Verify) > 0 {
  551. dAtA[i] = 0x1a
  552. i++
  553. i = encodeVarintApi(dAtA, i, uint64(len(m.Verify)))
  554. i += copy(dAtA[i:], m.Verify)
  555. }
  556. if len(m.Ip) > 0 {
  557. dAtA[i] = 0x22
  558. i++
  559. i = encodeVarintApi(dAtA, i, uint64(len(m.Ip)))
  560. i += copy(dAtA[i:], m.Ip)
  561. }
  562. if m.Mid != 0 {
  563. dAtA[i] = 0x28
  564. i++
  565. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  566. }
  567. return i, nil
  568. }
  569. func (m *UseCouponCodeResp) Marshal() (dAtA []byte, err error) {
  570. size := m.Size()
  571. dAtA = make([]byte, size)
  572. n, err := m.MarshalTo(dAtA)
  573. if err != nil {
  574. return nil, err
  575. }
  576. return dAtA[:n], nil
  577. }
  578. func (m *UseCouponCodeResp) MarshalTo(dAtA []byte) (int, error) {
  579. var i int
  580. _ = i
  581. var l int
  582. _ = l
  583. if len(m.CouponToken) > 0 {
  584. dAtA[i] = 0xa
  585. i++
  586. i = encodeVarintApi(dAtA, i, uint64(len(m.CouponToken)))
  587. i += copy(dAtA[i:], m.CouponToken)
  588. }
  589. if m.CouponAmount != 0 {
  590. dAtA[i] = 0x11
  591. i++
  592. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CouponAmount))))
  593. i += 8
  594. }
  595. if m.FullAmount != 0 {
  596. dAtA[i] = 0x19
  597. i++
  598. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.FullAmount))))
  599. i += 8
  600. }
  601. if len(m.PlatfromLimitExplain) > 0 {
  602. dAtA[i] = 0x22
  603. i++
  604. i = encodeVarintApi(dAtA, i, uint64(len(m.PlatfromLimitExplain)))
  605. i += copy(dAtA[i:], m.PlatfromLimitExplain)
  606. }
  607. if m.ProductLimitMonth != 0 {
  608. dAtA[i] = 0x28
  609. i++
  610. i = encodeVarintApi(dAtA, i, uint64(m.ProductLimitMonth))
  611. }
  612. if m.ProductLimitRenewal != 0 {
  613. dAtA[i] = 0x30
  614. i++
  615. i = encodeVarintApi(dAtA, i, uint64(m.ProductLimitRenewal))
  616. }
  617. return i, nil
  618. }
  619. func (m *UsableAllowanceCouponV2Req) Marshal() (dAtA []byte, err error) {
  620. size := m.Size()
  621. dAtA = make([]byte, size)
  622. n, err := m.MarshalTo(dAtA)
  623. if err != nil {
  624. return nil, err
  625. }
  626. return dAtA[:n], nil
  627. }
  628. func (m *UsableAllowanceCouponV2Req) MarshalTo(dAtA []byte) (int, error) {
  629. var i int
  630. _ = i
  631. var l int
  632. _ = l
  633. if m.Mid != 0 {
  634. dAtA[i] = 0x8
  635. i++
  636. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  637. }
  638. if len(m.PriceInfo) > 0 {
  639. for _, msg := range m.PriceInfo {
  640. dAtA[i] = 0x12
  641. i++
  642. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  643. n, err := msg.MarshalTo(dAtA[i:])
  644. if err != nil {
  645. return 0, err
  646. }
  647. i += n
  648. }
  649. }
  650. return i, nil
  651. }
  652. func (m *ModelPriceInfo) Marshal() (dAtA []byte, err error) {
  653. size := m.Size()
  654. dAtA = make([]byte, size)
  655. n, err := m.MarshalTo(dAtA)
  656. if err != nil {
  657. return nil, err
  658. }
  659. return dAtA[:n], nil
  660. }
  661. func (m *ModelPriceInfo) MarshalTo(dAtA []byte) (int, error) {
  662. var i int
  663. _ = i
  664. var l int
  665. _ = l
  666. if m.Price != 0 {
  667. dAtA[i] = 0x9
  668. i++
  669. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Price))))
  670. i += 8
  671. }
  672. if m.Plat != 0 {
  673. dAtA[i] = 0x10
  674. i++
  675. i = encodeVarintApi(dAtA, i, uint64(m.Plat))
  676. }
  677. if m.ProdLimMonth != 0 {
  678. dAtA[i] = 0x18
  679. i++
  680. i = encodeVarintApi(dAtA, i, uint64(m.ProdLimMonth))
  681. }
  682. if m.ProdLimRenewal != 0 {
  683. dAtA[i] = 0x20
  684. i++
  685. i = encodeVarintApi(dAtA, i, uint64(m.ProdLimRenewal))
  686. }
  687. return i, nil
  688. }
  689. func (m *UsableAllowanceCouponV2Reply) Marshal() (dAtA []byte, err error) {
  690. size := m.Size()
  691. dAtA = make([]byte, size)
  692. n, err := m.MarshalTo(dAtA)
  693. if err != nil {
  694. return nil, err
  695. }
  696. return dAtA[:n], nil
  697. }
  698. func (m *UsableAllowanceCouponV2Reply) MarshalTo(dAtA []byte) (int, error) {
  699. var i int
  700. _ = i
  701. var l int
  702. _ = l
  703. if len(m.CouponTip) > 0 {
  704. dAtA[i] = 0xa
  705. i++
  706. i = encodeVarintApi(dAtA, i, uint64(len(m.CouponTip)))
  707. i += copy(dAtA[i:], m.CouponTip)
  708. }
  709. if m.CouponInfo != nil {
  710. dAtA[i] = 0x12
  711. i++
  712. i = encodeVarintApi(dAtA, i, uint64(m.CouponInfo.Size()))
  713. n1, err := m.CouponInfo.MarshalTo(dAtA[i:])
  714. if err != nil {
  715. return 0, err
  716. }
  717. i += n1
  718. }
  719. return i, nil
  720. }
  721. func (m *ModelCouponAllowancePanelInfo) Marshal() (dAtA []byte, err error) {
  722. size := m.Size()
  723. dAtA = make([]byte, size)
  724. n, err := m.MarshalTo(dAtA)
  725. if err != nil {
  726. return nil, err
  727. }
  728. return dAtA[:n], nil
  729. }
  730. func (m *ModelCouponAllowancePanelInfo) MarshalTo(dAtA []byte) (int, error) {
  731. var i int
  732. _ = i
  733. var l int
  734. _ = l
  735. if len(m.CouponToken) > 0 {
  736. dAtA[i] = 0xa
  737. i++
  738. i = encodeVarintApi(dAtA, i, uint64(len(m.CouponToken)))
  739. i += copy(dAtA[i:], m.CouponToken)
  740. }
  741. if m.CouponAmount != 0 {
  742. dAtA[i] = 0x11
  743. i++
  744. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CouponAmount))))
  745. i += 8
  746. }
  747. if m.State != 0 {
  748. dAtA[i] = 0x18
  749. i++
  750. i = encodeVarintApi(dAtA, i, uint64(m.State))
  751. }
  752. if len(m.FullLimitExplain) > 0 {
  753. dAtA[i] = 0x22
  754. i++
  755. i = encodeVarintApi(dAtA, i, uint64(len(m.FullLimitExplain)))
  756. i += copy(dAtA[i:], m.FullLimitExplain)
  757. }
  758. if len(m.ScopeExplain) > 0 {
  759. dAtA[i] = 0x2a
  760. i++
  761. i = encodeVarintApi(dAtA, i, uint64(len(m.ScopeExplain)))
  762. i += copy(dAtA[i:], m.ScopeExplain)
  763. }
  764. if m.FullAmount != 0 {
  765. dAtA[i] = 0x31
  766. i++
  767. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.FullAmount))))
  768. i += 8
  769. }
  770. if m.CouponDiscountPrice != 0 {
  771. dAtA[i] = 0x39
  772. i++
  773. binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CouponDiscountPrice))))
  774. i += 8
  775. }
  776. if m.StartTime != 0 {
  777. dAtA[i] = 0x40
  778. i++
  779. i = encodeVarintApi(dAtA, i, uint64(m.StartTime))
  780. }
  781. if m.ExpireTime != 0 {
  782. dAtA[i] = 0x48
  783. i++
  784. i = encodeVarintApi(dAtA, i, uint64(m.ExpireTime))
  785. }
  786. if m.Selected != 0 {
  787. dAtA[i] = 0x50
  788. i++
  789. i = encodeVarintApi(dAtA, i, uint64(m.Selected))
  790. }
  791. if len(m.DisablesExplains) > 0 {
  792. dAtA[i] = 0x5a
  793. i++
  794. i = encodeVarintApi(dAtA, i, uint64(len(m.DisablesExplains)))
  795. i += copy(dAtA[i:], m.DisablesExplains)
  796. }
  797. if len(m.OrderNo) > 0 {
  798. dAtA[i] = 0x62
  799. i++
  800. i = encodeVarintApi(dAtA, i, uint64(len(m.OrderNo)))
  801. i += copy(dAtA[i:], m.OrderNo)
  802. }
  803. if len(m.Name) > 0 {
  804. dAtA[i] = 0x6a
  805. i++
  806. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  807. i += copy(dAtA[i:], m.Name)
  808. }
  809. if m.Usable != 0 {
  810. dAtA[i] = 0x70
  811. i++
  812. i = encodeVarintApi(dAtA, i, uint64(m.Usable))
  813. }
  814. return i, nil
  815. }
  816. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  817. for v >= 1<<7 {
  818. dAtA[offset] = uint8(v&0x7f | 0x80)
  819. v >>= 7
  820. offset++
  821. }
  822. dAtA[offset] = uint8(v)
  823. return offset + 1
  824. }
  825. func (m *CaptchaTokenReq) Size() (n int) {
  826. var l int
  827. _ = l
  828. l = len(m.Ip)
  829. if l > 0 {
  830. n += 1 + l + sovApi(uint64(l))
  831. }
  832. return n
  833. }
  834. func (m *CaptchaTokenReply) Size() (n int) {
  835. var l int
  836. _ = l
  837. l = len(m.Token)
  838. if l > 0 {
  839. n += 1 + l + sovApi(uint64(l))
  840. }
  841. l = len(m.Url)
  842. if l > 0 {
  843. n += 1 + l + sovApi(uint64(l))
  844. }
  845. return n
  846. }
  847. func (m *UseCouponCodeReq) Size() (n int) {
  848. var l int
  849. _ = l
  850. l = len(m.Token)
  851. if l > 0 {
  852. n += 1 + l + sovApi(uint64(l))
  853. }
  854. l = len(m.Code)
  855. if l > 0 {
  856. n += 1 + l + sovApi(uint64(l))
  857. }
  858. l = len(m.Verify)
  859. if l > 0 {
  860. n += 1 + l + sovApi(uint64(l))
  861. }
  862. l = len(m.Ip)
  863. if l > 0 {
  864. n += 1 + l + sovApi(uint64(l))
  865. }
  866. if m.Mid != 0 {
  867. n += 1 + sovApi(uint64(m.Mid))
  868. }
  869. return n
  870. }
  871. func (m *UseCouponCodeResp) Size() (n int) {
  872. var l int
  873. _ = l
  874. l = len(m.CouponToken)
  875. if l > 0 {
  876. n += 1 + l + sovApi(uint64(l))
  877. }
  878. if m.CouponAmount != 0 {
  879. n += 9
  880. }
  881. if m.FullAmount != 0 {
  882. n += 9
  883. }
  884. l = len(m.PlatfromLimitExplain)
  885. if l > 0 {
  886. n += 1 + l + sovApi(uint64(l))
  887. }
  888. if m.ProductLimitMonth != 0 {
  889. n += 1 + sovApi(uint64(m.ProductLimitMonth))
  890. }
  891. if m.ProductLimitRenewal != 0 {
  892. n += 1 + sovApi(uint64(m.ProductLimitRenewal))
  893. }
  894. return n
  895. }
  896. func (m *UsableAllowanceCouponV2Req) Size() (n int) {
  897. var l int
  898. _ = l
  899. if m.Mid != 0 {
  900. n += 1 + sovApi(uint64(m.Mid))
  901. }
  902. if len(m.PriceInfo) > 0 {
  903. for _, e := range m.PriceInfo {
  904. l = e.Size()
  905. n += 1 + l + sovApi(uint64(l))
  906. }
  907. }
  908. return n
  909. }
  910. func (m *ModelPriceInfo) Size() (n int) {
  911. var l int
  912. _ = l
  913. if m.Price != 0 {
  914. n += 9
  915. }
  916. if m.Plat != 0 {
  917. n += 1 + sovApi(uint64(m.Plat))
  918. }
  919. if m.ProdLimMonth != 0 {
  920. n += 1 + sovApi(uint64(m.ProdLimMonth))
  921. }
  922. if m.ProdLimRenewal != 0 {
  923. n += 1 + sovApi(uint64(m.ProdLimRenewal))
  924. }
  925. return n
  926. }
  927. func (m *UsableAllowanceCouponV2Reply) Size() (n int) {
  928. var l int
  929. _ = l
  930. l = len(m.CouponTip)
  931. if l > 0 {
  932. n += 1 + l + sovApi(uint64(l))
  933. }
  934. if m.CouponInfo != nil {
  935. l = m.CouponInfo.Size()
  936. n += 1 + l + sovApi(uint64(l))
  937. }
  938. return n
  939. }
  940. func (m *ModelCouponAllowancePanelInfo) Size() (n int) {
  941. var l int
  942. _ = l
  943. l = len(m.CouponToken)
  944. if l > 0 {
  945. n += 1 + l + sovApi(uint64(l))
  946. }
  947. if m.CouponAmount != 0 {
  948. n += 9
  949. }
  950. if m.State != 0 {
  951. n += 1 + sovApi(uint64(m.State))
  952. }
  953. l = len(m.FullLimitExplain)
  954. if l > 0 {
  955. n += 1 + l + sovApi(uint64(l))
  956. }
  957. l = len(m.ScopeExplain)
  958. if l > 0 {
  959. n += 1 + l + sovApi(uint64(l))
  960. }
  961. if m.FullAmount != 0 {
  962. n += 9
  963. }
  964. if m.CouponDiscountPrice != 0 {
  965. n += 9
  966. }
  967. if m.StartTime != 0 {
  968. n += 1 + sovApi(uint64(m.StartTime))
  969. }
  970. if m.ExpireTime != 0 {
  971. n += 1 + sovApi(uint64(m.ExpireTime))
  972. }
  973. if m.Selected != 0 {
  974. n += 1 + sovApi(uint64(m.Selected))
  975. }
  976. l = len(m.DisablesExplains)
  977. if l > 0 {
  978. n += 1 + l + sovApi(uint64(l))
  979. }
  980. l = len(m.OrderNo)
  981. if l > 0 {
  982. n += 1 + l + sovApi(uint64(l))
  983. }
  984. l = len(m.Name)
  985. if l > 0 {
  986. n += 1 + l + sovApi(uint64(l))
  987. }
  988. if m.Usable != 0 {
  989. n += 1 + sovApi(uint64(m.Usable))
  990. }
  991. return n
  992. }
  993. func sovApi(x uint64) (n int) {
  994. for {
  995. n++
  996. x >>= 7
  997. if x == 0 {
  998. break
  999. }
  1000. }
  1001. return n
  1002. }
  1003. func sozApi(x uint64) (n int) {
  1004. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1005. }
  1006. func (m *CaptchaTokenReq) Unmarshal(dAtA []byte) error {
  1007. l := len(dAtA)
  1008. iNdEx := 0
  1009. for iNdEx < l {
  1010. preIndex := iNdEx
  1011. var wire uint64
  1012. for shift := uint(0); ; shift += 7 {
  1013. if shift >= 64 {
  1014. return ErrIntOverflowApi
  1015. }
  1016. if iNdEx >= l {
  1017. return io.ErrUnexpectedEOF
  1018. }
  1019. b := dAtA[iNdEx]
  1020. iNdEx++
  1021. wire |= (uint64(b) & 0x7F) << shift
  1022. if b < 0x80 {
  1023. break
  1024. }
  1025. }
  1026. fieldNum := int32(wire >> 3)
  1027. wireType := int(wire & 0x7)
  1028. if wireType == 4 {
  1029. return fmt.Errorf("proto: CaptchaTokenReq: wiretype end group for non-group")
  1030. }
  1031. if fieldNum <= 0 {
  1032. return fmt.Errorf("proto: CaptchaTokenReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1033. }
  1034. switch fieldNum {
  1035. case 1:
  1036. if wireType != 2 {
  1037. return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
  1038. }
  1039. var stringLen uint64
  1040. for shift := uint(0); ; shift += 7 {
  1041. if shift >= 64 {
  1042. return ErrIntOverflowApi
  1043. }
  1044. if iNdEx >= l {
  1045. return io.ErrUnexpectedEOF
  1046. }
  1047. b := dAtA[iNdEx]
  1048. iNdEx++
  1049. stringLen |= (uint64(b) & 0x7F) << shift
  1050. if b < 0x80 {
  1051. break
  1052. }
  1053. }
  1054. intStringLen := int(stringLen)
  1055. if intStringLen < 0 {
  1056. return ErrInvalidLengthApi
  1057. }
  1058. postIndex := iNdEx + intStringLen
  1059. if postIndex > l {
  1060. return io.ErrUnexpectedEOF
  1061. }
  1062. m.Ip = string(dAtA[iNdEx:postIndex])
  1063. iNdEx = postIndex
  1064. default:
  1065. iNdEx = preIndex
  1066. skippy, err := skipApi(dAtA[iNdEx:])
  1067. if err != nil {
  1068. return err
  1069. }
  1070. if skippy < 0 {
  1071. return ErrInvalidLengthApi
  1072. }
  1073. if (iNdEx + skippy) > l {
  1074. return io.ErrUnexpectedEOF
  1075. }
  1076. iNdEx += skippy
  1077. }
  1078. }
  1079. if iNdEx > l {
  1080. return io.ErrUnexpectedEOF
  1081. }
  1082. return nil
  1083. }
  1084. func (m *CaptchaTokenReply) Unmarshal(dAtA []byte) error {
  1085. l := len(dAtA)
  1086. iNdEx := 0
  1087. for iNdEx < l {
  1088. preIndex := iNdEx
  1089. var wire uint64
  1090. for shift := uint(0); ; shift += 7 {
  1091. if shift >= 64 {
  1092. return ErrIntOverflowApi
  1093. }
  1094. if iNdEx >= l {
  1095. return io.ErrUnexpectedEOF
  1096. }
  1097. b := dAtA[iNdEx]
  1098. iNdEx++
  1099. wire |= (uint64(b) & 0x7F) << shift
  1100. if b < 0x80 {
  1101. break
  1102. }
  1103. }
  1104. fieldNum := int32(wire >> 3)
  1105. wireType := int(wire & 0x7)
  1106. if wireType == 4 {
  1107. return fmt.Errorf("proto: CaptchaTokenReply: wiretype end group for non-group")
  1108. }
  1109. if fieldNum <= 0 {
  1110. return fmt.Errorf("proto: CaptchaTokenReply: illegal tag %d (wire type %d)", fieldNum, wire)
  1111. }
  1112. switch fieldNum {
  1113. case 1:
  1114. if wireType != 2 {
  1115. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  1116. }
  1117. var stringLen uint64
  1118. for shift := uint(0); ; shift += 7 {
  1119. if shift >= 64 {
  1120. return ErrIntOverflowApi
  1121. }
  1122. if iNdEx >= l {
  1123. return io.ErrUnexpectedEOF
  1124. }
  1125. b := dAtA[iNdEx]
  1126. iNdEx++
  1127. stringLen |= (uint64(b) & 0x7F) << shift
  1128. if b < 0x80 {
  1129. break
  1130. }
  1131. }
  1132. intStringLen := int(stringLen)
  1133. if intStringLen < 0 {
  1134. return ErrInvalidLengthApi
  1135. }
  1136. postIndex := iNdEx + intStringLen
  1137. if postIndex > l {
  1138. return io.ErrUnexpectedEOF
  1139. }
  1140. m.Token = string(dAtA[iNdEx:postIndex])
  1141. iNdEx = postIndex
  1142. case 2:
  1143. if wireType != 2 {
  1144. return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
  1145. }
  1146. var stringLen uint64
  1147. for shift := uint(0); ; shift += 7 {
  1148. if shift >= 64 {
  1149. return ErrIntOverflowApi
  1150. }
  1151. if iNdEx >= l {
  1152. return io.ErrUnexpectedEOF
  1153. }
  1154. b := dAtA[iNdEx]
  1155. iNdEx++
  1156. stringLen |= (uint64(b) & 0x7F) << shift
  1157. if b < 0x80 {
  1158. break
  1159. }
  1160. }
  1161. intStringLen := int(stringLen)
  1162. if intStringLen < 0 {
  1163. return ErrInvalidLengthApi
  1164. }
  1165. postIndex := iNdEx + intStringLen
  1166. if postIndex > l {
  1167. return io.ErrUnexpectedEOF
  1168. }
  1169. m.Url = string(dAtA[iNdEx:postIndex])
  1170. iNdEx = postIndex
  1171. default:
  1172. iNdEx = preIndex
  1173. skippy, err := skipApi(dAtA[iNdEx:])
  1174. if err != nil {
  1175. return err
  1176. }
  1177. if skippy < 0 {
  1178. return ErrInvalidLengthApi
  1179. }
  1180. if (iNdEx + skippy) > l {
  1181. return io.ErrUnexpectedEOF
  1182. }
  1183. iNdEx += skippy
  1184. }
  1185. }
  1186. if iNdEx > l {
  1187. return io.ErrUnexpectedEOF
  1188. }
  1189. return nil
  1190. }
  1191. func (m *UseCouponCodeReq) Unmarshal(dAtA []byte) error {
  1192. l := len(dAtA)
  1193. iNdEx := 0
  1194. for iNdEx < l {
  1195. preIndex := iNdEx
  1196. var wire uint64
  1197. for shift := uint(0); ; shift += 7 {
  1198. if shift >= 64 {
  1199. return ErrIntOverflowApi
  1200. }
  1201. if iNdEx >= l {
  1202. return io.ErrUnexpectedEOF
  1203. }
  1204. b := dAtA[iNdEx]
  1205. iNdEx++
  1206. wire |= (uint64(b) & 0x7F) << shift
  1207. if b < 0x80 {
  1208. break
  1209. }
  1210. }
  1211. fieldNum := int32(wire >> 3)
  1212. wireType := int(wire & 0x7)
  1213. if wireType == 4 {
  1214. return fmt.Errorf("proto: UseCouponCodeReq: wiretype end group for non-group")
  1215. }
  1216. if fieldNum <= 0 {
  1217. return fmt.Errorf("proto: UseCouponCodeReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1218. }
  1219. switch fieldNum {
  1220. case 1:
  1221. if wireType != 2 {
  1222. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  1223. }
  1224. var stringLen uint64
  1225. for shift := uint(0); ; shift += 7 {
  1226. if shift >= 64 {
  1227. return ErrIntOverflowApi
  1228. }
  1229. if iNdEx >= l {
  1230. return io.ErrUnexpectedEOF
  1231. }
  1232. b := dAtA[iNdEx]
  1233. iNdEx++
  1234. stringLen |= (uint64(b) & 0x7F) << shift
  1235. if b < 0x80 {
  1236. break
  1237. }
  1238. }
  1239. intStringLen := int(stringLen)
  1240. if intStringLen < 0 {
  1241. return ErrInvalidLengthApi
  1242. }
  1243. postIndex := iNdEx + intStringLen
  1244. if postIndex > l {
  1245. return io.ErrUnexpectedEOF
  1246. }
  1247. m.Token = string(dAtA[iNdEx:postIndex])
  1248. iNdEx = postIndex
  1249. case 2:
  1250. if wireType != 2 {
  1251. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  1252. }
  1253. var stringLen uint64
  1254. for shift := uint(0); ; shift += 7 {
  1255. if shift >= 64 {
  1256. return ErrIntOverflowApi
  1257. }
  1258. if iNdEx >= l {
  1259. return io.ErrUnexpectedEOF
  1260. }
  1261. b := dAtA[iNdEx]
  1262. iNdEx++
  1263. stringLen |= (uint64(b) & 0x7F) << shift
  1264. if b < 0x80 {
  1265. break
  1266. }
  1267. }
  1268. intStringLen := int(stringLen)
  1269. if intStringLen < 0 {
  1270. return ErrInvalidLengthApi
  1271. }
  1272. postIndex := iNdEx + intStringLen
  1273. if postIndex > l {
  1274. return io.ErrUnexpectedEOF
  1275. }
  1276. m.Code = string(dAtA[iNdEx:postIndex])
  1277. iNdEx = postIndex
  1278. case 3:
  1279. if wireType != 2 {
  1280. return fmt.Errorf("proto: wrong wireType = %d for field Verify", wireType)
  1281. }
  1282. var stringLen uint64
  1283. for shift := uint(0); ; shift += 7 {
  1284. if shift >= 64 {
  1285. return ErrIntOverflowApi
  1286. }
  1287. if iNdEx >= l {
  1288. return io.ErrUnexpectedEOF
  1289. }
  1290. b := dAtA[iNdEx]
  1291. iNdEx++
  1292. stringLen |= (uint64(b) & 0x7F) << shift
  1293. if b < 0x80 {
  1294. break
  1295. }
  1296. }
  1297. intStringLen := int(stringLen)
  1298. if intStringLen < 0 {
  1299. return ErrInvalidLengthApi
  1300. }
  1301. postIndex := iNdEx + intStringLen
  1302. if postIndex > l {
  1303. return io.ErrUnexpectedEOF
  1304. }
  1305. m.Verify = string(dAtA[iNdEx:postIndex])
  1306. iNdEx = postIndex
  1307. case 4:
  1308. if wireType != 2 {
  1309. return fmt.Errorf("proto: wrong wireType = %d for field Ip", wireType)
  1310. }
  1311. var stringLen uint64
  1312. for shift := uint(0); ; shift += 7 {
  1313. if shift >= 64 {
  1314. return ErrIntOverflowApi
  1315. }
  1316. if iNdEx >= l {
  1317. return io.ErrUnexpectedEOF
  1318. }
  1319. b := dAtA[iNdEx]
  1320. iNdEx++
  1321. stringLen |= (uint64(b) & 0x7F) << shift
  1322. if b < 0x80 {
  1323. break
  1324. }
  1325. }
  1326. intStringLen := int(stringLen)
  1327. if intStringLen < 0 {
  1328. return ErrInvalidLengthApi
  1329. }
  1330. postIndex := iNdEx + intStringLen
  1331. if postIndex > l {
  1332. return io.ErrUnexpectedEOF
  1333. }
  1334. m.Ip = string(dAtA[iNdEx:postIndex])
  1335. iNdEx = postIndex
  1336. case 5:
  1337. if wireType != 0 {
  1338. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  1339. }
  1340. m.Mid = 0
  1341. for shift := uint(0); ; shift += 7 {
  1342. if shift >= 64 {
  1343. return ErrIntOverflowApi
  1344. }
  1345. if iNdEx >= l {
  1346. return io.ErrUnexpectedEOF
  1347. }
  1348. b := dAtA[iNdEx]
  1349. iNdEx++
  1350. m.Mid |= (int64(b) & 0x7F) << shift
  1351. if b < 0x80 {
  1352. break
  1353. }
  1354. }
  1355. default:
  1356. iNdEx = preIndex
  1357. skippy, err := skipApi(dAtA[iNdEx:])
  1358. if err != nil {
  1359. return err
  1360. }
  1361. if skippy < 0 {
  1362. return ErrInvalidLengthApi
  1363. }
  1364. if (iNdEx + skippy) > l {
  1365. return io.ErrUnexpectedEOF
  1366. }
  1367. iNdEx += skippy
  1368. }
  1369. }
  1370. if iNdEx > l {
  1371. return io.ErrUnexpectedEOF
  1372. }
  1373. return nil
  1374. }
  1375. func (m *UseCouponCodeResp) Unmarshal(dAtA []byte) error {
  1376. l := len(dAtA)
  1377. iNdEx := 0
  1378. for iNdEx < l {
  1379. preIndex := iNdEx
  1380. var wire uint64
  1381. for shift := uint(0); ; shift += 7 {
  1382. if shift >= 64 {
  1383. return ErrIntOverflowApi
  1384. }
  1385. if iNdEx >= l {
  1386. return io.ErrUnexpectedEOF
  1387. }
  1388. b := dAtA[iNdEx]
  1389. iNdEx++
  1390. wire |= (uint64(b) & 0x7F) << shift
  1391. if b < 0x80 {
  1392. break
  1393. }
  1394. }
  1395. fieldNum := int32(wire >> 3)
  1396. wireType := int(wire & 0x7)
  1397. if wireType == 4 {
  1398. return fmt.Errorf("proto: UseCouponCodeResp: wiretype end group for non-group")
  1399. }
  1400. if fieldNum <= 0 {
  1401. return fmt.Errorf("proto: UseCouponCodeResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1402. }
  1403. switch fieldNum {
  1404. case 1:
  1405. if wireType != 2 {
  1406. return fmt.Errorf("proto: wrong wireType = %d for field CouponToken", wireType)
  1407. }
  1408. var stringLen uint64
  1409. for shift := uint(0); ; shift += 7 {
  1410. if shift >= 64 {
  1411. return ErrIntOverflowApi
  1412. }
  1413. if iNdEx >= l {
  1414. return io.ErrUnexpectedEOF
  1415. }
  1416. b := dAtA[iNdEx]
  1417. iNdEx++
  1418. stringLen |= (uint64(b) & 0x7F) << shift
  1419. if b < 0x80 {
  1420. break
  1421. }
  1422. }
  1423. intStringLen := int(stringLen)
  1424. if intStringLen < 0 {
  1425. return ErrInvalidLengthApi
  1426. }
  1427. postIndex := iNdEx + intStringLen
  1428. if postIndex > l {
  1429. return io.ErrUnexpectedEOF
  1430. }
  1431. m.CouponToken = string(dAtA[iNdEx:postIndex])
  1432. iNdEx = postIndex
  1433. case 2:
  1434. if wireType != 1 {
  1435. return fmt.Errorf("proto: wrong wireType = %d for field CouponAmount", wireType)
  1436. }
  1437. var v uint64
  1438. if (iNdEx + 8) > l {
  1439. return io.ErrUnexpectedEOF
  1440. }
  1441. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1442. iNdEx += 8
  1443. m.CouponAmount = float64(math.Float64frombits(v))
  1444. case 3:
  1445. if wireType != 1 {
  1446. return fmt.Errorf("proto: wrong wireType = %d for field FullAmount", wireType)
  1447. }
  1448. var v uint64
  1449. if (iNdEx + 8) > l {
  1450. return io.ErrUnexpectedEOF
  1451. }
  1452. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1453. iNdEx += 8
  1454. m.FullAmount = float64(math.Float64frombits(v))
  1455. case 4:
  1456. if wireType != 2 {
  1457. return fmt.Errorf("proto: wrong wireType = %d for field PlatfromLimitExplain", wireType)
  1458. }
  1459. var stringLen uint64
  1460. for shift := uint(0); ; shift += 7 {
  1461. if shift >= 64 {
  1462. return ErrIntOverflowApi
  1463. }
  1464. if iNdEx >= l {
  1465. return io.ErrUnexpectedEOF
  1466. }
  1467. b := dAtA[iNdEx]
  1468. iNdEx++
  1469. stringLen |= (uint64(b) & 0x7F) << shift
  1470. if b < 0x80 {
  1471. break
  1472. }
  1473. }
  1474. intStringLen := int(stringLen)
  1475. if intStringLen < 0 {
  1476. return ErrInvalidLengthApi
  1477. }
  1478. postIndex := iNdEx + intStringLen
  1479. if postIndex > l {
  1480. return io.ErrUnexpectedEOF
  1481. }
  1482. m.PlatfromLimitExplain = string(dAtA[iNdEx:postIndex])
  1483. iNdEx = postIndex
  1484. case 5:
  1485. if wireType != 0 {
  1486. return fmt.Errorf("proto: wrong wireType = %d for field ProductLimitMonth", wireType)
  1487. }
  1488. m.ProductLimitMonth = 0
  1489. for shift := uint(0); ; shift += 7 {
  1490. if shift >= 64 {
  1491. return ErrIntOverflowApi
  1492. }
  1493. if iNdEx >= l {
  1494. return io.ErrUnexpectedEOF
  1495. }
  1496. b := dAtA[iNdEx]
  1497. iNdEx++
  1498. m.ProductLimitMonth |= (int32(b) & 0x7F) << shift
  1499. if b < 0x80 {
  1500. break
  1501. }
  1502. }
  1503. case 6:
  1504. if wireType != 0 {
  1505. return fmt.Errorf("proto: wrong wireType = %d for field ProductLimitRenewal", wireType)
  1506. }
  1507. m.ProductLimitRenewal = 0
  1508. for shift := uint(0); ; shift += 7 {
  1509. if shift >= 64 {
  1510. return ErrIntOverflowApi
  1511. }
  1512. if iNdEx >= l {
  1513. return io.ErrUnexpectedEOF
  1514. }
  1515. b := dAtA[iNdEx]
  1516. iNdEx++
  1517. m.ProductLimitRenewal |= (int32(b) & 0x7F) << shift
  1518. if b < 0x80 {
  1519. break
  1520. }
  1521. }
  1522. default:
  1523. iNdEx = preIndex
  1524. skippy, err := skipApi(dAtA[iNdEx:])
  1525. if err != nil {
  1526. return err
  1527. }
  1528. if skippy < 0 {
  1529. return ErrInvalidLengthApi
  1530. }
  1531. if (iNdEx + skippy) > l {
  1532. return io.ErrUnexpectedEOF
  1533. }
  1534. iNdEx += skippy
  1535. }
  1536. }
  1537. if iNdEx > l {
  1538. return io.ErrUnexpectedEOF
  1539. }
  1540. return nil
  1541. }
  1542. func (m *UsableAllowanceCouponV2Req) Unmarshal(dAtA []byte) error {
  1543. l := len(dAtA)
  1544. iNdEx := 0
  1545. for iNdEx < l {
  1546. preIndex := iNdEx
  1547. var wire uint64
  1548. for shift := uint(0); ; shift += 7 {
  1549. if shift >= 64 {
  1550. return ErrIntOverflowApi
  1551. }
  1552. if iNdEx >= l {
  1553. return io.ErrUnexpectedEOF
  1554. }
  1555. b := dAtA[iNdEx]
  1556. iNdEx++
  1557. wire |= (uint64(b) & 0x7F) << shift
  1558. if b < 0x80 {
  1559. break
  1560. }
  1561. }
  1562. fieldNum := int32(wire >> 3)
  1563. wireType := int(wire & 0x7)
  1564. if wireType == 4 {
  1565. return fmt.Errorf("proto: UsableAllowanceCouponV2Req: wiretype end group for non-group")
  1566. }
  1567. if fieldNum <= 0 {
  1568. return fmt.Errorf("proto: UsableAllowanceCouponV2Req: illegal tag %d (wire type %d)", fieldNum, wire)
  1569. }
  1570. switch fieldNum {
  1571. case 1:
  1572. if wireType != 0 {
  1573. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  1574. }
  1575. m.Mid = 0
  1576. for shift := uint(0); ; shift += 7 {
  1577. if shift >= 64 {
  1578. return ErrIntOverflowApi
  1579. }
  1580. if iNdEx >= l {
  1581. return io.ErrUnexpectedEOF
  1582. }
  1583. b := dAtA[iNdEx]
  1584. iNdEx++
  1585. m.Mid |= (int64(b) & 0x7F) << shift
  1586. if b < 0x80 {
  1587. break
  1588. }
  1589. }
  1590. case 2:
  1591. if wireType != 2 {
  1592. return fmt.Errorf("proto: wrong wireType = %d for field PriceInfo", wireType)
  1593. }
  1594. var msglen int
  1595. for shift := uint(0); ; shift += 7 {
  1596. if shift >= 64 {
  1597. return ErrIntOverflowApi
  1598. }
  1599. if iNdEx >= l {
  1600. return io.ErrUnexpectedEOF
  1601. }
  1602. b := dAtA[iNdEx]
  1603. iNdEx++
  1604. msglen |= (int(b) & 0x7F) << shift
  1605. if b < 0x80 {
  1606. break
  1607. }
  1608. }
  1609. if msglen < 0 {
  1610. return ErrInvalidLengthApi
  1611. }
  1612. postIndex := iNdEx + msglen
  1613. if postIndex > l {
  1614. return io.ErrUnexpectedEOF
  1615. }
  1616. m.PriceInfo = append(m.PriceInfo, &ModelPriceInfo{})
  1617. if err := m.PriceInfo[len(m.PriceInfo)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1618. return err
  1619. }
  1620. iNdEx = postIndex
  1621. default:
  1622. iNdEx = preIndex
  1623. skippy, err := skipApi(dAtA[iNdEx:])
  1624. if err != nil {
  1625. return err
  1626. }
  1627. if skippy < 0 {
  1628. return ErrInvalidLengthApi
  1629. }
  1630. if (iNdEx + skippy) > l {
  1631. return io.ErrUnexpectedEOF
  1632. }
  1633. iNdEx += skippy
  1634. }
  1635. }
  1636. if iNdEx > l {
  1637. return io.ErrUnexpectedEOF
  1638. }
  1639. return nil
  1640. }
  1641. func (m *ModelPriceInfo) Unmarshal(dAtA []byte) error {
  1642. l := len(dAtA)
  1643. iNdEx := 0
  1644. for iNdEx < l {
  1645. preIndex := iNdEx
  1646. var wire uint64
  1647. for shift := uint(0); ; shift += 7 {
  1648. if shift >= 64 {
  1649. return ErrIntOverflowApi
  1650. }
  1651. if iNdEx >= l {
  1652. return io.ErrUnexpectedEOF
  1653. }
  1654. b := dAtA[iNdEx]
  1655. iNdEx++
  1656. wire |= (uint64(b) & 0x7F) << shift
  1657. if b < 0x80 {
  1658. break
  1659. }
  1660. }
  1661. fieldNum := int32(wire >> 3)
  1662. wireType := int(wire & 0x7)
  1663. if wireType == 4 {
  1664. return fmt.Errorf("proto: ModelPriceInfo: wiretype end group for non-group")
  1665. }
  1666. if fieldNum <= 0 {
  1667. return fmt.Errorf("proto: ModelPriceInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1668. }
  1669. switch fieldNum {
  1670. case 1:
  1671. if wireType != 1 {
  1672. return fmt.Errorf("proto: wrong wireType = %d for field Price", wireType)
  1673. }
  1674. var v uint64
  1675. if (iNdEx + 8) > l {
  1676. return io.ErrUnexpectedEOF
  1677. }
  1678. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1679. iNdEx += 8
  1680. m.Price = float64(math.Float64frombits(v))
  1681. case 2:
  1682. if wireType != 0 {
  1683. return fmt.Errorf("proto: wrong wireType = %d for field Plat", wireType)
  1684. }
  1685. m.Plat = 0
  1686. for shift := uint(0); ; shift += 7 {
  1687. if shift >= 64 {
  1688. return ErrIntOverflowApi
  1689. }
  1690. if iNdEx >= l {
  1691. return io.ErrUnexpectedEOF
  1692. }
  1693. b := dAtA[iNdEx]
  1694. iNdEx++
  1695. m.Plat |= (int64(b) & 0x7F) << shift
  1696. if b < 0x80 {
  1697. break
  1698. }
  1699. }
  1700. case 3:
  1701. if wireType != 0 {
  1702. return fmt.Errorf("proto: wrong wireType = %d for field ProdLimMonth", wireType)
  1703. }
  1704. m.ProdLimMonth = 0
  1705. for shift := uint(0); ; shift += 7 {
  1706. if shift >= 64 {
  1707. return ErrIntOverflowApi
  1708. }
  1709. if iNdEx >= l {
  1710. return io.ErrUnexpectedEOF
  1711. }
  1712. b := dAtA[iNdEx]
  1713. iNdEx++
  1714. m.ProdLimMonth |= (int32(b) & 0x7F) << shift
  1715. if b < 0x80 {
  1716. break
  1717. }
  1718. }
  1719. case 4:
  1720. if wireType != 0 {
  1721. return fmt.Errorf("proto: wrong wireType = %d for field ProdLimRenewal", wireType)
  1722. }
  1723. m.ProdLimRenewal = 0
  1724. for shift := uint(0); ; shift += 7 {
  1725. if shift >= 64 {
  1726. return ErrIntOverflowApi
  1727. }
  1728. if iNdEx >= l {
  1729. return io.ErrUnexpectedEOF
  1730. }
  1731. b := dAtA[iNdEx]
  1732. iNdEx++
  1733. m.ProdLimRenewal |= (int32(b) & 0x7F) << shift
  1734. if b < 0x80 {
  1735. break
  1736. }
  1737. }
  1738. default:
  1739. iNdEx = preIndex
  1740. skippy, err := skipApi(dAtA[iNdEx:])
  1741. if err != nil {
  1742. return err
  1743. }
  1744. if skippy < 0 {
  1745. return ErrInvalidLengthApi
  1746. }
  1747. if (iNdEx + skippy) > l {
  1748. return io.ErrUnexpectedEOF
  1749. }
  1750. iNdEx += skippy
  1751. }
  1752. }
  1753. if iNdEx > l {
  1754. return io.ErrUnexpectedEOF
  1755. }
  1756. return nil
  1757. }
  1758. func (m *UsableAllowanceCouponV2Reply) Unmarshal(dAtA []byte) error {
  1759. l := len(dAtA)
  1760. iNdEx := 0
  1761. for iNdEx < l {
  1762. preIndex := iNdEx
  1763. var wire uint64
  1764. for shift := uint(0); ; shift += 7 {
  1765. if shift >= 64 {
  1766. return ErrIntOverflowApi
  1767. }
  1768. if iNdEx >= l {
  1769. return io.ErrUnexpectedEOF
  1770. }
  1771. b := dAtA[iNdEx]
  1772. iNdEx++
  1773. wire |= (uint64(b) & 0x7F) << shift
  1774. if b < 0x80 {
  1775. break
  1776. }
  1777. }
  1778. fieldNum := int32(wire >> 3)
  1779. wireType := int(wire & 0x7)
  1780. if wireType == 4 {
  1781. return fmt.Errorf("proto: UsableAllowanceCouponV2Reply: wiretype end group for non-group")
  1782. }
  1783. if fieldNum <= 0 {
  1784. return fmt.Errorf("proto: UsableAllowanceCouponV2Reply: illegal tag %d (wire type %d)", fieldNum, wire)
  1785. }
  1786. switch fieldNum {
  1787. case 1:
  1788. if wireType != 2 {
  1789. return fmt.Errorf("proto: wrong wireType = %d for field CouponTip", wireType)
  1790. }
  1791. var stringLen uint64
  1792. for shift := uint(0); ; shift += 7 {
  1793. if shift >= 64 {
  1794. return ErrIntOverflowApi
  1795. }
  1796. if iNdEx >= l {
  1797. return io.ErrUnexpectedEOF
  1798. }
  1799. b := dAtA[iNdEx]
  1800. iNdEx++
  1801. stringLen |= (uint64(b) & 0x7F) << shift
  1802. if b < 0x80 {
  1803. break
  1804. }
  1805. }
  1806. intStringLen := int(stringLen)
  1807. if intStringLen < 0 {
  1808. return ErrInvalidLengthApi
  1809. }
  1810. postIndex := iNdEx + intStringLen
  1811. if postIndex > l {
  1812. return io.ErrUnexpectedEOF
  1813. }
  1814. m.CouponTip = string(dAtA[iNdEx:postIndex])
  1815. iNdEx = postIndex
  1816. case 2:
  1817. if wireType != 2 {
  1818. return fmt.Errorf("proto: wrong wireType = %d for field CouponInfo", wireType)
  1819. }
  1820. var msglen int
  1821. for shift := uint(0); ; shift += 7 {
  1822. if shift >= 64 {
  1823. return ErrIntOverflowApi
  1824. }
  1825. if iNdEx >= l {
  1826. return io.ErrUnexpectedEOF
  1827. }
  1828. b := dAtA[iNdEx]
  1829. iNdEx++
  1830. msglen |= (int(b) & 0x7F) << shift
  1831. if b < 0x80 {
  1832. break
  1833. }
  1834. }
  1835. if msglen < 0 {
  1836. return ErrInvalidLengthApi
  1837. }
  1838. postIndex := iNdEx + msglen
  1839. if postIndex > l {
  1840. return io.ErrUnexpectedEOF
  1841. }
  1842. if m.CouponInfo == nil {
  1843. m.CouponInfo = &ModelCouponAllowancePanelInfo{}
  1844. }
  1845. if err := m.CouponInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1846. return err
  1847. }
  1848. iNdEx = postIndex
  1849. default:
  1850. iNdEx = preIndex
  1851. skippy, err := skipApi(dAtA[iNdEx:])
  1852. if err != nil {
  1853. return err
  1854. }
  1855. if skippy < 0 {
  1856. return ErrInvalidLengthApi
  1857. }
  1858. if (iNdEx + skippy) > l {
  1859. return io.ErrUnexpectedEOF
  1860. }
  1861. iNdEx += skippy
  1862. }
  1863. }
  1864. if iNdEx > l {
  1865. return io.ErrUnexpectedEOF
  1866. }
  1867. return nil
  1868. }
  1869. func (m *ModelCouponAllowancePanelInfo) Unmarshal(dAtA []byte) error {
  1870. l := len(dAtA)
  1871. iNdEx := 0
  1872. for iNdEx < l {
  1873. preIndex := iNdEx
  1874. var wire uint64
  1875. for shift := uint(0); ; shift += 7 {
  1876. if shift >= 64 {
  1877. return ErrIntOverflowApi
  1878. }
  1879. if iNdEx >= l {
  1880. return io.ErrUnexpectedEOF
  1881. }
  1882. b := dAtA[iNdEx]
  1883. iNdEx++
  1884. wire |= (uint64(b) & 0x7F) << shift
  1885. if b < 0x80 {
  1886. break
  1887. }
  1888. }
  1889. fieldNum := int32(wire >> 3)
  1890. wireType := int(wire & 0x7)
  1891. if wireType == 4 {
  1892. return fmt.Errorf("proto: ModelCouponAllowancePanelInfo: wiretype end group for non-group")
  1893. }
  1894. if fieldNum <= 0 {
  1895. return fmt.Errorf("proto: ModelCouponAllowancePanelInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1896. }
  1897. switch fieldNum {
  1898. case 1:
  1899. if wireType != 2 {
  1900. return fmt.Errorf("proto: wrong wireType = %d for field CouponToken", wireType)
  1901. }
  1902. var stringLen uint64
  1903. for shift := uint(0); ; shift += 7 {
  1904. if shift >= 64 {
  1905. return ErrIntOverflowApi
  1906. }
  1907. if iNdEx >= l {
  1908. return io.ErrUnexpectedEOF
  1909. }
  1910. b := dAtA[iNdEx]
  1911. iNdEx++
  1912. stringLen |= (uint64(b) & 0x7F) << shift
  1913. if b < 0x80 {
  1914. break
  1915. }
  1916. }
  1917. intStringLen := int(stringLen)
  1918. if intStringLen < 0 {
  1919. return ErrInvalidLengthApi
  1920. }
  1921. postIndex := iNdEx + intStringLen
  1922. if postIndex > l {
  1923. return io.ErrUnexpectedEOF
  1924. }
  1925. m.CouponToken = string(dAtA[iNdEx:postIndex])
  1926. iNdEx = postIndex
  1927. case 2:
  1928. if wireType != 1 {
  1929. return fmt.Errorf("proto: wrong wireType = %d for field CouponAmount", wireType)
  1930. }
  1931. var v uint64
  1932. if (iNdEx + 8) > l {
  1933. return io.ErrUnexpectedEOF
  1934. }
  1935. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1936. iNdEx += 8
  1937. m.CouponAmount = float64(math.Float64frombits(v))
  1938. case 3:
  1939. if wireType != 0 {
  1940. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  1941. }
  1942. m.State = 0
  1943. for shift := uint(0); ; shift += 7 {
  1944. if shift >= 64 {
  1945. return ErrIntOverflowApi
  1946. }
  1947. if iNdEx >= l {
  1948. return io.ErrUnexpectedEOF
  1949. }
  1950. b := dAtA[iNdEx]
  1951. iNdEx++
  1952. m.State |= (int32(b) & 0x7F) << shift
  1953. if b < 0x80 {
  1954. break
  1955. }
  1956. }
  1957. case 4:
  1958. if wireType != 2 {
  1959. return fmt.Errorf("proto: wrong wireType = %d for field FullLimitExplain", wireType)
  1960. }
  1961. var stringLen uint64
  1962. for shift := uint(0); ; shift += 7 {
  1963. if shift >= 64 {
  1964. return ErrIntOverflowApi
  1965. }
  1966. if iNdEx >= l {
  1967. return io.ErrUnexpectedEOF
  1968. }
  1969. b := dAtA[iNdEx]
  1970. iNdEx++
  1971. stringLen |= (uint64(b) & 0x7F) << shift
  1972. if b < 0x80 {
  1973. break
  1974. }
  1975. }
  1976. intStringLen := int(stringLen)
  1977. if intStringLen < 0 {
  1978. return ErrInvalidLengthApi
  1979. }
  1980. postIndex := iNdEx + intStringLen
  1981. if postIndex > l {
  1982. return io.ErrUnexpectedEOF
  1983. }
  1984. m.FullLimitExplain = string(dAtA[iNdEx:postIndex])
  1985. iNdEx = postIndex
  1986. case 5:
  1987. if wireType != 2 {
  1988. return fmt.Errorf("proto: wrong wireType = %d for field ScopeExplain", wireType)
  1989. }
  1990. var stringLen uint64
  1991. for shift := uint(0); ; shift += 7 {
  1992. if shift >= 64 {
  1993. return ErrIntOverflowApi
  1994. }
  1995. if iNdEx >= l {
  1996. return io.ErrUnexpectedEOF
  1997. }
  1998. b := dAtA[iNdEx]
  1999. iNdEx++
  2000. stringLen |= (uint64(b) & 0x7F) << shift
  2001. if b < 0x80 {
  2002. break
  2003. }
  2004. }
  2005. intStringLen := int(stringLen)
  2006. if intStringLen < 0 {
  2007. return ErrInvalidLengthApi
  2008. }
  2009. postIndex := iNdEx + intStringLen
  2010. if postIndex > l {
  2011. return io.ErrUnexpectedEOF
  2012. }
  2013. m.ScopeExplain = string(dAtA[iNdEx:postIndex])
  2014. iNdEx = postIndex
  2015. case 6:
  2016. if wireType != 1 {
  2017. return fmt.Errorf("proto: wrong wireType = %d for field FullAmount", wireType)
  2018. }
  2019. var v uint64
  2020. if (iNdEx + 8) > l {
  2021. return io.ErrUnexpectedEOF
  2022. }
  2023. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  2024. iNdEx += 8
  2025. m.FullAmount = float64(math.Float64frombits(v))
  2026. case 7:
  2027. if wireType != 1 {
  2028. return fmt.Errorf("proto: wrong wireType = %d for field CouponDiscountPrice", wireType)
  2029. }
  2030. var v uint64
  2031. if (iNdEx + 8) > l {
  2032. return io.ErrUnexpectedEOF
  2033. }
  2034. v = uint64(binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  2035. iNdEx += 8
  2036. m.CouponDiscountPrice = float64(math.Float64frombits(v))
  2037. case 8:
  2038. if wireType != 0 {
  2039. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  2040. }
  2041. m.StartTime = 0
  2042. for shift := uint(0); ; shift += 7 {
  2043. if shift >= 64 {
  2044. return ErrIntOverflowApi
  2045. }
  2046. if iNdEx >= l {
  2047. return io.ErrUnexpectedEOF
  2048. }
  2049. b := dAtA[iNdEx]
  2050. iNdEx++
  2051. m.StartTime |= (int64(b) & 0x7F) << shift
  2052. if b < 0x80 {
  2053. break
  2054. }
  2055. }
  2056. case 9:
  2057. if wireType != 0 {
  2058. return fmt.Errorf("proto: wrong wireType = %d for field ExpireTime", wireType)
  2059. }
  2060. m.ExpireTime = 0
  2061. for shift := uint(0); ; shift += 7 {
  2062. if shift >= 64 {
  2063. return ErrIntOverflowApi
  2064. }
  2065. if iNdEx >= l {
  2066. return io.ErrUnexpectedEOF
  2067. }
  2068. b := dAtA[iNdEx]
  2069. iNdEx++
  2070. m.ExpireTime |= (int64(b) & 0x7F) << shift
  2071. if b < 0x80 {
  2072. break
  2073. }
  2074. }
  2075. case 10:
  2076. if wireType != 0 {
  2077. return fmt.Errorf("proto: wrong wireType = %d for field Selected", wireType)
  2078. }
  2079. m.Selected = 0
  2080. for shift := uint(0); ; shift += 7 {
  2081. if shift >= 64 {
  2082. return ErrIntOverflowApi
  2083. }
  2084. if iNdEx >= l {
  2085. return io.ErrUnexpectedEOF
  2086. }
  2087. b := dAtA[iNdEx]
  2088. iNdEx++
  2089. m.Selected |= (int32(b) & 0x7F) << shift
  2090. if b < 0x80 {
  2091. break
  2092. }
  2093. }
  2094. case 11:
  2095. if wireType != 2 {
  2096. return fmt.Errorf("proto: wrong wireType = %d for field DisablesExplains", wireType)
  2097. }
  2098. var stringLen uint64
  2099. for shift := uint(0); ; shift += 7 {
  2100. if shift >= 64 {
  2101. return ErrIntOverflowApi
  2102. }
  2103. if iNdEx >= l {
  2104. return io.ErrUnexpectedEOF
  2105. }
  2106. b := dAtA[iNdEx]
  2107. iNdEx++
  2108. stringLen |= (uint64(b) & 0x7F) << shift
  2109. if b < 0x80 {
  2110. break
  2111. }
  2112. }
  2113. intStringLen := int(stringLen)
  2114. if intStringLen < 0 {
  2115. return ErrInvalidLengthApi
  2116. }
  2117. postIndex := iNdEx + intStringLen
  2118. if postIndex > l {
  2119. return io.ErrUnexpectedEOF
  2120. }
  2121. m.DisablesExplains = string(dAtA[iNdEx:postIndex])
  2122. iNdEx = postIndex
  2123. case 12:
  2124. if wireType != 2 {
  2125. return fmt.Errorf("proto: wrong wireType = %d for field OrderNo", wireType)
  2126. }
  2127. var stringLen uint64
  2128. for shift := uint(0); ; shift += 7 {
  2129. if shift >= 64 {
  2130. return ErrIntOverflowApi
  2131. }
  2132. if iNdEx >= l {
  2133. return io.ErrUnexpectedEOF
  2134. }
  2135. b := dAtA[iNdEx]
  2136. iNdEx++
  2137. stringLen |= (uint64(b) & 0x7F) << shift
  2138. if b < 0x80 {
  2139. break
  2140. }
  2141. }
  2142. intStringLen := int(stringLen)
  2143. if intStringLen < 0 {
  2144. return ErrInvalidLengthApi
  2145. }
  2146. postIndex := iNdEx + intStringLen
  2147. if postIndex > l {
  2148. return io.ErrUnexpectedEOF
  2149. }
  2150. m.OrderNo = string(dAtA[iNdEx:postIndex])
  2151. iNdEx = postIndex
  2152. case 13:
  2153. if wireType != 2 {
  2154. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2155. }
  2156. var stringLen uint64
  2157. for shift := uint(0); ; shift += 7 {
  2158. if shift >= 64 {
  2159. return ErrIntOverflowApi
  2160. }
  2161. if iNdEx >= l {
  2162. return io.ErrUnexpectedEOF
  2163. }
  2164. b := dAtA[iNdEx]
  2165. iNdEx++
  2166. stringLen |= (uint64(b) & 0x7F) << shift
  2167. if b < 0x80 {
  2168. break
  2169. }
  2170. }
  2171. intStringLen := int(stringLen)
  2172. if intStringLen < 0 {
  2173. return ErrInvalidLengthApi
  2174. }
  2175. postIndex := iNdEx + intStringLen
  2176. if postIndex > l {
  2177. return io.ErrUnexpectedEOF
  2178. }
  2179. m.Name = string(dAtA[iNdEx:postIndex])
  2180. iNdEx = postIndex
  2181. case 14:
  2182. if wireType != 0 {
  2183. return fmt.Errorf("proto: wrong wireType = %d for field Usable", wireType)
  2184. }
  2185. m.Usable = 0
  2186. for shift := uint(0); ; shift += 7 {
  2187. if shift >= 64 {
  2188. return ErrIntOverflowApi
  2189. }
  2190. if iNdEx >= l {
  2191. return io.ErrUnexpectedEOF
  2192. }
  2193. b := dAtA[iNdEx]
  2194. iNdEx++
  2195. m.Usable |= (int32(b) & 0x7F) << shift
  2196. if b < 0x80 {
  2197. break
  2198. }
  2199. }
  2200. default:
  2201. iNdEx = preIndex
  2202. skippy, err := skipApi(dAtA[iNdEx:])
  2203. if err != nil {
  2204. return err
  2205. }
  2206. if skippy < 0 {
  2207. return ErrInvalidLengthApi
  2208. }
  2209. if (iNdEx + skippy) > l {
  2210. return io.ErrUnexpectedEOF
  2211. }
  2212. iNdEx += skippy
  2213. }
  2214. }
  2215. if iNdEx > l {
  2216. return io.ErrUnexpectedEOF
  2217. }
  2218. return nil
  2219. }
  2220. func skipApi(dAtA []byte) (n int, err error) {
  2221. l := len(dAtA)
  2222. iNdEx := 0
  2223. for iNdEx < l {
  2224. var wire uint64
  2225. for shift := uint(0); ; shift += 7 {
  2226. if shift >= 64 {
  2227. return 0, ErrIntOverflowApi
  2228. }
  2229. if iNdEx >= l {
  2230. return 0, io.ErrUnexpectedEOF
  2231. }
  2232. b := dAtA[iNdEx]
  2233. iNdEx++
  2234. wire |= (uint64(b) & 0x7F) << shift
  2235. if b < 0x80 {
  2236. break
  2237. }
  2238. }
  2239. wireType := int(wire & 0x7)
  2240. switch wireType {
  2241. case 0:
  2242. for shift := uint(0); ; shift += 7 {
  2243. if shift >= 64 {
  2244. return 0, ErrIntOverflowApi
  2245. }
  2246. if iNdEx >= l {
  2247. return 0, io.ErrUnexpectedEOF
  2248. }
  2249. iNdEx++
  2250. if dAtA[iNdEx-1] < 0x80 {
  2251. break
  2252. }
  2253. }
  2254. return iNdEx, nil
  2255. case 1:
  2256. iNdEx += 8
  2257. return iNdEx, nil
  2258. case 2:
  2259. var length int
  2260. for shift := uint(0); ; shift += 7 {
  2261. if shift >= 64 {
  2262. return 0, ErrIntOverflowApi
  2263. }
  2264. if iNdEx >= l {
  2265. return 0, io.ErrUnexpectedEOF
  2266. }
  2267. b := dAtA[iNdEx]
  2268. iNdEx++
  2269. length |= (int(b) & 0x7F) << shift
  2270. if b < 0x80 {
  2271. break
  2272. }
  2273. }
  2274. iNdEx += length
  2275. if length < 0 {
  2276. return 0, ErrInvalidLengthApi
  2277. }
  2278. return iNdEx, nil
  2279. case 3:
  2280. for {
  2281. var innerWire uint64
  2282. var start int = iNdEx
  2283. for shift := uint(0); ; shift += 7 {
  2284. if shift >= 64 {
  2285. return 0, ErrIntOverflowApi
  2286. }
  2287. if iNdEx >= l {
  2288. return 0, io.ErrUnexpectedEOF
  2289. }
  2290. b := dAtA[iNdEx]
  2291. iNdEx++
  2292. innerWire |= (uint64(b) & 0x7F) << shift
  2293. if b < 0x80 {
  2294. break
  2295. }
  2296. }
  2297. innerWireType := int(innerWire & 0x7)
  2298. if innerWireType == 4 {
  2299. break
  2300. }
  2301. next, err := skipApi(dAtA[start:])
  2302. if err != nil {
  2303. return 0, err
  2304. }
  2305. iNdEx = start + next
  2306. }
  2307. return iNdEx, nil
  2308. case 4:
  2309. return iNdEx, nil
  2310. case 5:
  2311. iNdEx += 4
  2312. return iNdEx, nil
  2313. default:
  2314. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2315. }
  2316. }
  2317. panic("unreachable")
  2318. }
  2319. var (
  2320. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  2321. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  2322. )
  2323. func init() { proto.RegisterFile("app/service/main/coupon/api/api.proto", fileDescriptorApi) }
  2324. var fileDescriptorApi = []byte{
  2325. // 787 bytes of a gzipped FileDescriptorProto
  2326. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcb, 0x6e, 0x2b, 0x45,
  2327. 0x10, 0xd5, 0xd8, 0xb1, 0x13, 0x97, 0x1f, 0xd8, 0x9d, 0x07, 0x83, 0x45, 0x1c, 0x67, 0x22, 0x90,
  2328. 0x05, 0x89, 0x2d, 0x0c, 0x3b, 0xd8, 0x84, 0xc0, 0x02, 0x29, 0x89, 0xa2, 0x51, 0xc2, 0x82, 0x8d,
  2329. 0xd5, 0x9e, 0x69, 0x27, 0x2d, 0x7a, 0xa6, 0x9b, 0x79, 0x38, 0xc9, 0x0f, 0xb0, 0x63, 0xcb, 0x2f,
  2330. 0xf0, 0x2b, 0x2c, 0xf9, 0x04, 0x94, 0x7f, 0x60, 0x8f, 0xba, 0xba, 0xc7, 0x37, 0xb6, 0x93, 0xe8,
  2331. 0x2e, 0xee, 0x22, 0x52, 0x57, 0x9d, 0x53, 0xae, 0xae, 0xd3, 0x67, 0x2a, 0xf0, 0x19, 0x55, 0x6a,
  2332. 0x94, 0xb2, 0x64, 0xce, 0x03, 0x36, 0x8a, 0x28, 0x8f, 0x47, 0x81, 0xcc, 0x95, 0x8c, 0x47, 0x54,
  2333. 0x71, 0xfd, 0x37, 0x54, 0x89, 0xcc, 0x24, 0x69, 0xd1, 0x20, 0x90, 0x79, 0x9c, 0x0d, 0x0d, 0xda,
  2334. 0x3d, 0xb9, 0xe5, 0xd9, 0x5d, 0x3e, 0x1d, 0x06, 0x32, 0x1a, 0xdd, 0xca, 0x5b, 0x39, 0x42, 0xda,
  2335. 0x34, 0x9f, 0x61, 0x84, 0x01, 0x9e, 0x4c, 0xb9, 0x77, 0x08, 0x1f, 0x9d, 0x51, 0x95, 0x05, 0x77,
  2336. 0xf4, 0x5a, 0xfe, 0xca, 0x62, 0x9f, 0xfd, 0x46, 0x5a, 0x50, 0xe2, 0xca, 0x75, 0xfa, 0xce, 0xa0,
  2337. 0xe6, 0x97, 0xb8, 0xf2, 0xbe, 0x85, 0xce, 0x32, 0x45, 0x89, 0x47, 0xb2, 0x03, 0x95, 0x4c, 0x47,
  2338. 0x96, 0x67, 0x02, 0xd2, 0x86, 0x72, 0x9e, 0x08, 0xb7, 0x84, 0x39, 0x7d, 0xf4, 0xe6, 0xd0, 0xbe,
  2339. 0x49, 0xd9, 0x19, 0xde, 0xed, 0x4c, 0x86, 0x4c, 0x37, 0x78, 0xb9, 0x96, 0xc0, 0x46, 0x20, 0x43,
  2340. 0x66, 0x8b, 0xf1, 0x4c, 0xf6, 0xa0, 0x3a, 0x67, 0x09, 0x9f, 0x3d, 0xba, 0x65, 0xcc, 0xda, 0xc8,
  2341. 0x5e, 0x71, 0xa3, 0xb8, 0xa2, 0xee, 0x1b, 0xf1, 0xd0, 0xad, 0xf4, 0x9d, 0x41, 0xd9, 0xd7, 0x47,
  2342. 0xef, 0xcf, 0x12, 0x74, 0x56, 0x1a, 0xa7, 0x8a, 0x1c, 0x42, 0xc3, 0xc8, 0x34, 0x79, 0x7e, 0x81,
  2343. 0xba, 0xc9, 0xe1, 0x74, 0xe4, 0x08, 0x9a, 0x96, 0x42, 0x23, 0xad, 0x2b, 0xde, 0xc7, 0xf1, 0x6d,
  2344. 0xdd, 0x29, 0xe6, 0xc8, 0x01, 0xd4, 0x67, 0xb9, 0x10, 0x05, 0xa5, 0x8c, 0x14, 0xd0, 0x29, 0x4b,
  2345. 0xf8, 0x06, 0xf6, 0x94, 0xa0, 0xd9, 0x2c, 0x91, 0xd1, 0x44, 0xf0, 0x88, 0x67, 0x13, 0xf6, 0xa0,
  2346. 0x04, 0xe5, 0xb1, 0xbd, 0xf4, 0x4e, 0x81, 0x9e, 0x6b, 0xf0, 0x47, 0x83, 0x91, 0x21, 0x6c, 0xab,
  2347. 0x44, 0x86, 0x79, 0x90, 0xd9, 0xa2, 0x48, 0xc6, 0xd9, 0x1d, 0x8e, 0x55, 0xf1, 0x3b, 0x16, 0xc2,
  2348. 0x8a, 0x0b, 0x0d, 0x90, 0x31, 0xec, 0x2e, 0xf3, 0x13, 0x16, 0xb3, 0x7b, 0x2a, 0xdc, 0x2a, 0x56,
  2349. 0x6c, 0x3f, 0xaf, 0xf0, 0x0d, 0xe4, 0x09, 0xe8, 0xde, 0xa4, 0x74, 0x2a, 0xd8, 0xa9, 0x10, 0xf2,
  2350. 0x9e, 0xc6, 0x81, 0xd5, 0xe8, 0xe7, 0xb1, 0x7e, 0x1a, 0x2b, 0xa4, 0xb3, 0x10, 0x92, 0x7c, 0x07,
  2351. 0x35, 0x95, 0xf0, 0x80, 0xfd, 0x14, 0xcf, 0xa4, 0x5b, 0xea, 0x97, 0x07, 0xf5, 0x71, 0x6f, 0xb8,
  2352. 0xec, 0xb9, 0xe1, 0x85, 0x0c, 0x99, 0xb8, 0x2a, 0x58, 0xfe, 0xbb, 0x02, 0xef, 0x77, 0x07, 0x5a,
  2353. 0xcb, 0xa8, 0x7e, 0x7d, 0xc4, 0xb1, 0x89, 0xe3, 0x9b, 0x40, 0xbf, 0xbe, 0x96, 0x04, 0xd5, 0x2e,
  2354. 0xfb, 0x78, 0x26, 0x1e, 0x34, 0xf4, 0x04, 0xe7, 0x3c, 0xc2, 0x71, 0x51, 0xe6, 0x8a, 0xbf, 0x94,
  2355. 0x23, 0x9f, 0x43, 0xcb, 0xc6, 0x76, 0x40, 0x14, 0xb8, 0xe2, 0xaf, 0x64, 0xbd, 0x3f, 0x1c, 0xf8,
  2356. 0xf4, 0xd5, 0xb9, 0xb5, 0xa1, 0xf7, 0x01, 0x0a, 0x6b, 0x2c, 0xdc, 0x5f, 0xb3, 0xc6, 0xe0, 0x8a,
  2357. 0x5c, 0x82, 0x75, 0xc9, 0x84, 0x1b, 0x21, 0x9c, 0x41, 0x7d, 0x7c, 0xf2, 0xa2, 0x10, 0xe6, 0x77,
  2358. 0x17, 0x6d, 0xae, 0x68, 0xcc, 0x04, 0xea, 0x62, 0x1b, 0xa0, 0x30, 0xff, 0x95, 0x61, 0xff, 0x4d,
  2359. 0xf6, 0x07, 0xf3, 0xea, 0x0e, 0x54, 0xd2, 0x8c, 0x66, 0xcc, 0xca, 0x67, 0x02, 0x72, 0x0c, 0x04,
  2360. 0x1d, 0xfc, 0x92, 0x39, 0xdb, 0x1a, 0x59, 0x32, 0xe6, 0x11, 0x34, 0xd3, 0x40, 0x2a, 0xb6, 0x20,
  2361. 0x56, 0x90, 0xd8, 0xc0, 0x64, 0x41, 0x5a, 0xf9, 0x28, 0xaa, 0x6b, 0x1f, 0xc5, 0x18, 0x76, 0xed,
  2362. 0x75, 0x43, 0x9e, 0xa2, 0x6e, 0x13, 0xe3, 0x84, 0x4d, 0xa4, 0x6e, 0x1b, 0xf0, 0x07, 0x8b, 0xa1,
  2363. 0x63, 0xf4, 0xb3, 0xa4, 0x19, 0x4d, 0xb2, 0x49, 0xc6, 0x23, 0xe6, 0x6e, 0xa1, 0x3b, 0x6a, 0x98,
  2364. 0xb9, 0xe6, 0x11, 0xd3, 0x3d, 0xd9, 0x83, 0xe2, 0x09, 0x33, 0x78, 0x0d, 0x71, 0x30, 0x29, 0x24,
  2365. 0x74, 0x61, 0x2b, 0x65, 0x82, 0x05, 0x19, 0x0b, 0x5d, 0x40, 0x01, 0x16, 0x31, 0xf9, 0x12, 0x3a,
  2366. 0x21, 0x47, 0x4f, 0xa4, 0xc5, 0x60, 0xa9, 0x5b, 0x37, 0x12, 0x14, 0x80, 0x1d, 0x2e, 0x25, 0x9f,
  2367. 0xc0, 0x96, 0x4c, 0x42, 0x96, 0x4c, 0x62, 0xe9, 0x36, 0x90, 0xb3, 0x89, 0xf1, 0xa5, 0xd4, 0xde,
  2368. 0x8d, 0x69, 0xc4, 0xdc, 0xa6, 0xd9, 0x5c, 0xfa, 0xac, 0x37, 0x57, 0x8e, 0xbf, 0xe0, 0xb6, 0xb0,
  2369. 0xab, 0x8d, 0xc6, 0x7f, 0x95, 0xa0, 0x6a, 0x9e, 0x9c, 0xf8, 0xd0, 0x78, 0xbe, 0x57, 0xc9, 0xc1,
  2370. 0xaa, 0x9b, 0x56, 0x16, 0x73, 0xf7, 0xf0, 0x6d, 0x82, 0x76, 0xf1, 0x35, 0x34, 0x97, 0xb6, 0x1e,
  2371. 0xe9, 0xaf, 0xd6, 0xac, 0x6e, 0xe3, 0xf5, 0x5f, 0x5d, 0x5f, 0x9b, 0x29, 0x7c, 0xfc, 0xca, 0xb7,
  2372. 0x43, 0xbe, 0x58, 0xaf, 0x7e, 0x6d, 0xb9, 0x74, 0x8f, 0xdf, 0x9b, 0xab, 0xc4, 0xe3, 0xf7, 0xed,
  2373. 0xbf, 0x9f, 0x7a, 0xce, 0x3f, 0x4f, 0x3d, 0xe7, 0xdf, 0xa7, 0x9e, 0xf3, 0x4b, 0x69, 0xfe, 0xd5,
  2374. 0xb4, 0x8a, 0xff, 0xb2, 0xbe, 0xfe, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x3b, 0x0e, 0xdd, 0x2c, 0x1a,
  2375. 0x07, 0x00, 0x00,
  2376. }