golang-im聊天
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1190 regels
39 KiB

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