userCenter_grpc.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.19.4
  5. // source: userCenter.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. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // UserCenterClient is the client API for UserCenter service.
  18. //
  19. // 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.
  20. type UserCenterClient interface {
  21. //企业认证
  22. EntAuth(ctx context.Context, in *EntAuthReq, opts ...grpc.CallOption) (*EntAuthResp, error)
  23. //机构审核
  24. EntExamine(ctx context.Context, in *ExamineReq, opts ...grpc.CallOption) (*ExamineResp, error)
  25. //企业列表
  26. EntList(ctx context.Context, in *EntListReq, opts ...grpc.CallOption) (*EntListResp, error)
  27. //审核列表
  28. ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error)
  29. //查看企业状态
  30. CheckEnt(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*CheckEntResp, error)
  31. //查看企业详情
  32. EntInfo(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*EntInfoResp, error)
  33. // 冻结/解冻企业
  34. EntUpdate(ctx context.Context, in *EntUpdateReq, opts ...grpc.CallOption) (*ExamineResp, error)
  35. //查看审核详情
  36. ExamineInfo(ctx context.Context, in *CheckExamineReq, opts ...grpc.CallOption) (*EntInfoResp, error)
  37. //根据统一社会信用代码查询企业状态
  38. GetStatusByCode(ctx context.Context, in *GetStatusByCodeReq, opts ...grpc.CallOption) (*GetStatusByCodeResp, error)
  39. }
  40. type userCenterClient struct {
  41. cc grpc.ClientConnInterface
  42. }
  43. func NewUserCenterClient(cc grpc.ClientConnInterface) UserCenterClient {
  44. return &userCenterClient{cc}
  45. }
  46. func (c *userCenterClient) EntAuth(ctx context.Context, in *EntAuthReq, opts ...grpc.CallOption) (*EntAuthResp, error) {
  47. out := new(EntAuthResp)
  48. err := c.cc.Invoke(ctx, "/UserCenter/EntAuth", in, out, opts...)
  49. if err != nil {
  50. return nil, err
  51. }
  52. return out, nil
  53. }
  54. func (c *userCenterClient) EntExamine(ctx context.Context, in *ExamineReq, opts ...grpc.CallOption) (*ExamineResp, error) {
  55. out := new(ExamineResp)
  56. err := c.cc.Invoke(ctx, "/UserCenter/EntExamine", in, out, opts...)
  57. if err != nil {
  58. return nil, err
  59. }
  60. return out, nil
  61. }
  62. func (c *userCenterClient) EntList(ctx context.Context, in *EntListReq, opts ...grpc.CallOption) (*EntListResp, error) {
  63. out := new(EntListResp)
  64. err := c.cc.Invoke(ctx, "/UserCenter/EntList", in, out, opts...)
  65. if err != nil {
  66. return nil, err
  67. }
  68. return out, nil
  69. }
  70. func (c *userCenterClient) ExamineList(ctx context.Context, in *ExamineListReq, opts ...grpc.CallOption) (*ExamineListResp, error) {
  71. out := new(ExamineListResp)
  72. err := c.cc.Invoke(ctx, "/UserCenter/ExamineList", in, out, opts...)
  73. if err != nil {
  74. return nil, err
  75. }
  76. return out, nil
  77. }
  78. func (c *userCenterClient) CheckEnt(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*CheckEntResp, error) {
  79. out := new(CheckEntResp)
  80. err := c.cc.Invoke(ctx, "/UserCenter/CheckEnt", in, out, opts...)
  81. if err != nil {
  82. return nil, err
  83. }
  84. return out, nil
  85. }
  86. func (c *userCenterClient) EntInfo(ctx context.Context, in *CheckEntReq, opts ...grpc.CallOption) (*EntInfoResp, error) {
  87. out := new(EntInfoResp)
  88. err := c.cc.Invoke(ctx, "/UserCenter/EntInfo", in, out, opts...)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return out, nil
  93. }
  94. func (c *userCenterClient) EntUpdate(ctx context.Context, in *EntUpdateReq, opts ...grpc.CallOption) (*ExamineResp, error) {
  95. out := new(ExamineResp)
  96. err := c.cc.Invoke(ctx, "/UserCenter/EntUpdate", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *userCenterClient) ExamineInfo(ctx context.Context, in *CheckExamineReq, opts ...grpc.CallOption) (*EntInfoResp, error) {
  103. out := new(EntInfoResp)
  104. err := c.cc.Invoke(ctx, "/UserCenter/ExamineInfo", in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. func (c *userCenterClient) GetStatusByCode(ctx context.Context, in *GetStatusByCodeReq, opts ...grpc.CallOption) (*GetStatusByCodeResp, error) {
  111. out := new(GetStatusByCodeResp)
  112. err := c.cc.Invoke(ctx, "/UserCenter/GetStatusByCode", in, out, opts...)
  113. if err != nil {
  114. return nil, err
  115. }
  116. return out, nil
  117. }
  118. // UserCenterServer is the server API for UserCenter service.
  119. // All implementations must embed UnimplementedUserCenterServer
  120. // for forward compatibility
  121. type UserCenterServer interface {
  122. //企业认证
  123. EntAuth(context.Context, *EntAuthReq) (*EntAuthResp, error)
  124. //机构审核
  125. EntExamine(context.Context, *ExamineReq) (*ExamineResp, error)
  126. //企业列表
  127. EntList(context.Context, *EntListReq) (*EntListResp, error)
  128. //审核列表
  129. ExamineList(context.Context, *ExamineListReq) (*ExamineListResp, error)
  130. //查看企业状态
  131. CheckEnt(context.Context, *CheckEntReq) (*CheckEntResp, error)
  132. //查看企业详情
  133. EntInfo(context.Context, *CheckEntReq) (*EntInfoResp, error)
  134. // 冻结/解冻企业
  135. EntUpdate(context.Context, *EntUpdateReq) (*ExamineResp, error)
  136. //查看审核详情
  137. ExamineInfo(context.Context, *CheckExamineReq) (*EntInfoResp, error)
  138. //根据统一社会信用代码查询企业状态
  139. GetStatusByCode(context.Context, *GetStatusByCodeReq) (*GetStatusByCodeResp, error)
  140. mustEmbedUnimplementedUserCenterServer()
  141. }
  142. // UnimplementedUserCenterServer must be embedded to have forward compatible implementations.
  143. type UnimplementedUserCenterServer struct {
  144. }
  145. func (UnimplementedUserCenterServer) EntAuth(context.Context, *EntAuthReq) (*EntAuthResp, error) {
  146. return nil, status.Errorf(codes.Unimplemented, "method EntAuth not implemented")
  147. }
  148. func (UnimplementedUserCenterServer) EntExamine(context.Context, *ExamineReq) (*ExamineResp, error) {
  149. return nil, status.Errorf(codes.Unimplemented, "method EntExamine not implemented")
  150. }
  151. func (UnimplementedUserCenterServer) EntList(context.Context, *EntListReq) (*EntListResp, error) {
  152. return nil, status.Errorf(codes.Unimplemented, "method EntList not implemented")
  153. }
  154. func (UnimplementedUserCenterServer) ExamineList(context.Context, *ExamineListReq) (*ExamineListResp, error) {
  155. return nil, status.Errorf(codes.Unimplemented, "method ExamineList not implemented")
  156. }
  157. func (UnimplementedUserCenterServer) CheckEnt(context.Context, *CheckEntReq) (*CheckEntResp, error) {
  158. return nil, status.Errorf(codes.Unimplemented, "method CheckEnt not implemented")
  159. }
  160. func (UnimplementedUserCenterServer) EntInfo(context.Context, *CheckEntReq) (*EntInfoResp, error) {
  161. return nil, status.Errorf(codes.Unimplemented, "method EntInfo not implemented")
  162. }
  163. func (UnimplementedUserCenterServer) EntUpdate(context.Context, *EntUpdateReq) (*ExamineResp, error) {
  164. return nil, status.Errorf(codes.Unimplemented, "method EntUpdate not implemented")
  165. }
  166. func (UnimplementedUserCenterServer) ExamineInfo(context.Context, *CheckExamineReq) (*EntInfoResp, error) {
  167. return nil, status.Errorf(codes.Unimplemented, "method ExamineInfo not implemented")
  168. }
  169. func (UnimplementedUserCenterServer) GetStatusByCode(context.Context, *GetStatusByCodeReq) (*GetStatusByCodeResp, error) {
  170. return nil, status.Errorf(codes.Unimplemented, "method GetStatusByCode not implemented")
  171. }
  172. func (UnimplementedUserCenterServer) mustEmbedUnimplementedUserCenterServer() {}
  173. // UnsafeUserCenterServer may be embedded to opt out of forward compatibility for this service.
  174. // Use of this interface is not recommended, as added methods to UserCenterServer will
  175. // result in compilation errors.
  176. type UnsafeUserCenterServer interface {
  177. mustEmbedUnimplementedUserCenterServer()
  178. }
  179. func RegisterUserCenterServer(s grpc.ServiceRegistrar, srv UserCenterServer) {
  180. s.RegisterService(&UserCenter_ServiceDesc, srv)
  181. }
  182. func _UserCenter_EntAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  183. in := new(EntAuthReq)
  184. if err := dec(in); err != nil {
  185. return nil, err
  186. }
  187. if interceptor == nil {
  188. return srv.(UserCenterServer).EntAuth(ctx, in)
  189. }
  190. info := &grpc.UnaryServerInfo{
  191. Server: srv,
  192. FullMethod: "/UserCenter/EntAuth",
  193. }
  194. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  195. return srv.(UserCenterServer).EntAuth(ctx, req.(*EntAuthReq))
  196. }
  197. return interceptor(ctx, in, info, handler)
  198. }
  199. func _UserCenter_EntExamine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  200. in := new(ExamineReq)
  201. if err := dec(in); err != nil {
  202. return nil, err
  203. }
  204. if interceptor == nil {
  205. return srv.(UserCenterServer).EntExamine(ctx, in)
  206. }
  207. info := &grpc.UnaryServerInfo{
  208. Server: srv,
  209. FullMethod: "/UserCenter/EntExamine",
  210. }
  211. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  212. return srv.(UserCenterServer).EntExamine(ctx, req.(*ExamineReq))
  213. }
  214. return interceptor(ctx, in, info, handler)
  215. }
  216. func _UserCenter_EntList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  217. in := new(EntListReq)
  218. if err := dec(in); err != nil {
  219. return nil, err
  220. }
  221. if interceptor == nil {
  222. return srv.(UserCenterServer).EntList(ctx, in)
  223. }
  224. info := &grpc.UnaryServerInfo{
  225. Server: srv,
  226. FullMethod: "/UserCenter/EntList",
  227. }
  228. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  229. return srv.(UserCenterServer).EntList(ctx, req.(*EntListReq))
  230. }
  231. return interceptor(ctx, in, info, handler)
  232. }
  233. func _UserCenter_ExamineList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  234. in := new(ExamineListReq)
  235. if err := dec(in); err != nil {
  236. return nil, err
  237. }
  238. if interceptor == nil {
  239. return srv.(UserCenterServer).ExamineList(ctx, in)
  240. }
  241. info := &grpc.UnaryServerInfo{
  242. Server: srv,
  243. FullMethod: "/UserCenter/ExamineList",
  244. }
  245. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  246. return srv.(UserCenterServer).ExamineList(ctx, req.(*ExamineListReq))
  247. }
  248. return interceptor(ctx, in, info, handler)
  249. }
  250. func _UserCenter_CheckEnt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  251. in := new(CheckEntReq)
  252. if err := dec(in); err != nil {
  253. return nil, err
  254. }
  255. if interceptor == nil {
  256. return srv.(UserCenterServer).CheckEnt(ctx, in)
  257. }
  258. info := &grpc.UnaryServerInfo{
  259. Server: srv,
  260. FullMethod: "/UserCenter/CheckEnt",
  261. }
  262. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  263. return srv.(UserCenterServer).CheckEnt(ctx, req.(*CheckEntReq))
  264. }
  265. return interceptor(ctx, in, info, handler)
  266. }
  267. func _UserCenter_EntInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  268. in := new(CheckEntReq)
  269. if err := dec(in); err != nil {
  270. return nil, err
  271. }
  272. if interceptor == nil {
  273. return srv.(UserCenterServer).EntInfo(ctx, in)
  274. }
  275. info := &grpc.UnaryServerInfo{
  276. Server: srv,
  277. FullMethod: "/UserCenter/EntInfo",
  278. }
  279. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  280. return srv.(UserCenterServer).EntInfo(ctx, req.(*CheckEntReq))
  281. }
  282. return interceptor(ctx, in, info, handler)
  283. }
  284. func _UserCenter_EntUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  285. in := new(EntUpdateReq)
  286. if err := dec(in); err != nil {
  287. return nil, err
  288. }
  289. if interceptor == nil {
  290. return srv.(UserCenterServer).EntUpdate(ctx, in)
  291. }
  292. info := &grpc.UnaryServerInfo{
  293. Server: srv,
  294. FullMethod: "/UserCenter/EntUpdate",
  295. }
  296. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  297. return srv.(UserCenterServer).EntUpdate(ctx, req.(*EntUpdateReq))
  298. }
  299. return interceptor(ctx, in, info, handler)
  300. }
  301. func _UserCenter_ExamineInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  302. in := new(CheckExamineReq)
  303. if err := dec(in); err != nil {
  304. return nil, err
  305. }
  306. if interceptor == nil {
  307. return srv.(UserCenterServer).ExamineInfo(ctx, in)
  308. }
  309. info := &grpc.UnaryServerInfo{
  310. Server: srv,
  311. FullMethod: "/UserCenter/ExamineInfo",
  312. }
  313. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  314. return srv.(UserCenterServer).ExamineInfo(ctx, req.(*CheckExamineReq))
  315. }
  316. return interceptor(ctx, in, info, handler)
  317. }
  318. func _UserCenter_GetStatusByCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  319. in := new(GetStatusByCodeReq)
  320. if err := dec(in); err != nil {
  321. return nil, err
  322. }
  323. if interceptor == nil {
  324. return srv.(UserCenterServer).GetStatusByCode(ctx, in)
  325. }
  326. info := &grpc.UnaryServerInfo{
  327. Server: srv,
  328. FullMethod: "/UserCenter/GetStatusByCode",
  329. }
  330. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  331. return srv.(UserCenterServer).GetStatusByCode(ctx, req.(*GetStatusByCodeReq))
  332. }
  333. return interceptor(ctx, in, info, handler)
  334. }
  335. // UserCenter_ServiceDesc is the grpc.ServiceDesc for UserCenter service.
  336. // It's only intended for direct use with grpc.RegisterService,
  337. // and not to be introspected or modified (even as a copy)
  338. var UserCenter_ServiceDesc = grpc.ServiceDesc{
  339. ServiceName: "UserCenter",
  340. HandlerType: (*UserCenterServer)(nil),
  341. Methods: []grpc.MethodDesc{
  342. {
  343. MethodName: "EntAuth",
  344. Handler: _UserCenter_EntAuth_Handler,
  345. },
  346. {
  347. MethodName: "EntExamine",
  348. Handler: _UserCenter_EntExamine_Handler,
  349. },
  350. {
  351. MethodName: "EntList",
  352. Handler: _UserCenter_EntList_Handler,
  353. },
  354. {
  355. MethodName: "ExamineList",
  356. Handler: _UserCenter_ExamineList_Handler,
  357. },
  358. {
  359. MethodName: "CheckEnt",
  360. Handler: _UserCenter_CheckEnt_Handler,
  361. },
  362. {
  363. MethodName: "EntInfo",
  364. Handler: _UserCenter_EntInfo_Handler,
  365. },
  366. {
  367. MethodName: "EntUpdate",
  368. Handler: _UserCenter_EntUpdate_Handler,
  369. },
  370. {
  371. MethodName: "ExamineInfo",
  372. Handler: _UserCenter_ExamineInfo_Handler,
  373. },
  374. {
  375. MethodName: "GetStatusByCode",
  376. Handler: _UserCenter_GetStatusByCode_Handler,
  377. },
  378. },
  379. Streams: []grpc.StreamDesc{},
  380. Metadata: "userCenter.proto",
  381. }