sign_up.pb.go 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/up/api/v1/sign_up.proto
  3. package v1
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import go_common_library_time "go-common/library/time"
  9. import io "io"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // SignUp 签约up
  15. type SignUp struct {
  16. // Mid 签约up主ID
  17. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  18. // State 签约状态
  19. State int32 `protobuf:"varint,2,opt,name=State,proto3" json:"state"`
  20. // BeginDate 经纪签约开始时间
  21. BeginDate go_common_library_time.Time `protobuf:"varint,3,opt,name=BeginDate,proto3,casttype=go-common/library/time.Time" json:"begin_date"`
  22. // EndDate 经纪签约结束时间
  23. EndDate go_common_library_time.Time `protobuf:"varint,4,opt,name=EndDate,proto3,casttype=go-common/library/time.Time" json:"end_date"`
  24. }
  25. func (m *SignUp) Reset() { *m = SignUp{} }
  26. func (m *SignUp) String() string { return proto.CompactTextString(m) }
  27. func (*SignUp) ProtoMessage() {}
  28. func (*SignUp) Descriptor() ([]byte, []int) { return fileDescriptorSignUp, []int{0} }
  29. func (m *SignUp) GetMid() int64 {
  30. if m != nil {
  31. return m.Mid
  32. }
  33. return 0
  34. }
  35. func (m *SignUp) GetState() int32 {
  36. if m != nil {
  37. return m.State
  38. }
  39. return 0
  40. }
  41. func (m *SignUp) GetBeginDate() go_common_library_time.Time {
  42. if m != nil {
  43. return m.BeginDate
  44. }
  45. return 0
  46. }
  47. func (m *SignUp) GetEndDate() go_common_library_time.Time {
  48. if m != nil {
  49. return m.EndDate
  50. }
  51. return 0
  52. }
  53. func init() {
  54. proto.RegisterType((*SignUp)(nil), "archive.service.up.v1.SignUp")
  55. }
  56. func (m *SignUp) Marshal() (dAtA []byte, err error) {
  57. size := m.Size()
  58. dAtA = make([]byte, size)
  59. n, err := m.MarshalTo(dAtA)
  60. if err != nil {
  61. return nil, err
  62. }
  63. return dAtA[:n], nil
  64. }
  65. func (m *SignUp) MarshalTo(dAtA []byte) (int, error) {
  66. var i int
  67. _ = i
  68. var l int
  69. _ = l
  70. if m.Mid != 0 {
  71. dAtA[i] = 0x8
  72. i++
  73. i = encodeVarintSignUp(dAtA, i, uint64(m.Mid))
  74. }
  75. if m.State != 0 {
  76. dAtA[i] = 0x10
  77. i++
  78. i = encodeVarintSignUp(dAtA, i, uint64(m.State))
  79. }
  80. if m.BeginDate != 0 {
  81. dAtA[i] = 0x18
  82. i++
  83. i = encodeVarintSignUp(dAtA, i, uint64(m.BeginDate))
  84. }
  85. if m.EndDate != 0 {
  86. dAtA[i] = 0x20
  87. i++
  88. i = encodeVarintSignUp(dAtA, i, uint64(m.EndDate))
  89. }
  90. return i, nil
  91. }
  92. func encodeVarintSignUp(dAtA []byte, offset int, v uint64) int {
  93. for v >= 1<<7 {
  94. dAtA[offset] = uint8(v&0x7f | 0x80)
  95. v >>= 7
  96. offset++
  97. }
  98. dAtA[offset] = uint8(v)
  99. return offset + 1
  100. }
  101. func (m *SignUp) Size() (n int) {
  102. var l int
  103. _ = l
  104. if m.Mid != 0 {
  105. n += 1 + sovSignUp(uint64(m.Mid))
  106. }
  107. if m.State != 0 {
  108. n += 1 + sovSignUp(uint64(m.State))
  109. }
  110. if m.BeginDate != 0 {
  111. n += 1 + sovSignUp(uint64(m.BeginDate))
  112. }
  113. if m.EndDate != 0 {
  114. n += 1 + sovSignUp(uint64(m.EndDate))
  115. }
  116. return n
  117. }
  118. func sovSignUp(x uint64) (n int) {
  119. for {
  120. n++
  121. x >>= 7
  122. if x == 0 {
  123. break
  124. }
  125. }
  126. return n
  127. }
  128. func sozSignUp(x uint64) (n int) {
  129. return sovSignUp(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  130. }
  131. func (m *SignUp) Unmarshal(dAtA []byte) error {
  132. l := len(dAtA)
  133. iNdEx := 0
  134. for iNdEx < l {
  135. preIndex := iNdEx
  136. var wire uint64
  137. for shift := uint(0); ; shift += 7 {
  138. if shift >= 64 {
  139. return ErrIntOverflowSignUp
  140. }
  141. if iNdEx >= l {
  142. return io.ErrUnexpectedEOF
  143. }
  144. b := dAtA[iNdEx]
  145. iNdEx++
  146. wire |= (uint64(b) & 0x7F) << shift
  147. if b < 0x80 {
  148. break
  149. }
  150. }
  151. fieldNum := int32(wire >> 3)
  152. wireType := int(wire & 0x7)
  153. if wireType == 4 {
  154. return fmt.Errorf("proto: SignUp: wiretype end group for non-group")
  155. }
  156. if fieldNum <= 0 {
  157. return fmt.Errorf("proto: SignUp: illegal tag %d (wire type %d)", fieldNum, wire)
  158. }
  159. switch fieldNum {
  160. case 1:
  161. if wireType != 0 {
  162. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  163. }
  164. m.Mid = 0
  165. for shift := uint(0); ; shift += 7 {
  166. if shift >= 64 {
  167. return ErrIntOverflowSignUp
  168. }
  169. if iNdEx >= l {
  170. return io.ErrUnexpectedEOF
  171. }
  172. b := dAtA[iNdEx]
  173. iNdEx++
  174. m.Mid |= (int64(b) & 0x7F) << shift
  175. if b < 0x80 {
  176. break
  177. }
  178. }
  179. case 2:
  180. if wireType != 0 {
  181. return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
  182. }
  183. m.State = 0
  184. for shift := uint(0); ; shift += 7 {
  185. if shift >= 64 {
  186. return ErrIntOverflowSignUp
  187. }
  188. if iNdEx >= l {
  189. return io.ErrUnexpectedEOF
  190. }
  191. b := dAtA[iNdEx]
  192. iNdEx++
  193. m.State |= (int32(b) & 0x7F) << shift
  194. if b < 0x80 {
  195. break
  196. }
  197. }
  198. case 3:
  199. if wireType != 0 {
  200. return fmt.Errorf("proto: wrong wireType = %d for field BeginDate", wireType)
  201. }
  202. m.BeginDate = 0
  203. for shift := uint(0); ; shift += 7 {
  204. if shift >= 64 {
  205. return ErrIntOverflowSignUp
  206. }
  207. if iNdEx >= l {
  208. return io.ErrUnexpectedEOF
  209. }
  210. b := dAtA[iNdEx]
  211. iNdEx++
  212. m.BeginDate |= (go_common_library_time.Time(b) & 0x7F) << shift
  213. if b < 0x80 {
  214. break
  215. }
  216. }
  217. case 4:
  218. if wireType != 0 {
  219. return fmt.Errorf("proto: wrong wireType = %d for field EndDate", wireType)
  220. }
  221. m.EndDate = 0
  222. for shift := uint(0); ; shift += 7 {
  223. if shift >= 64 {
  224. return ErrIntOverflowSignUp
  225. }
  226. if iNdEx >= l {
  227. return io.ErrUnexpectedEOF
  228. }
  229. b := dAtA[iNdEx]
  230. iNdEx++
  231. m.EndDate |= (go_common_library_time.Time(b) & 0x7F) << shift
  232. if b < 0x80 {
  233. break
  234. }
  235. }
  236. default:
  237. iNdEx = preIndex
  238. skippy, err := skipSignUp(dAtA[iNdEx:])
  239. if err != nil {
  240. return err
  241. }
  242. if skippy < 0 {
  243. return ErrInvalidLengthSignUp
  244. }
  245. if (iNdEx + skippy) > l {
  246. return io.ErrUnexpectedEOF
  247. }
  248. iNdEx += skippy
  249. }
  250. }
  251. if iNdEx > l {
  252. return io.ErrUnexpectedEOF
  253. }
  254. return nil
  255. }
  256. func skipSignUp(dAtA []byte) (n int, err error) {
  257. l := len(dAtA)
  258. iNdEx := 0
  259. for iNdEx < l {
  260. var wire uint64
  261. for shift := uint(0); ; shift += 7 {
  262. if shift >= 64 {
  263. return 0, ErrIntOverflowSignUp
  264. }
  265. if iNdEx >= l {
  266. return 0, io.ErrUnexpectedEOF
  267. }
  268. b := dAtA[iNdEx]
  269. iNdEx++
  270. wire |= (uint64(b) & 0x7F) << shift
  271. if b < 0x80 {
  272. break
  273. }
  274. }
  275. wireType := int(wire & 0x7)
  276. switch wireType {
  277. case 0:
  278. for shift := uint(0); ; shift += 7 {
  279. if shift >= 64 {
  280. return 0, ErrIntOverflowSignUp
  281. }
  282. if iNdEx >= l {
  283. return 0, io.ErrUnexpectedEOF
  284. }
  285. iNdEx++
  286. if dAtA[iNdEx-1] < 0x80 {
  287. break
  288. }
  289. }
  290. return iNdEx, nil
  291. case 1:
  292. iNdEx += 8
  293. return iNdEx, nil
  294. case 2:
  295. var length int
  296. for shift := uint(0); ; shift += 7 {
  297. if shift >= 64 {
  298. return 0, ErrIntOverflowSignUp
  299. }
  300. if iNdEx >= l {
  301. return 0, io.ErrUnexpectedEOF
  302. }
  303. b := dAtA[iNdEx]
  304. iNdEx++
  305. length |= (int(b) & 0x7F) << shift
  306. if b < 0x80 {
  307. break
  308. }
  309. }
  310. iNdEx += length
  311. if length < 0 {
  312. return 0, ErrInvalidLengthSignUp
  313. }
  314. return iNdEx, nil
  315. case 3:
  316. for {
  317. var innerWire uint64
  318. var start int = iNdEx
  319. for shift := uint(0); ; shift += 7 {
  320. if shift >= 64 {
  321. return 0, ErrIntOverflowSignUp
  322. }
  323. if iNdEx >= l {
  324. return 0, io.ErrUnexpectedEOF
  325. }
  326. b := dAtA[iNdEx]
  327. iNdEx++
  328. innerWire |= (uint64(b) & 0x7F) << shift
  329. if b < 0x80 {
  330. break
  331. }
  332. }
  333. innerWireType := int(innerWire & 0x7)
  334. if innerWireType == 4 {
  335. break
  336. }
  337. next, err := skipSignUp(dAtA[start:])
  338. if err != nil {
  339. return 0, err
  340. }
  341. iNdEx = start + next
  342. }
  343. return iNdEx, nil
  344. case 4:
  345. return iNdEx, nil
  346. case 5:
  347. iNdEx += 4
  348. return iNdEx, nil
  349. default:
  350. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  351. }
  352. }
  353. panic("unreachable")
  354. }
  355. var (
  356. ErrInvalidLengthSignUp = fmt.Errorf("proto: negative length found during unmarshaling")
  357. ErrIntOverflowSignUp = fmt.Errorf("proto: integer overflow")
  358. )
  359. func init() { proto.RegisterFile("app/service/main/up/api/v1/sign_up.proto", fileDescriptorSignUp) }
  360. var fileDescriptorSignUp = []byte{
  361. // 280 bytes of a gzipped FileDescriptorProto
  362. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x8f, 0xbf, 0x4a, 0xf4, 0x40,
  363. 0x14, 0xc5, 0x99, 0xcd, 0xb7, 0xbb, 0xdf, 0x4e, 0x25, 0x01, 0x61, 0x55, 0xc8, 0x2c, 0x56, 0x01,
  364. 0xc9, 0x0c, 0xc1, 0x37, 0x08, 0x6e, 0x25, 0x36, 0x59, 0x6d, 0x6c, 0x96, 0x49, 0x32, 0xce, 0x5e,
  365. 0x70, 0xfe, 0x90, 0x4c, 0x02, 0xbe, 0xa1, 0xa5, 0xa5, 0x55, 0x90, 0x94, 0x79, 0x04, 0x2b, 0xc9,
  366. 0xac, 0x62, 0x6b, 0x77, 0xcf, 0x8f, 0x73, 0x7e, 0x70, 0x71, 0xcc, 0xad, 0x65, 0x8d, 0xa8, 0x3b,
  367. 0x28, 0x05, 0x53, 0x1c, 0x34, 0x6b, 0x2d, 0xe3, 0x16, 0x58, 0x97, 0xb2, 0x06, 0xa4, 0xde, 0xb7,
  368. 0x96, 0xda, 0xda, 0x38, 0x13, 0x9e, 0xf2, 0xba, 0x3c, 0x40, 0x27, 0xe8, 0x77, 0x9b, 0xb6, 0x96,
  369. 0x76, 0xe9, 0x79, 0x22, 0xc1, 0x1d, 0xda, 0x82, 0x96, 0x46, 0x31, 0x69, 0xa4, 0x61, 0xbe, 0x5d,
  370. 0xb4, 0x4f, 0x3e, 0xf9, 0xe0, 0xaf, 0xa3, 0xe5, 0xf2, 0x1d, 0xe1, 0xc5, 0x0e, 0xa4, 0x7e, 0xb0,
  371. 0xe1, 0x19, 0x0e, 0xee, 0xa0, 0x5a, 0xa3, 0x0d, 0x8a, 0x83, 0x6c, 0x39, 0xf6, 0x24, 0x50, 0x50,
  372. 0xe5, 0x13, 0x0b, 0x09, 0x9e, 0xef, 0x1c, 0x77, 0x62, 0x3d, 0xdb, 0xa0, 0x78, 0x9e, 0xad, 0xc6,
  373. 0x9e, 0xcc, 0x9b, 0x09, 0xe4, 0x47, 0x1e, 0xde, 0xe2, 0x55, 0x26, 0x24, 0xe8, 0x9b, 0xa9, 0x14,
  374. 0x78, 0x43, 0x32, 0xf6, 0x04, 0x17, 0x13, 0xdc, 0x57, 0xdc, 0x89, 0xcf, 0x9e, 0x5c, 0x48, 0x93,
  375. 0x94, 0x46, 0x29, 0xa3, 0xd9, 0x33, 0x14, 0x35, 0xaf, 0x5f, 0x98, 0x03, 0x25, 0xe8, 0x3d, 0x28,
  376. 0x91, 0xff, 0xee, 0xc3, 0x2d, 0x5e, 0x6e, 0x75, 0xe5, 0x55, 0xff, 0xbc, 0xea, 0x6a, 0xec, 0xc9,
  377. 0x7f, 0xa1, 0xab, 0x3f, 0x89, 0x7e, 0xb6, 0xd9, 0xc9, 0xeb, 0x10, 0xa1, 0xb7, 0x21, 0x42, 0x1f,
  378. 0x43, 0x84, 0x1e, 0x67, 0x5d, 0x5a, 0x2c, 0xfc, 0xcf, 0xd7, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff,
  379. 0xae, 0xdc, 0x75, 0xf6, 0x65, 0x01, 0x00, 0x00,
  380. }