附近小店
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

im.business.int.pb.go 20 KiB

2ヶ月前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  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: im.business.int.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 MasterAuthReq struct {
  24. state protoimpl.MessageState
  25. sizeCache protoimpl.SizeCache
  26. unknownFields protoimpl.UnknownFields
  27. MasterId string `protobuf:"bytes,1,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"`
  28. }
  29. func (x *MasterAuthReq) Reset() {
  30. *x = MasterAuthReq{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_business_int_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *MasterAuthReq) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*MasterAuthReq) ProtoMessage() {}
  41. func (x *MasterAuthReq) ProtoReflect() protoreflect.Message {
  42. mi := &file_business_int_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use MasterAuthReq.ProtoReflect.Descriptor instead.
  53. func (*MasterAuthReq) Descriptor() ([]byte, []int) {
  54. return file_business_int_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *MasterAuthReq) GetMasterId() string {
  57. if x != nil {
  58. return x.MasterId
  59. }
  60. return ""
  61. }
  62. type AuthReq struct {
  63. state protoimpl.MessageState
  64. sizeCache protoimpl.SizeCache
  65. unknownFields protoimpl.UnknownFields
  66. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  67. DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
  68. Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
  69. }
  70. func (x *AuthReq) Reset() {
  71. *x = AuthReq{}
  72. if protoimpl.UnsafeEnabled {
  73. mi := &file_business_int_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. }
  78. func (x *AuthReq) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*AuthReq) ProtoMessage() {}
  82. func (x *AuthReq) ProtoReflect() protoreflect.Message {
  83. mi := &file_business_int_proto_msgTypes[1]
  84. if protoimpl.UnsafeEnabled && x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use AuthReq.ProtoReflect.Descriptor instead.
  94. func (*AuthReq) Descriptor() ([]byte, []int) {
  95. return file_business_int_proto_rawDescGZIP(), []int{1}
  96. }
  97. func (x *AuthReq) GetUserId() int64 {
  98. if x != nil {
  99. return x.UserId
  100. }
  101. return 0
  102. }
  103. func (x *AuthReq) GetDeviceId() int64 {
  104. if x != nil {
  105. return x.DeviceId
  106. }
  107. return 0
  108. }
  109. func (x *AuthReq) GetToken() string {
  110. if x != nil {
  111. return x.Token
  112. }
  113. return ""
  114. }
  115. type GetUsersReq struct {
  116. state protoimpl.MessageState
  117. sizeCache protoimpl.SizeCache
  118. unknownFields protoimpl.UnknownFields
  119. UserIds map[int64]int32 `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 用户id
  120. }
  121. func (x *GetUsersReq) Reset() {
  122. *x = GetUsersReq{}
  123. if protoimpl.UnsafeEnabled {
  124. mi := &file_business_int_proto_msgTypes[2]
  125. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  126. ms.StoreMessageInfo(mi)
  127. }
  128. }
  129. func (x *GetUsersReq) String() string {
  130. return protoimpl.X.MessageStringOf(x)
  131. }
  132. func (*GetUsersReq) ProtoMessage() {}
  133. func (x *GetUsersReq) ProtoReflect() protoreflect.Message {
  134. mi := &file_business_int_proto_msgTypes[2]
  135. if protoimpl.UnsafeEnabled && x != nil {
  136. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  137. if ms.LoadMessageInfo() == nil {
  138. ms.StoreMessageInfo(mi)
  139. }
  140. return ms
  141. }
  142. return mi.MessageOf(x)
  143. }
  144. // Deprecated: Use GetUsersReq.ProtoReflect.Descriptor instead.
  145. func (*GetUsersReq) Descriptor() ([]byte, []int) {
  146. return file_business_int_proto_rawDescGZIP(), []int{2}
  147. }
  148. func (x *GetUsersReq) GetUserIds() map[int64]int32 {
  149. if x != nil {
  150. return x.UserIds
  151. }
  152. return nil
  153. }
  154. type GetUsersResp struct {
  155. state protoimpl.MessageState
  156. sizeCache protoimpl.SizeCache
  157. unknownFields protoimpl.UnknownFields
  158. Users map[int64]*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 用户信息
  159. }
  160. func (x *GetUsersResp) Reset() {
  161. *x = GetUsersResp{}
  162. if protoimpl.UnsafeEnabled {
  163. mi := &file_business_int_proto_msgTypes[3]
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. ms.StoreMessageInfo(mi)
  166. }
  167. }
  168. func (x *GetUsersResp) String() string {
  169. return protoimpl.X.MessageStringOf(x)
  170. }
  171. func (*GetUsersResp) ProtoMessage() {}
  172. func (x *GetUsersResp) ProtoReflect() protoreflect.Message {
  173. mi := &file_business_int_proto_msgTypes[3]
  174. if protoimpl.UnsafeEnabled && x != nil {
  175. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  176. if ms.LoadMessageInfo() == nil {
  177. ms.StoreMessageInfo(mi)
  178. }
  179. return ms
  180. }
  181. return mi.MessageOf(x)
  182. }
  183. // Deprecated: Use GetUsersResp.ProtoReflect.Descriptor instead.
  184. func (*GetUsersResp) Descriptor() ([]byte, []int) {
  185. return file_business_int_proto_rawDescGZIP(), []int{3}
  186. }
  187. func (x *GetUsersResp) GetUsers() map[int64]*User {
  188. if x != nil {
  189. return x.Users
  190. }
  191. return nil
  192. }
  193. var File_business_int_proto protoreflect.FileDescriptor
  194. var file_business_int_proto_rawDesc = []byte{
  195. 0x0a, 0x12, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x2e, 0x70,
  196. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  197. 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x62, 0x75, 0x73, 0x69,
  198. 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c,
  199. 0x0a, 0x0d, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12,
  200. 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  201. 0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x55, 0x0a, 0x07,
  202. 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f,
  203. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  204. 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
  205. 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a,
  206. 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,
  207. 0x6b, 0x65, 0x6e, 0x22, 0x82, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73,
  208. 0x52, 0x65, 0x71, 0x12, 0x37, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18,
  209. 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73,
  210. 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x45, 0x6e,
  211. 0x74, 0x72, 0x79, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x1a, 0x3a, 0x0a, 0x0c,
  212. 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
  213. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
  214. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76,
  215. 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x85, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74,
  216. 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x31, 0x0a, 0x05, 0x75, 0x73, 0x65,
  217. 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65,
  218. 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x73,
  219. 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x42, 0x0a, 0x0a,
  220. 0x55, 0x73, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
  221. 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x05,
  222. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62,
  223. 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
  224. 0x32, 0xb4, 0x01, 0x0a, 0x0b, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x74,
  225. 0x12, 0x2a, 0x0a, 0x0a, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11,
  226. 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
  227. 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x04,
  228. 0x41, 0x75, 0x74, 0x68, 0x12, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
  229. 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x2a, 0x0a, 0x07,
  230. 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74,
  231. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74,
  232. 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x55,
  233. 0x73, 0x65, 0x72, 0x73, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65,
  234. 0x72, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73,
  235. 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69, 0x6d, 0x2f, 0x70,
  236. 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  237. }
  238. var (
  239. file_business_int_proto_rawDescOnce sync.Once
  240. file_business_int_proto_rawDescData = file_business_int_proto_rawDesc
  241. )
  242. func file_business_int_proto_rawDescGZIP() []byte {
  243. file_business_int_proto_rawDescOnce.Do(func() {
  244. file_business_int_proto_rawDescData = protoimpl.X.CompressGZIP(file_business_int_proto_rawDescData)
  245. })
  246. return file_business_int_proto_rawDescData
  247. }
  248. var file_business_int_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  249. var file_business_int_proto_goTypes = []interface{}{
  250. (*MasterAuthReq)(nil), // 0: pb.MasterAuthReq
  251. (*AuthReq)(nil), // 1: pb.AuthReq
  252. (*GetUsersReq)(nil), // 2: pb.GetUsersReq
  253. (*GetUsersResp)(nil), // 3: pb.GetUsersResp
  254. nil, // 4: pb.GetUsersReq.UserIdsEntry
  255. nil, // 5: pb.GetUsersResp.UsersEntry
  256. (*User)(nil), // 6: pb.User
  257. (*GetUserReq)(nil), // 7: pb.GetUserReq
  258. (*Empty)(nil), // 8: pb.Empty
  259. (*GetUserResp)(nil), // 9: pb.GetUserResp
  260. }
  261. var file_business_int_proto_depIdxs = []int32{
  262. 4, // 0: pb.GetUsersReq.user_ids:type_name -> pb.GetUsersReq.UserIdsEntry
  263. 5, // 1: pb.GetUsersResp.users:type_name -> pb.GetUsersResp.UsersEntry
  264. 6, // 2: pb.GetUsersResp.UsersEntry.value:type_name -> pb.User
  265. 0, // 3: pb.BusinessInt.MasterAuth:input_type -> pb.MasterAuthReq
  266. 1, // 4: pb.BusinessInt.Auth:input_type -> pb.AuthReq
  267. 7, // 5: pb.BusinessInt.GetUser:input_type -> pb.GetUserReq
  268. 2, // 6: pb.BusinessInt.GetUsers:input_type -> pb.GetUsersReq
  269. 8, // 7: pb.BusinessInt.MasterAuth:output_type -> pb.Empty
  270. 8, // 8: pb.BusinessInt.Auth:output_type -> pb.Empty
  271. 9, // 9: pb.BusinessInt.GetUser:output_type -> pb.GetUserResp
  272. 3, // 10: pb.BusinessInt.GetUsers:output_type -> pb.GetUsersResp
  273. 7, // [7:11] is the sub-list for method output_type
  274. 3, // [3:7] is the sub-list for method input_type
  275. 3, // [3:3] is the sub-list for extension type_name
  276. 3, // [3:3] is the sub-list for extension extendee
  277. 0, // [0:3] is the sub-list for field type_name
  278. }
  279. func init() { file_business_int_proto_init() }
  280. func file_business_int_proto_init() {
  281. if File_business_int_proto != nil {
  282. return
  283. }
  284. file_common_ext_proto_init()
  285. file_business_ext_proto_init()
  286. if !protoimpl.UnsafeEnabled {
  287. file_business_int_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  288. switch v := v.(*MasterAuthReq); i {
  289. case 0:
  290. return &v.state
  291. case 1:
  292. return &v.sizeCache
  293. case 2:
  294. return &v.unknownFields
  295. default:
  296. return nil
  297. }
  298. }
  299. file_business_int_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  300. switch v := v.(*AuthReq); i {
  301. case 0:
  302. return &v.state
  303. case 1:
  304. return &v.sizeCache
  305. case 2:
  306. return &v.unknownFields
  307. default:
  308. return nil
  309. }
  310. }
  311. file_business_int_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  312. switch v := v.(*GetUsersReq); i {
  313. case 0:
  314. return &v.state
  315. case 1:
  316. return &v.sizeCache
  317. case 2:
  318. return &v.unknownFields
  319. default:
  320. return nil
  321. }
  322. }
  323. file_business_int_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  324. switch v := v.(*GetUsersResp); i {
  325. case 0:
  326. return &v.state
  327. case 1:
  328. return &v.sizeCache
  329. case 2:
  330. return &v.unknownFields
  331. default:
  332. return nil
  333. }
  334. }
  335. }
  336. type x struct{}
  337. out := protoimpl.TypeBuilder{
  338. File: protoimpl.DescBuilder{
  339. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  340. RawDescriptor: file_business_int_proto_rawDesc,
  341. NumEnums: 0,
  342. NumMessages: 6,
  343. NumExtensions: 0,
  344. NumServices: 1,
  345. },
  346. GoTypes: file_business_int_proto_goTypes,
  347. DependencyIndexes: file_business_int_proto_depIdxs,
  348. MessageInfos: file_business_int_proto_msgTypes,
  349. }.Build()
  350. File_business_int_proto = out.File
  351. file_business_int_proto_rawDesc = nil
  352. file_business_int_proto_goTypes = nil
  353. file_business_int_proto_depIdxs = nil
  354. }
  355. // This is a compile-time assertion to ensure that this generated file
  356. // is compatible with the grpc package it is being compiled against.
  357. // Requires gRPC-Go v1.32.0 or later.
  358. const _ = grpc.SupportPackageIsVersion7
  359. // BusinessIntClient is the client API for BusinessInt service.
  360. //
  361. // 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.
  362. type BusinessIntClient interface {
  363. // 站长权限校验
  364. MasterAuth(ctx context.Context, in *MasterAuthReq, opts ...grpc.CallOption) (*Empty, error)
  365. // 权限校验
  366. Auth(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*Empty, error)
  367. // 批量获取用户信息
  368. GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error)
  369. // 批量获取用户信息
  370. GetUsers(ctx context.Context, in *GetUsersReq, opts ...grpc.CallOption) (*GetUsersResp, error)
  371. }
  372. type businessIntClient struct {
  373. cc grpc.ClientConnInterface
  374. }
  375. func NewBusinessIntClient(cc grpc.ClientConnInterface) BusinessIntClient {
  376. return &businessIntClient{cc}
  377. }
  378. func (c *businessIntClient) MasterAuth(ctx context.Context, in *MasterAuthReq, opts ...grpc.CallOption) (*Empty, error) {
  379. out := new(Empty)
  380. err := c.cc.Invoke(ctx, "/pb.BusinessInt/MasterAuth", in, out, opts...)
  381. if err != nil {
  382. return nil, err
  383. }
  384. return out, nil
  385. }
  386. func (c *businessIntClient) Auth(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*Empty, error) {
  387. out := new(Empty)
  388. err := c.cc.Invoke(ctx, "/pb.BusinessInt/Auth", in, out, opts...)
  389. if err != nil {
  390. return nil, err
  391. }
  392. return out, nil
  393. }
  394. func (c *businessIntClient) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error) {
  395. out := new(GetUserResp)
  396. err := c.cc.Invoke(ctx, "/pb.BusinessInt/GetUser", in, out, opts...)
  397. if err != nil {
  398. return nil, err
  399. }
  400. return out, nil
  401. }
  402. func (c *businessIntClient) GetUsers(ctx context.Context, in *GetUsersReq, opts ...grpc.CallOption) (*GetUsersResp, error) {
  403. out := new(GetUsersResp)
  404. err := c.cc.Invoke(ctx, "/pb.BusinessInt/GetUsers", in, out, opts...)
  405. if err != nil {
  406. return nil, err
  407. }
  408. return out, nil
  409. }
  410. // BusinessIntServer is the server API for BusinessInt service.
  411. // All implementations must embed UnimplementedBusinessIntServer
  412. // for forward compatibility
  413. type BusinessIntServer interface {
  414. // 站长权限校验
  415. MasterAuth(context.Context, *MasterAuthReq) (*Empty, error)
  416. // 权限校验
  417. Auth(context.Context, *AuthReq) (*Empty, error)
  418. // 批量获取用户信息
  419. GetUser(context.Context, *GetUserReq) (*GetUserResp, error)
  420. // 批量获取用户信息
  421. GetUsers(context.Context, *GetUsersReq) (*GetUsersResp, error)
  422. }
  423. // UnimplementedBusinessIntServer must be embedded to have forward compatible implementations.
  424. type UnimplementedBusinessIntServer struct {
  425. }
  426. func (UnimplementedBusinessIntServer) MasterAuth(context.Context, *MasterAuthReq) (*Empty, error) {
  427. return nil, status.Errorf(codes.Unimplemented, "method MasterAuth not implemented")
  428. }
  429. func (UnimplementedBusinessIntServer) Auth(context.Context, *AuthReq) (*Empty, error) {
  430. return nil, status.Errorf(codes.Unimplemented, "method Auth not implemented")
  431. }
  432. func (UnimplementedBusinessIntServer) GetUser(context.Context, *GetUserReq) (*GetUserResp, error) {
  433. return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
  434. }
  435. func (UnimplementedBusinessIntServer) GetUsers(context.Context, *GetUsersReq) (*GetUsersResp, error) {
  436. return nil, status.Errorf(codes.Unimplemented, "method GetUsers not implemented")
  437. }
  438. func RegisterBusinessIntServer(s grpc.ServiceRegistrar, srv BusinessIntServer) {
  439. s.RegisterService(&BusinessInt_ServiceDesc, srv)
  440. }
  441. func _BusinessInt_MasterAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  442. in := new(MasterAuthReq)
  443. if err := dec(in); err != nil {
  444. return nil, err
  445. }
  446. if interceptor == nil {
  447. return srv.(BusinessIntServer).MasterAuth(ctx, in)
  448. }
  449. info := &grpc.UnaryServerInfo{
  450. Server: srv,
  451. FullMethod: "/pb.BusinessInt/MasterAuth",
  452. }
  453. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  454. return srv.(BusinessIntServer).MasterAuth(ctx, req.(*MasterAuthReq))
  455. }
  456. return interceptor(ctx, in, info, handler)
  457. }
  458. func _BusinessInt_Auth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  459. in := new(AuthReq)
  460. if err := dec(in); err != nil {
  461. return nil, err
  462. }
  463. if interceptor == nil {
  464. return srv.(BusinessIntServer).Auth(ctx, in)
  465. }
  466. info := &grpc.UnaryServerInfo{
  467. Server: srv,
  468. FullMethod: "/pb.BusinessInt/Auth",
  469. }
  470. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  471. return srv.(BusinessIntServer).Auth(ctx, req.(*AuthReq))
  472. }
  473. return interceptor(ctx, in, info, handler)
  474. }
  475. func _BusinessInt_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  476. in := new(GetUserReq)
  477. if err := dec(in); err != nil {
  478. return nil, err
  479. }
  480. if interceptor == nil {
  481. return srv.(BusinessIntServer).GetUser(ctx, in)
  482. }
  483. info := &grpc.UnaryServerInfo{
  484. Server: srv,
  485. FullMethod: "/pb.BusinessInt/GetUser",
  486. }
  487. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  488. return srv.(BusinessIntServer).GetUser(ctx, req.(*GetUserReq))
  489. }
  490. return interceptor(ctx, in, info, handler)
  491. }
  492. func _BusinessInt_GetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  493. in := new(GetUsersReq)
  494. if err := dec(in); err != nil {
  495. return nil, err
  496. }
  497. if interceptor == nil {
  498. return srv.(BusinessIntServer).GetUsers(ctx, in)
  499. }
  500. info := &grpc.UnaryServerInfo{
  501. Server: srv,
  502. FullMethod: "/pb.BusinessInt/GetUsers",
  503. }
  504. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  505. return srv.(BusinessIntServer).GetUsers(ctx, req.(*GetUsersReq))
  506. }
  507. return interceptor(ctx, in, info, handler)
  508. }
  509. // BusinessInt_ServiceDesc is the grpc.ServiceDesc for BusinessInt service.
  510. // It's only intended for direct use with grpc.RegisterService,
  511. // and not to be introspected or modified (even as a copy)
  512. var BusinessInt_ServiceDesc = grpc.ServiceDesc{
  513. ServiceName: "pb.BusinessInt",
  514. HandlerType: (*BusinessIntServer)(nil),
  515. Methods: []grpc.MethodDesc{
  516. {
  517. MethodName: "MasterAuth",
  518. Handler: _BusinessInt_MasterAuth_Handler,
  519. },
  520. {
  521. MethodName: "Auth",
  522. Handler: _BusinessInt_Auth_Handler,
  523. },
  524. {
  525. MethodName: "GetUser",
  526. Handler: _BusinessInt_GetUser_Handler,
  527. },
  528. {
  529. MethodName: "GetUsers",
  530. Handler: _BusinessInt_GetUsers_Handler,
  531. },
  532. },
  533. Streams: []grpc.StreamDesc{},
  534. Metadata: "im.business.int.proto",
  535. }