golang-im聊天
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

business.ext.pb.go 39 KiB

2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
2 anos atrás
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.20.0--rc1
  5. // source: business.ext.proto
  6. package pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  13. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  14. reflect "reflect"
  15. sync "sync"
  16. )
  17. const (
  18. // Verify that this generated code is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  20. // Verify that runtime/protoimpl is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  22. )
  23. type SignInReq struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. PhoneNumber string `protobuf:"bytes,1,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // 手机号
  28. Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // 验证码
  29. DeviceId int64 `protobuf:"varint,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id
  30. MasterId int64 `protobuf:"varint,4,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
  31. PushAlia string `protobuf:"varint,5,opt,name=push_alia,json=pushAlia,proto3" json:"push_alia,omitempty"` // 极光推送-别名
  32. }
  33. func (x *SignInReq) Reset() {
  34. *x = SignInReq{}
  35. if protoimpl.UnsafeEnabled {
  36. mi := &file_business_ext_proto_msgTypes[0]
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. ms.StoreMessageInfo(mi)
  39. }
  40. }
  41. func (x *SignInReq) String() string {
  42. return protoimpl.X.MessageStringOf(x)
  43. }
  44. func (*SignInReq) ProtoMessage() {}
  45. func (x *SignInReq) ProtoReflect() protoreflect.Message {
  46. mi := &file_business_ext_proto_msgTypes[0]
  47. if protoimpl.UnsafeEnabled && x != nil {
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. if ms.LoadMessageInfo() == nil {
  50. ms.StoreMessageInfo(mi)
  51. }
  52. return ms
  53. }
  54. return mi.MessageOf(x)
  55. }
  56. // Deprecated: Use SignInReq.ProtoReflect.Descriptor instead.
  57. func (*SignInReq) Descriptor() ([]byte, []int) {
  58. return file_business_ext_proto_rawDescGZIP(), []int{0}
  59. }
  60. func (x *SignInReq) GetPhoneNumber() string {
  61. if x != nil {
  62. return x.PhoneNumber
  63. }
  64. return ""
  65. }
  66. func (x *SignInReq) GetCode() string {
  67. if x != nil {
  68. return x.Code
  69. }
  70. return ""
  71. }
  72. func (x *SignInReq) GetDeviceId() int64 {
  73. if x != nil {
  74. return x.DeviceId
  75. }
  76. return 0
  77. }
  78. func (x *SignInReq) GetMasterId() int64 {
  79. if x != nil {
  80. return x.MasterId
  81. }
  82. return 0
  83. }
  84. type SignInResp struct {
  85. state protoimpl.MessageState
  86. sizeCache protoimpl.SizeCache
  87. unknownFields protoimpl.UnknownFields
  88. IsNew bool `protobuf:"varint,1,opt,name=is_new,json=isNew,proto3" json:"is_new,omitempty"` // 是否是新用户
  89. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  90. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // token
  91. MasterId int64 `protobuf:"varint,4,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 站长id
  92. }
  93. func (x *SignInResp) Reset() {
  94. *x = SignInResp{}
  95. if protoimpl.UnsafeEnabled {
  96. mi := &file_business_ext_proto_msgTypes[1]
  97. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  98. ms.StoreMessageInfo(mi)
  99. }
  100. }
  101. func (x *SignInResp) String() string {
  102. return protoimpl.X.MessageStringOf(x)
  103. }
  104. func (*SignInResp) ProtoMessage() {}
  105. func (x *SignInResp) ProtoReflect() protoreflect.Message {
  106. mi := &file_business_ext_proto_msgTypes[1]
  107. if protoimpl.UnsafeEnabled && x != nil {
  108. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  109. if ms.LoadMessageInfo() == nil {
  110. ms.StoreMessageInfo(mi)
  111. }
  112. return ms
  113. }
  114. return mi.MessageOf(x)
  115. }
  116. // Deprecated: Use SignInResp.ProtoReflect.Descriptor instead.
  117. func (*SignInResp) Descriptor() ([]byte, []int) {
  118. return file_business_ext_proto_rawDescGZIP(), []int{1}
  119. }
  120. func (x *SignInResp) GetIsNew() bool {
  121. if x != nil {
  122. return x.IsNew
  123. }
  124. return false
  125. }
  126. func (x *SignInResp) GetUserId() int64 {
  127. if x != nil {
  128. return x.UserId
  129. }
  130. return 0
  131. }
  132. func (x *SignInResp) GetToken() string {
  133. if x != nil {
  134. return x.Token
  135. }
  136. return ""
  137. }
  138. func (x *SignInResp) GetMasterId() int64 {
  139. if x != nil {
  140. return x.MasterId
  141. }
  142. return 0
  143. }
  144. type CloudUploadFileReq struct {
  145. state protoimpl.MessageState
  146. sizeCache protoimpl.SizeCache
  147. unknownFields protoimpl.UnknownFields
  148. Dir string `protobuf:"bytes,1,opt,name=dir,proto3" json:"dir,omitempty"` // 目录名
  149. FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // 上传原文件名称
  150. FileSize string `protobuf:"bytes,3,opt,name=file_size,json=fileSize,proto3" json:"file_size,omitempty"` // 文件大小
  151. }
  152. func (x *CloudUploadFileReq) Reset() {
  153. *x = CloudUploadFileReq{}
  154. if protoimpl.UnsafeEnabled {
  155. mi := &file_business_ext_proto_msgTypes[2]
  156. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  157. ms.StoreMessageInfo(mi)
  158. }
  159. }
  160. func (x *CloudUploadFileReq) String() string {
  161. return protoimpl.X.MessageStringOf(x)
  162. }
  163. func (*CloudUploadFileReq) ProtoMessage() {}
  164. func (x *CloudUploadFileReq) ProtoReflect() protoreflect.Message {
  165. mi := &file_business_ext_proto_msgTypes[2]
  166. if protoimpl.UnsafeEnabled && x != nil {
  167. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  168. if ms.LoadMessageInfo() == nil {
  169. ms.StoreMessageInfo(mi)
  170. }
  171. return ms
  172. }
  173. return mi.MessageOf(x)
  174. }
  175. // Deprecated: Use CloudUploadFileReq.ProtoReflect.Descriptor instead.
  176. func (*CloudUploadFileReq) Descriptor() ([]byte, []int) {
  177. return file_business_ext_proto_rawDescGZIP(), []int{2}
  178. }
  179. func (x *CloudUploadFileReq) GetDir() string {
  180. if x != nil {
  181. return x.Dir
  182. }
  183. return ""
  184. }
  185. func (x *CloudUploadFileReq) GetFileName() string {
  186. if x != nil {
  187. return x.FileName
  188. }
  189. return ""
  190. }
  191. func (x *CloudUploadFileReq) GetFileSize() string {
  192. if x != nil {
  193. return x.FileSize
  194. }
  195. return ""
  196. }
  197. type CloudUploadFileResp struct {
  198. state protoimpl.MessageState
  199. sizeCache protoimpl.SizeCache
  200. unknownFields protoimpl.UnknownFields
  201. Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` // 请求方式
  202. Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` // 域名
  203. Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // key
  204. Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // token
  205. }
  206. func (x *CloudUploadFileResp) Reset() {
  207. *x = CloudUploadFileResp{}
  208. if protoimpl.UnsafeEnabled {
  209. mi := &file_business_ext_proto_msgTypes[3]
  210. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  211. ms.StoreMessageInfo(mi)
  212. }
  213. }
  214. func (x *CloudUploadFileResp) String() string {
  215. return protoimpl.X.MessageStringOf(x)
  216. }
  217. func (*CloudUploadFileResp) ProtoMessage() {}
  218. func (x *CloudUploadFileResp) ProtoReflect() protoreflect.Message {
  219. mi := &file_business_ext_proto_msgTypes[3]
  220. if protoimpl.UnsafeEnabled && x != nil {
  221. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  222. if ms.LoadMessageInfo() == nil {
  223. ms.StoreMessageInfo(mi)
  224. }
  225. return ms
  226. }
  227. return mi.MessageOf(x)
  228. }
  229. // Deprecated: Use CloudUploadFileResp.ProtoReflect.Descriptor instead.
  230. func (*CloudUploadFileResp) Descriptor() ([]byte, []int) {
  231. return file_business_ext_proto_rawDescGZIP(), []int{3}
  232. }
  233. func (x *CloudUploadFileResp) GetMethod() string {
  234. if x != nil {
  235. return x.Method
  236. }
  237. return ""
  238. }
  239. func (x *CloudUploadFileResp) GetHost() string {
  240. if x != nil {
  241. return x.Host
  242. }
  243. return ""
  244. }
  245. func (x *CloudUploadFileResp) GetKey() string {
  246. if x != nil {
  247. return x.Key
  248. }
  249. return ""
  250. }
  251. func (x *CloudUploadFileResp) GetToken() string {
  252. if x != nil {
  253. return x.Token
  254. }
  255. return ""
  256. }
  257. type User struct {
  258. state protoimpl.MessageState
  259. sizeCache protoimpl.SizeCache
  260. unknownFields protoimpl.UnknownFields
  261. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  262. Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
  263. Sex int32 `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"` // 性别
  264. AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像地址
  265. Extra string `protobuf:"bytes,5,opt,name=extra,proto3" json:"extra,omitempty"` // 附加字段
  266. CreateTime int64 `protobuf:"varint,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 创建时间
  267. UpdateTime int64 `protobuf:"varint,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // 更新时间
  268. MasterId int64 `protobuf:"varint,8,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` // 更新时间
  269. }
  270. func (x *User) Reset() {
  271. *x = User{}
  272. if protoimpl.UnsafeEnabled {
  273. mi := &file_business_ext_proto_msgTypes[4]
  274. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  275. ms.StoreMessageInfo(mi)
  276. }
  277. }
  278. func (x *User) String() string {
  279. return protoimpl.X.MessageStringOf(x)
  280. }
  281. func (*User) ProtoMessage() {}
  282. func (x *User) ProtoReflect() protoreflect.Message {
  283. mi := &file_business_ext_proto_msgTypes[4]
  284. if protoimpl.UnsafeEnabled && x != nil {
  285. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  286. if ms.LoadMessageInfo() == nil {
  287. ms.StoreMessageInfo(mi)
  288. }
  289. return ms
  290. }
  291. return mi.MessageOf(x)
  292. }
  293. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  294. func (*User) Descriptor() ([]byte, []int) {
  295. return file_business_ext_proto_rawDescGZIP(), []int{4}
  296. }
  297. func (x *User) GetUserId() int64 {
  298. if x != nil {
  299. return x.UserId
  300. }
  301. return 0
  302. }
  303. func (x *User) GetNickname() string {
  304. if x != nil {
  305. return x.Nickname
  306. }
  307. return ""
  308. }
  309. func (x *User) GetSex() int32 {
  310. if x != nil {
  311. return x.Sex
  312. }
  313. return 0
  314. }
  315. func (x *User) GetAvatarUrl() string {
  316. if x != nil {
  317. return x.AvatarUrl
  318. }
  319. return ""
  320. }
  321. func (x *User) GetExtra() string {
  322. if x != nil {
  323. return x.Extra
  324. }
  325. return ""
  326. }
  327. func (x *User) GetCreateTime() int64 {
  328. if x != nil {
  329. return x.CreateTime
  330. }
  331. return 0
  332. }
  333. func (x *User) GetUpdateTime() int64 {
  334. if x != nil {
  335. return x.UpdateTime
  336. }
  337. return 0
  338. }
  339. func (x *User) GetMasterId() int64 {
  340. if x != nil {
  341. return x.MasterId
  342. }
  343. return 0
  344. }
  345. type GetUserReq struct {
  346. state protoimpl.MessageState
  347. sizeCache protoimpl.SizeCache
  348. unknownFields protoimpl.UnknownFields
  349. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
  350. }
  351. func (x *GetUserReq) Reset() {
  352. *x = GetUserReq{}
  353. if protoimpl.UnsafeEnabled {
  354. mi := &file_business_ext_proto_msgTypes[5]
  355. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  356. ms.StoreMessageInfo(mi)
  357. }
  358. }
  359. func (x *GetUserReq) String() string {
  360. return protoimpl.X.MessageStringOf(x)
  361. }
  362. func (*GetUserReq) ProtoMessage() {}
  363. func (x *GetUserReq) ProtoReflect() protoreflect.Message {
  364. mi := &file_business_ext_proto_msgTypes[5]
  365. if protoimpl.UnsafeEnabled && x != nil {
  366. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  367. if ms.LoadMessageInfo() == nil {
  368. ms.StoreMessageInfo(mi)
  369. }
  370. return ms
  371. }
  372. return mi.MessageOf(x)
  373. }
  374. // Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.
  375. func (*GetUserReq) Descriptor() ([]byte, []int) {
  376. return file_business_ext_proto_rawDescGZIP(), []int{5}
  377. }
  378. func (x *GetUserReq) GetUserId() int64 {
  379. if x != nil {
  380. return x.UserId
  381. }
  382. return 0
  383. }
  384. type GetUserResp struct {
  385. state protoimpl.MessageState
  386. sizeCache protoimpl.SizeCache
  387. unknownFields protoimpl.UnknownFields
  388. User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // 用户信息
  389. }
  390. func (x *GetUserResp) Reset() {
  391. *x = GetUserResp{}
  392. if protoimpl.UnsafeEnabled {
  393. mi := &file_business_ext_proto_msgTypes[6]
  394. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  395. ms.StoreMessageInfo(mi)
  396. }
  397. }
  398. func (x *GetUserResp) String() string {
  399. return protoimpl.X.MessageStringOf(x)
  400. }
  401. func (*GetUserResp) ProtoMessage() {}
  402. func (x *GetUserResp) ProtoReflect() protoreflect.Message {
  403. mi := &file_business_ext_proto_msgTypes[6]
  404. if protoimpl.UnsafeEnabled && x != nil {
  405. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  406. if ms.LoadMessageInfo() == nil {
  407. ms.StoreMessageInfo(mi)
  408. }
  409. return ms
  410. }
  411. return mi.MessageOf(x)
  412. }
  413. // Deprecated: Use GetUserResp.ProtoReflect.Descriptor instead.
  414. func (*GetUserResp) Descriptor() ([]byte, []int) {
  415. return file_business_ext_proto_rawDescGZIP(), []int{6}
  416. }
  417. func (x *GetUserResp) GetUser() *User {
  418. if x != nil {
  419. return x.User
  420. }
  421. return nil
  422. }
  423. type UpdateUserReq struct {
  424. state protoimpl.MessageState
  425. sizeCache protoimpl.SizeCache
  426. unknownFields protoimpl.UnknownFields
  427. Nickname string `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
  428. Sex int32 `protobuf:"varint,2,opt,name=sex,proto3" json:"sex,omitempty"` // 性别
  429. AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像地址
  430. Extra string `protobuf:"bytes,4,opt,name=extra,proto3" json:"extra,omitempty"` // 附加字段
  431. }
  432. func (x *UpdateUserReq) Reset() {
  433. *x = UpdateUserReq{}
  434. if protoimpl.UnsafeEnabled {
  435. mi := &file_business_ext_proto_msgTypes[7]
  436. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  437. ms.StoreMessageInfo(mi)
  438. }
  439. }
  440. func (x *UpdateUserReq) String() string {
  441. return protoimpl.X.MessageStringOf(x)
  442. }
  443. func (*UpdateUserReq) ProtoMessage() {}
  444. func (x *UpdateUserReq) ProtoReflect() protoreflect.Message {
  445. mi := &file_business_ext_proto_msgTypes[7]
  446. if protoimpl.UnsafeEnabled && x != nil {
  447. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  448. if ms.LoadMessageInfo() == nil {
  449. ms.StoreMessageInfo(mi)
  450. }
  451. return ms
  452. }
  453. return mi.MessageOf(x)
  454. }
  455. // Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.
  456. func (*UpdateUserReq) Descriptor() ([]byte, []int) {
  457. return file_business_ext_proto_rawDescGZIP(), []int{7}
  458. }
  459. func (x *UpdateUserReq) GetNickname() string {
  460. if x != nil {
  461. return x.Nickname
  462. }
  463. return ""
  464. }
  465. func (x *UpdateUserReq) GetSex() int32 {
  466. if x != nil {
  467. return x.Sex
  468. }
  469. return 0
  470. }
  471. func (x *UpdateUserReq) GetAvatarUrl() string {
  472. if x != nil {
  473. return x.AvatarUrl
  474. }
  475. return ""
  476. }
  477. func (x *UpdateUserReq) GetExtra() string {
  478. if x != nil {
  479. return x.Extra
  480. }
  481. return ""
  482. }
  483. type SearchUserReq struct {
  484. state protoimpl.MessageState
  485. sizeCache protoimpl.SizeCache
  486. unknownFields protoimpl.UnknownFields
  487. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  488. MasterId int64 `protobuf:"varint,2,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"`
  489. }
  490. func (x *SearchUserReq) Reset() {
  491. *x = SearchUserReq{}
  492. if protoimpl.UnsafeEnabled {
  493. mi := &file_business_ext_proto_msgTypes[8]
  494. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  495. ms.StoreMessageInfo(mi)
  496. }
  497. }
  498. func (x *SearchUserReq) String() string {
  499. return protoimpl.X.MessageStringOf(x)
  500. }
  501. func (*SearchUserReq) ProtoMessage() {}
  502. func (x *SearchUserReq) ProtoReflect() protoreflect.Message {
  503. mi := &file_business_ext_proto_msgTypes[8]
  504. if protoimpl.UnsafeEnabled && x != nil {
  505. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  506. if ms.LoadMessageInfo() == nil {
  507. ms.StoreMessageInfo(mi)
  508. }
  509. return ms
  510. }
  511. return mi.MessageOf(x)
  512. }
  513. // Deprecated: Use SearchUserReq.ProtoReflect.Descriptor instead.
  514. func (*SearchUserReq) Descriptor() ([]byte, []int) {
  515. return file_business_ext_proto_rawDescGZIP(), []int{8}
  516. }
  517. func (x *SearchUserReq) GetKey() string {
  518. if x != nil {
  519. return x.Key
  520. }
  521. return ""
  522. }
  523. func (x *SearchUserReq) GetMasterId() int64 {
  524. if x != nil {
  525. return x.MasterId
  526. }
  527. return 0
  528. }
  529. type SearchUserResp struct {
  530. state protoimpl.MessageState
  531. sizeCache protoimpl.SizeCache
  532. unknownFields protoimpl.UnknownFields
  533. Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  534. }
  535. func (x *SearchUserResp) Reset() {
  536. *x = SearchUserResp{}
  537. if protoimpl.UnsafeEnabled {
  538. mi := &file_business_ext_proto_msgTypes[9]
  539. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  540. ms.StoreMessageInfo(mi)
  541. }
  542. }
  543. func (x *SearchUserResp) String() string {
  544. return protoimpl.X.MessageStringOf(x)
  545. }
  546. func (*SearchUserResp) ProtoMessage() {}
  547. func (x *SearchUserResp) ProtoReflect() protoreflect.Message {
  548. mi := &file_business_ext_proto_msgTypes[9]
  549. if protoimpl.UnsafeEnabled && x != nil {
  550. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  551. if ms.LoadMessageInfo() == nil {
  552. ms.StoreMessageInfo(mi)
  553. }
  554. return ms
  555. }
  556. return mi.MessageOf(x)
  557. }
  558. // Deprecated: Use SearchUserResp.ProtoReflect.Descriptor instead.
  559. func (*SearchUserResp) Descriptor() ([]byte, []int) {
  560. return file_business_ext_proto_rawDescGZIP(), []int{9}
  561. }
  562. func (x *SearchUserResp) GetUsers() []*User {
  563. if x != nil {
  564. return x.Users
  565. }
  566. return nil
  567. }
  568. var File_business_ext_proto protoreflect.FileDescriptor
  569. var file_business_ext_proto_rawDesc = []byte{
  570. 0x0a, 0x12, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70,
  571. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  572. 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7c, 0x0a, 0x09, 0x53, 0x69,
  573. 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65,
  574. 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70,
  575. 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
  576. 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1b,
  577. 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  578. 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6d,
  579. 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
  580. 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x6f, 0x0a, 0x0a, 0x53, 0x69, 0x67, 0x6e,
  581. 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f, 0x6e, 0x65, 0x77,
  582. 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x4e, 0x65, 0x77, 0x12, 0x17, 0x0a,
  583. 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  584. 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
  585. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09,
  586. 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
  587. 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x60, 0x0a, 0x12, 0x43, 0x6c, 0x6f,
  588. 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12,
  589. 0x10, 0x0a, 0x03, 0x64, 0x69, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69,
  590. 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  591. 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b,
  592. 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  593. 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x69, 0x0a, 0x13, 0x43,
  594. 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65,
  595. 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01,
  596. 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f,
  597. 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x10,
  598. 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,
  599. 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  600. 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe1, 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12,
  601. 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  602. 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b,
  603. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b,
  604. 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28,
  605. 0x05, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
  606. 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74,
  607. 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x05,
  608. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x63,
  609. 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03,
  610. 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b,
  611. 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
  612. 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a,
  613. 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03,
  614. 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x25, 0x0a, 0x0a, 0x47, 0x65,
  615. 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72,
  616. 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  617. 0x64, 0x22, 0x2b, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
  618. 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08,
  619. 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x72,
  620. 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12,
  621. 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  622. 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73,
  623. 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1d, 0x0a,
  624. 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
  625. 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05,
  626. 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74,
  627. 0x72, 0x61, 0x22, 0x3e, 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72,
  628. 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  629. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f,
  630. 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72,
  631. 0x49, 0x64, 0x22, 0x30, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55, 0x73, 0x65, 0x72,
  632. 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20,
  633. 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x75,
  634. 0x73, 0x65, 0x72, 0x73, 0x32, 0x87, 0x02, 0x0a, 0x0b, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73,
  635. 0x73, 0x45, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x12, 0x0d,
  636. 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e,
  637. 0x70, 0x62, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a,
  638. 0x07, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65,
  639. 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65,
  640. 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x0a, 0x55, 0x70, 0x64,
  641. 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64,
  642. 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e,
  643. 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x33, 0x0a, 0x0a, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55,
  644. 0x73, 0x65, 0x72, 0x12, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x55,
  645. 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x61, 0x72,
  646. 0x63, 0x68, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x42, 0x0a, 0x0f, 0x43, 0x6c,
  647. 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x2e,
  648. 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69,
  649. 0x6c, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64,
  650. 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d,
  651. 0x5a, 0x0b, 0x67, 0x69, 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70,
  652. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  653. }
  654. var (
  655. file_business_ext_proto_rawDescOnce sync.Once
  656. file_business_ext_proto_rawDescData = file_business_ext_proto_rawDesc
  657. )
  658. func file_business_ext_proto_rawDescGZIP() []byte {
  659. file_business_ext_proto_rawDescOnce.Do(func() {
  660. file_business_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_business_ext_proto_rawDescData)
  661. })
  662. return file_business_ext_proto_rawDescData
  663. }
  664. var file_business_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  665. var file_business_ext_proto_goTypes = []interface{}{
  666. (*SignInReq)(nil), // 0: pb.SignInReq
  667. (*SignInResp)(nil), // 1: pb.SignInResp
  668. (*CloudUploadFileReq)(nil), // 2: pb.CloudUploadFileReq
  669. (*CloudUploadFileResp)(nil), // 3: pb.CloudUploadFileResp
  670. (*User)(nil), // 4: pb.User
  671. (*GetUserReq)(nil), // 5: pb.GetUserReq
  672. (*GetUserResp)(nil), // 6: pb.GetUserResp
  673. (*UpdateUserReq)(nil), // 7: pb.UpdateUserReq
  674. (*SearchUserReq)(nil), // 8: pb.SearchUserReq
  675. (*SearchUserResp)(nil), // 9: pb.SearchUserResp
  676. (*Empty)(nil), // 10: pb.Empty
  677. }
  678. var file_business_ext_proto_depIdxs = []int32{
  679. 4, // 0: pb.GetUserResp.user:type_name -> pb.User
  680. 4, // 1: pb.SearchUserResp.users:type_name -> pb.User
  681. 0, // 2: pb.BusinessExt.SignIn:input_type -> pb.SignInReq
  682. 5, // 3: pb.BusinessExt.GetUser:input_type -> pb.GetUserReq
  683. 7, // 4: pb.BusinessExt.UpdateUser:input_type -> pb.UpdateUserReq
  684. 8, // 5: pb.BusinessExt.SearchUser:input_type -> pb.SearchUserReq
  685. 2, // 6: pb.BusinessExt.CloudUploadFile:input_type -> pb.CloudUploadFileReq
  686. 1, // 7: pb.BusinessExt.SignIn:output_type -> pb.SignInResp
  687. 6, // 8: pb.BusinessExt.GetUser:output_type -> pb.GetUserResp
  688. 10, // 9: pb.BusinessExt.UpdateUser:output_type -> pb.Empty
  689. 9, // 10: pb.BusinessExt.SearchUser:output_type -> pb.SearchUserResp
  690. 3, // 11: pb.BusinessExt.CloudUploadFile:output_type -> pb.CloudUploadFileResp
  691. 7, // [7:12] is the sub-list for method output_type
  692. 2, // [2:7] is the sub-list for method input_type
  693. 2, // [2:2] is the sub-list for extension type_name
  694. 2, // [2:2] is the sub-list for extension extendee
  695. 0, // [0:2] is the sub-list for field type_name
  696. }
  697. func init() { file_business_ext_proto_init() }
  698. func file_business_ext_proto_init() {
  699. if File_business_ext_proto != nil {
  700. return
  701. }
  702. file_common_ext_proto_init()
  703. if !protoimpl.UnsafeEnabled {
  704. file_business_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  705. switch v := v.(*SignInReq); i {
  706. case 0:
  707. return &v.state
  708. case 1:
  709. return &v.sizeCache
  710. case 2:
  711. return &v.unknownFields
  712. default:
  713. return nil
  714. }
  715. }
  716. file_business_ext_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  717. switch v := v.(*SignInResp); i {
  718. case 0:
  719. return &v.state
  720. case 1:
  721. return &v.sizeCache
  722. case 2:
  723. return &v.unknownFields
  724. default:
  725. return nil
  726. }
  727. }
  728. file_business_ext_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  729. switch v := v.(*CloudUploadFileReq); i {
  730. case 0:
  731. return &v.state
  732. case 1:
  733. return &v.sizeCache
  734. case 2:
  735. return &v.unknownFields
  736. default:
  737. return nil
  738. }
  739. }
  740. file_business_ext_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  741. switch v := v.(*CloudUploadFileResp); i {
  742. case 0:
  743. return &v.state
  744. case 1:
  745. return &v.sizeCache
  746. case 2:
  747. return &v.unknownFields
  748. default:
  749. return nil
  750. }
  751. }
  752. file_business_ext_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  753. switch v := v.(*User); i {
  754. case 0:
  755. return &v.state
  756. case 1:
  757. return &v.sizeCache
  758. case 2:
  759. return &v.unknownFields
  760. default:
  761. return nil
  762. }
  763. }
  764. file_business_ext_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  765. switch v := v.(*GetUserReq); i {
  766. case 0:
  767. return &v.state
  768. case 1:
  769. return &v.sizeCache
  770. case 2:
  771. return &v.unknownFields
  772. default:
  773. return nil
  774. }
  775. }
  776. file_business_ext_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  777. switch v := v.(*GetUserResp); i {
  778. case 0:
  779. return &v.state
  780. case 1:
  781. return &v.sizeCache
  782. case 2:
  783. return &v.unknownFields
  784. default:
  785. return nil
  786. }
  787. }
  788. file_business_ext_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  789. switch v := v.(*UpdateUserReq); i {
  790. case 0:
  791. return &v.state
  792. case 1:
  793. return &v.sizeCache
  794. case 2:
  795. return &v.unknownFields
  796. default:
  797. return nil
  798. }
  799. }
  800. file_business_ext_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  801. switch v := v.(*SearchUserReq); i {
  802. case 0:
  803. return &v.state
  804. case 1:
  805. return &v.sizeCache
  806. case 2:
  807. return &v.unknownFields
  808. default:
  809. return nil
  810. }
  811. }
  812. file_business_ext_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  813. switch v := v.(*SearchUserResp); i {
  814. case 0:
  815. return &v.state
  816. case 1:
  817. return &v.sizeCache
  818. case 2:
  819. return &v.unknownFields
  820. default:
  821. return nil
  822. }
  823. }
  824. }
  825. type x struct{}
  826. out := protoimpl.TypeBuilder{
  827. File: protoimpl.DescBuilder{
  828. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  829. RawDescriptor: file_business_ext_proto_rawDesc,
  830. NumEnums: 0,
  831. NumMessages: 10,
  832. NumExtensions: 0,
  833. NumServices: 1,
  834. },
  835. GoTypes: file_business_ext_proto_goTypes,
  836. DependencyIndexes: file_business_ext_proto_depIdxs,
  837. MessageInfos: file_business_ext_proto_msgTypes,
  838. }.Build()
  839. File_business_ext_proto = out.File
  840. file_business_ext_proto_rawDesc = nil
  841. file_business_ext_proto_goTypes = nil
  842. file_business_ext_proto_depIdxs = nil
  843. }
  844. // This is a compile-time assertion to ensure that this generated file
  845. // is compatible with the grpc package it is being compiled against.
  846. // Requires gRPC-Go v1.32.0 or later.
  847. const _ = grpc.SupportPackageIsVersion7
  848. // BusinessExtClient is the client API for BusinessExt service.
  849. //
  850. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  851. type BusinessExtClient interface {
  852. // 登录
  853. SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error)
  854. // 获取用户信息
  855. GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error)
  856. // 更新用户信息
  857. UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Empty, error)
  858. // 搜索用户(这里简单数据库实现,生产环境建议使用ES)
  859. SearchUser(ctx context.Context, in *SearchUserReq, opts ...grpc.CallOption) (*SearchUserResp, error)
  860. // 上传文件至云端
  861. CloudUploadFile(ctx context.Context, in *CloudUploadFileReq, opts ...grpc.CallOption) (*CloudUploadFileResp, error)
  862. }
  863. type businessExtClient struct {
  864. cc grpc.ClientConnInterface
  865. }
  866. func NewBusinessExtClient(cc grpc.ClientConnInterface) BusinessExtClient {
  867. return &businessExtClient{cc}
  868. }
  869. func (c *businessExtClient) SignIn(ctx context.Context, in *SignInReq, opts ...grpc.CallOption) (*SignInResp, error) {
  870. out := new(SignInResp)
  871. err := c.cc.Invoke(ctx, "/pb.BusinessExt/SignIn", in, out, opts...)
  872. if err != nil {
  873. return nil, err
  874. }
  875. return out, nil
  876. }
  877. func (c *businessExtClient) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error) {
  878. out := new(GetUserResp)
  879. err := c.cc.Invoke(ctx, "/pb.BusinessExt/GetUser", in, out, opts...)
  880. if err != nil {
  881. return nil, err
  882. }
  883. return out, nil
  884. }
  885. func (c *businessExtClient) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Empty, error) {
  886. out := new(Empty)
  887. err := c.cc.Invoke(ctx, "/pb.BusinessExt/UpdateUser", in, out, opts...)
  888. if err != nil {
  889. return nil, err
  890. }
  891. return out, nil
  892. }
  893. func (c *businessExtClient) SearchUser(ctx context.Context, in *SearchUserReq, opts ...grpc.CallOption) (*SearchUserResp, error) {
  894. out := new(SearchUserResp)
  895. err := c.cc.Invoke(ctx, "/pb.BusinessExt/SearchUser", in, out, opts...)
  896. if err != nil {
  897. return nil, err
  898. }
  899. return out, nil
  900. }
  901. func (c *businessExtClient) CloudUploadFile(ctx context.Context, in *CloudUploadFileReq, opts ...grpc.CallOption) (*CloudUploadFileResp, error) {
  902. out := new(CloudUploadFileResp)
  903. err := c.cc.Invoke(ctx, "/pb.BusinessExt/CloudUploadFile", in, out, opts...)
  904. if err != nil {
  905. return nil, err
  906. }
  907. return out, nil
  908. }
  909. // BusinessExtServer is the server API for BusinessExt service.
  910. // All implementations must embed UnimplementedBusinessExtServer
  911. // for forward compatibility
  912. type BusinessExtServer interface {
  913. // 登录
  914. SignIn(context.Context, *SignInReq) (*SignInResp, error)
  915. // 获取用户信息
  916. GetUser(context.Context, *GetUserReq) (*GetUserResp, error)
  917. // 更新用户信息
  918. UpdateUser(context.Context, *UpdateUserReq) (*Empty, error)
  919. // 搜索用户(这里简单数据库实现,生产环境建议使用ES)
  920. SearchUser(context.Context, *SearchUserReq) (*SearchUserResp, error)
  921. // 上传文件至云端
  922. CloudUploadFile(context.Context, *CloudUploadFileReq) (*CloudUploadFileResp, error)
  923. }
  924. // UnimplementedBusinessExtServer must be embedded to have forward compatible implementations.
  925. type UnimplementedBusinessExtServer struct {
  926. }
  927. func (UnimplementedBusinessExtServer) SignIn(context.Context, *SignInReq) (*SignInResp, error) {
  928. return nil, status.Errorf(codes.Unimplemented, "method SignIn not implemented")
  929. }
  930. func (UnimplementedBusinessExtServer) GetUser(context.Context, *GetUserReq) (*GetUserResp, error) {
  931. return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
  932. }
  933. func (UnimplementedBusinessExtServer) UpdateUser(context.Context, *UpdateUserReq) (*Empty, error) {
  934. return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented")
  935. }
  936. func (UnimplementedBusinessExtServer) SearchUser(context.Context, *SearchUserReq) (*SearchUserResp, error) {
  937. return nil, status.Errorf(codes.Unimplemented, "method SearchUser not implemented")
  938. }
  939. func (UnimplementedBusinessExtServer) CloudUploadFile(context.Context, *CloudUploadFileReq) (*CloudUploadFileResp, error) {
  940. return nil, status.Errorf(codes.Unimplemented, "method CloudUploadFile not implemented")
  941. }
  942. func RegisterBusinessExtServer(s grpc.ServiceRegistrar, srv BusinessExtServer) {
  943. s.RegisterService(&BusinessExt_ServiceDesc, srv)
  944. }
  945. func _BusinessExt_SignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  946. in := new(SignInReq)
  947. if err := dec(in); err != nil {
  948. return nil, err
  949. }
  950. if interceptor == nil {
  951. return srv.(BusinessExtServer).SignIn(ctx, in)
  952. }
  953. info := &grpc.UnaryServerInfo{
  954. Server: srv,
  955. FullMethod: "/pb.BusinessExt/SignIn",
  956. }
  957. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  958. return srv.(BusinessExtServer).SignIn(ctx, req.(*SignInReq))
  959. }
  960. return interceptor(ctx, in, info, handler)
  961. }
  962. func _BusinessExt_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  963. in := new(GetUserReq)
  964. if err := dec(in); err != nil {
  965. return nil, err
  966. }
  967. if interceptor == nil {
  968. return srv.(BusinessExtServer).GetUser(ctx, in)
  969. }
  970. info := &grpc.UnaryServerInfo{
  971. Server: srv,
  972. FullMethod: "/pb.BusinessExt/GetUser",
  973. }
  974. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  975. return srv.(BusinessExtServer).GetUser(ctx, req.(*GetUserReq))
  976. }
  977. return interceptor(ctx, in, info, handler)
  978. }
  979. func _BusinessExt_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  980. in := new(UpdateUserReq)
  981. if err := dec(in); err != nil {
  982. return nil, err
  983. }
  984. if interceptor == nil {
  985. return srv.(BusinessExtServer).UpdateUser(ctx, in)
  986. }
  987. info := &grpc.UnaryServerInfo{
  988. Server: srv,
  989. FullMethod: "/pb.BusinessExt/UpdateUser",
  990. }
  991. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  992. return srv.(BusinessExtServer).UpdateUser(ctx, req.(*UpdateUserReq))
  993. }
  994. return interceptor(ctx, in, info, handler)
  995. }
  996. func _BusinessExt_SearchUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  997. in := new(SearchUserReq)
  998. if err := dec(in); err != nil {
  999. return nil, err
  1000. }
  1001. if interceptor == nil {
  1002. return srv.(BusinessExtServer).SearchUser(ctx, in)
  1003. }
  1004. info := &grpc.UnaryServerInfo{
  1005. Server: srv,
  1006. FullMethod: "/pb.BusinessExt/SearchUser",
  1007. }
  1008. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1009. return srv.(BusinessExtServer).SearchUser(ctx, req.(*SearchUserReq))
  1010. }
  1011. return interceptor(ctx, in, info, handler)
  1012. }
  1013. func _BusinessExt_CloudUploadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1014. in := new(CloudUploadFileReq)
  1015. if err := dec(in); err != nil {
  1016. return nil, err
  1017. }
  1018. if interceptor == nil {
  1019. return srv.(BusinessExtServer).CloudUploadFile(ctx, in)
  1020. }
  1021. info := &grpc.UnaryServerInfo{
  1022. Server: srv,
  1023. FullMethod: "/pb.BusinessExt/CloudUploadFile",
  1024. }
  1025. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1026. return srv.(BusinessExtServer).CloudUploadFile(ctx, req.(*CloudUploadFileReq))
  1027. }
  1028. return interceptor(ctx, in, info, handler)
  1029. }
  1030. // BusinessExt_ServiceDesc is the grpc.ServiceDesc for BusinessExt service.
  1031. // It's only intended for direct use with grpc.RegisterService,
  1032. // and not to be introspected or modified (even as a copy)
  1033. var BusinessExt_ServiceDesc = grpc.ServiceDesc{
  1034. ServiceName: "pb.BusinessExt",
  1035. HandlerType: (*BusinessExtServer)(nil),
  1036. Methods: []grpc.MethodDesc{
  1037. {
  1038. MethodName: "SignIn",
  1039. Handler: _BusinessExt_SignIn_Handler,
  1040. },
  1041. {
  1042. MethodName: "GetUser",
  1043. Handler: _BusinessExt_GetUser_Handler,
  1044. },
  1045. {
  1046. MethodName: "UpdateUser",
  1047. Handler: _BusinessExt_UpdateUser_Handler,
  1048. },
  1049. {
  1050. MethodName: "SearchUser",
  1051. Handler: _BusinessExt_SearchUser_Handler,
  1052. },
  1053. {
  1054. MethodName: "CloudUploadFile",
  1055. Handler: _BusinessExt_CloudUploadFile_Handler,
  1056. },
  1057. },
  1058. Streams: []grpc.StreamDesc{},
  1059. Metadata: "business.ext.proto",
  1060. }