partner.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0-devel
  4. // protoc v3.15.8
  5. // source: partner.proto
  6. package partner
  7. import (
  8. base "git.ikuban.com/server/pw-protobuf/api/base"
  9. _ "google.golang.org/genproto/googleapis/api/annotations"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. emptypb "google.golang.org/protobuf/types/known/emptypb"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. const (
  17. // Verify that this generated code is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  19. // Verify that runtime/protoimpl is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  21. )
  22. type PartnerCircleInfo struct {
  23. state protoimpl.MessageState
  24. sizeCache protoimpl.SizeCache
  25. unknownFields protoimpl.UnknownFields
  26. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` // id
  27. Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` // 昵称
  28. AvatarUrl string `protobuf:"bytes,3,opt,name=avatarUrl,proto3" json:"avatarUrl"` // 头像链接
  29. Sex int64 `protobuf:"varint,4,opt,name=sex,proto3" json:"sex"` // 性别
  30. Picture []string `protobuf:"bytes,5,rep,name=picture,proto3" json:"picture"` // 图片
  31. }
  32. func (x *PartnerCircleInfo) Reset() {
  33. *x = PartnerCircleInfo{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_partner_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *PartnerCircleInfo) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*PartnerCircleInfo) ProtoMessage() {}
  44. func (x *PartnerCircleInfo) ProtoReflect() protoreflect.Message {
  45. mi := &file_partner_proto_msgTypes[0]
  46. if protoimpl.UnsafeEnabled && x != nil {
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. if ms.LoadMessageInfo() == nil {
  49. ms.StoreMessageInfo(mi)
  50. }
  51. return ms
  52. }
  53. return mi.MessageOf(x)
  54. }
  55. // Deprecated: Use PartnerCircleInfo.ProtoReflect.Descriptor instead.
  56. func (*PartnerCircleInfo) Descriptor() ([]byte, []int) {
  57. return file_partner_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *PartnerCircleInfo) GetId() string {
  60. if x != nil {
  61. return x.Id
  62. }
  63. return ""
  64. }
  65. func (x *PartnerCircleInfo) GetNickname() string {
  66. if x != nil {
  67. return x.Nickname
  68. }
  69. return ""
  70. }
  71. func (x *PartnerCircleInfo) GetAvatarUrl() string {
  72. if x != nil {
  73. return x.AvatarUrl
  74. }
  75. return ""
  76. }
  77. func (x *PartnerCircleInfo) GetSex() int64 {
  78. if x != nil {
  79. return x.Sex
  80. }
  81. return 0
  82. }
  83. func (x *PartnerCircleInfo) GetPicture() []string {
  84. if x != nil {
  85. return x.Picture
  86. }
  87. return nil
  88. }
  89. type PartnerInfo struct {
  90. state protoimpl.MessageState
  91. sizeCache protoimpl.SizeCache
  92. unknownFields protoimpl.UnknownFields
  93. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` // id
  94. Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname"` // 昵称
  95. AvatarUrl string `protobuf:"bytes,3,opt,name=avatarUrl,proto3" json:"avatarUrl"` // 头像链接
  96. Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone"` // 手机号
  97. Sex int64 `protobuf:"varint,5,opt,name=sex,proto3" json:"sex"` // 性别
  98. Credit int64 `protobuf:"varint,6,opt,name=credit,proto3" json:"credit"` // 积分
  99. }
  100. func (x *PartnerInfo) Reset() {
  101. *x = PartnerInfo{}
  102. if protoimpl.UnsafeEnabled {
  103. mi := &file_partner_proto_msgTypes[1]
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. ms.StoreMessageInfo(mi)
  106. }
  107. }
  108. func (x *PartnerInfo) String() string {
  109. return protoimpl.X.MessageStringOf(x)
  110. }
  111. func (*PartnerInfo) ProtoMessage() {}
  112. func (x *PartnerInfo) ProtoReflect() protoreflect.Message {
  113. mi := &file_partner_proto_msgTypes[1]
  114. if protoimpl.UnsafeEnabled && x != nil {
  115. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  116. if ms.LoadMessageInfo() == nil {
  117. ms.StoreMessageInfo(mi)
  118. }
  119. return ms
  120. }
  121. return mi.MessageOf(x)
  122. }
  123. // Deprecated: Use PartnerInfo.ProtoReflect.Descriptor instead.
  124. func (*PartnerInfo) Descriptor() ([]byte, []int) {
  125. return file_partner_proto_rawDescGZIP(), []int{1}
  126. }
  127. func (x *PartnerInfo) GetId() string {
  128. if x != nil {
  129. return x.Id
  130. }
  131. return ""
  132. }
  133. func (x *PartnerInfo) GetNickname() string {
  134. if x != nil {
  135. return x.Nickname
  136. }
  137. return ""
  138. }
  139. func (x *PartnerInfo) GetAvatarUrl() string {
  140. if x != nil {
  141. return x.AvatarUrl
  142. }
  143. return ""
  144. }
  145. func (x *PartnerInfo) GetPhone() string {
  146. if x != nil {
  147. return x.Phone
  148. }
  149. return ""
  150. }
  151. func (x *PartnerInfo) GetSex() int64 {
  152. if x != nil {
  153. return x.Sex
  154. }
  155. return 0
  156. }
  157. func (x *PartnerInfo) GetCredit() int64 {
  158. if x != nil {
  159. return x.Credit
  160. }
  161. return 0
  162. }
  163. var File_partner_proto protoreflect.FileDescriptor
  164. var file_partner_proto_rawDesc = []byte{
  165. 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  166. 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x1a, 0x1c, 0x67, 0x6f,
  167. 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74,
  168. 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67,
  169. 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74,
  170. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x73,
  171. 0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a,
  172. 0x11, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e,
  173. 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
  174. 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  175. 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c,
  176. 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
  177. 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03,
  178. 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x18,
  179. 0x0a, 0x07, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52,
  180. 0x07, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x0b, 0x50, 0x61, 0x72,
  181. 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  182. 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b,
  183. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b,
  184. 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72,
  185. 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55,
  186. 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
  187. 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18,
  188. 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72,
  189. 0x65, 0x64, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x72, 0x65, 0x64,
  190. 0x69, 0x74, 0x32, 0xe2, 0x01, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x60,
  191. 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f,
  192. 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  193. 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70,
  194. 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e,
  195. 0x66, 0x6f, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69,
  196. 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a,
  197. 0x12, 0x75, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69,
  198. 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62,
  199. 0x61, 0x73, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x50, 0x61, 0x72,
  200. 0x61, 0x6d, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72,
  201. 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x43, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x49, 0x6e,
  202. 0x66, 0x6f, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69,
  203. 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x63, 0x69, 0x72, 0x63, 0x6c, 0x65, 0x2f,
  204. 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70,
  205. 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b,
  206. 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f,
  207. 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f,
  208. 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x3b, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x62,
  209. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  210. }
  211. var (
  212. file_partner_proto_rawDescOnce sync.Once
  213. file_partner_proto_rawDescData = file_partner_proto_rawDesc
  214. )
  215. func file_partner_proto_rawDescGZIP() []byte {
  216. file_partner_proto_rawDescOnce.Do(func() {
  217. file_partner_proto_rawDescData = protoimpl.X.CompressGZIP(file_partner_proto_rawDescData)
  218. })
  219. return file_partner_proto_rawDescData
  220. }
  221. var file_partner_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  222. var file_partner_proto_goTypes = []interface{}{
  223. (*PartnerCircleInfo)(nil), // 0: api.partner.PartnerCircleInfo
  224. (*PartnerInfo)(nil), // 1: api.partner.PartnerInfo
  225. (*emptypb.Empty)(nil), // 2: google.protobuf.Empty
  226. (*base.PartnerIDParam)(nil), // 3: api.base.PartnerIDParam
  227. }
  228. var file_partner_proto_depIdxs = []int32{
  229. 2, // 0: api.partner.Partner.GetPartnerInfo:input_type -> google.protobuf.Empty
  230. 3, // 1: api.partner.Partner.GetPartnerCircleInfo:input_type -> api.base.PartnerIDParam
  231. 1, // 2: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
  232. 0, // 3: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.partner.PartnerCircleInfo
  233. 2, // [2:4] is the sub-list for method output_type
  234. 0, // [0:2] is the sub-list for method input_type
  235. 0, // [0:0] is the sub-list for extension type_name
  236. 0, // [0:0] is the sub-list for extension extendee
  237. 0, // [0:0] is the sub-list for field type_name
  238. }
  239. func init() { file_partner_proto_init() }
  240. func file_partner_proto_init() {
  241. if File_partner_proto != nil {
  242. return
  243. }
  244. if !protoimpl.UnsafeEnabled {
  245. file_partner_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  246. switch v := v.(*PartnerCircleInfo); i {
  247. case 0:
  248. return &v.state
  249. case 1:
  250. return &v.sizeCache
  251. case 2:
  252. return &v.unknownFields
  253. default:
  254. return nil
  255. }
  256. }
  257. file_partner_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  258. switch v := v.(*PartnerInfo); i {
  259. case 0:
  260. return &v.state
  261. case 1:
  262. return &v.sizeCache
  263. case 2:
  264. return &v.unknownFields
  265. default:
  266. return nil
  267. }
  268. }
  269. }
  270. type x struct{}
  271. out := protoimpl.TypeBuilder{
  272. File: protoimpl.DescBuilder{
  273. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  274. RawDescriptor: file_partner_proto_rawDesc,
  275. NumEnums: 0,
  276. NumMessages: 2,
  277. NumExtensions: 0,
  278. NumServices: 1,
  279. },
  280. GoTypes: file_partner_proto_goTypes,
  281. DependencyIndexes: file_partner_proto_depIdxs,
  282. MessageInfos: file_partner_proto_msgTypes,
  283. }.Build()
  284. File_partner_proto = out.File
  285. file_partner_proto_rawDesc = nil
  286. file_partner_proto_goTypes = nil
  287. file_partner_proto_depIdxs = nil
  288. }