model.pb.go 52 KB

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