system_service.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: system_service.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. v1 "cp-organization-management/pb/v1"
  8. fmt "fmt"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. math "math"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("system_service.proto", fileDescriptor_5d35c01297e407e4)
  26. }
  27. var fileDescriptor_5d35c01297e407e4 = []byte{
  28. // 310 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0x5d, 0x4b, 0xc3, 0x30,
  30. 0x14, 0x86, 0xbd, 0xd9, 0x2e, 0xce, 0x85, 0x1f, 0x99, 0x0c, 0x19, 0xd3, 0xe9, 0xf0, 0x76, 0x1d,
  31. 0xd5, 0x3f, 0xa0, 0xce, 0x3b, 0x0b, 0xca, 0x64, 0x20, 0x7a, 0x31, 0xd2, 0xf5, 0xd0, 0x15, 0xd6,
  32. 0x24, 0x26, 0x59, 0xa5, 0xfe, 0x6a, 0x7f, 0x82, 0xd0, 0x34, 0xb3, 0x9f, 0xf3, 0xb2, 0xef, 0xf3,
  33. 0x9e, 0xa7, 0x87, 0x90, 0xc0, 0xa9, 0x4a, 0x95, 0xc6, 0x78, 0xa9, 0x50, 0x26, 0xd1, 0x0a, 0x1d,
  34. 0x21, 0xb9, 0xe6, 0x04, 0x84, 0xef, 0xe4, 0xc9, 0xe0, 0x28, 0x71, 0xa7, 0xa6, 0x64, 0xe0, 0xcd,
  35. 0x4f, 0x07, 0xba, 0xaf, 0x59, 0x40, 0xee, 0x00, 0x66, 0x12, 0xa9, 0xc6, 0x85, 0x42, 0x49, 0xce,
  36. 0x1c, 0xe1, 0x2f, 0x13, 0xd7, 0xf9, 0x8b, 0xe6, 0xf8, 0xb9, 0x45, 0xa5, 0x07, 0xfd, 0x06, 0x22,
  37. 0x36, 0xe9, 0xf8, 0x80, 0xb8, 0xd0, 0xf1, 0x78, 0x18, 0x31, 0xd2, 0xcb, 0x2b, 0xd9, 0x97, 0x9d,
  38. 0x3b, 0x29, 0x87, 0x66, 0xc4, 0x83, 0xc3, 0xd9, 0x9a, 0xb2, 0x10, 0x5f, 0xa8, 0x52, 0x5f, 0x5c,
  39. 0x06, 0x64, 0x68, 0xf5, 0xa5, 0xd8, 0x4a, 0x06, 0x2d, 0xd4, 0xd8, 0xde, 0x80, 0x98, 0xad, 0x9e,
  40. 0x65, 0x48, 0x59, 0xf4, 0x4d, 0x75, 0xc4, 0x19, 0xb9, 0x2c, 0x2d, 0x5c, 0x44, 0xd6, 0x7a, 0xb1,
  41. 0xa7, 0xb1, 0x33, 0x3f, 0xe2, 0x06, 0x5b, 0xcc, 0x75, 0x54, 0x35, 0x37, 0x35, 0x76, 0xe6, 0x85,
  42. 0x08, 0xda, 0x76, 0xae, 0xa3, 0xaa, 0xb9, 0xa9, 0x61, 0xcc, 0x73, 0x38, 0x2e, 0xc6, 0x5e, 0xa4,
  43. 0x34, 0xb1, 0x53, 0x55, 0x60, 0xad, 0xc3, 0x56, 0x6e, 0x9c, 0x01, 0xf4, 0xeb, 0x87, 0x94, 0x5d,
  44. 0x98, 0xeb, 0xd6, 0x33, 0x2c, 0x5e, 0x9e, 0xf1, 0x3f, 0x2d, 0xf3, 0x97, 0x0f, 0xe8, 0x15, 0xd1,
  45. 0x13, 0xa6, 0xf7, 0x5b, 0xbd, 0x26, 0x57, 0x0d, 0xcb, 0xe5, 0xcc, 0xfa, 0x47, 0xfb, 0x2a, 0x99,
  46. 0xfc, 0x61, 0xf4, 0x7e, 0xbe, 0x12, 0x13, 0x5e, 0x28, 0x4c, 0x62, 0xca, 0x68, 0x88, 0x31, 0x32,
  47. 0x3d, 0x15, 0xbe, 0xdf, 0xcd, 0x9e, 0xc6, 0xed, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xce, 0xc5,
  48. 0xf2, 0x76, 0x4f, 0x03, 0x00, 0x00,
  49. }
  50. // Reference imports to suppress errors if they are not otherwise used.
  51. var _ context.Context
  52. var _ grpc.ClientConnInterface
  53. // This is a compile-time assertion to ensure that this generated file
  54. // is compatible with the grpc package it is being compiled against.
  55. const _ = grpc.SupportPackageIsVersion6
  56. // SystemClient is the client API for System service.
  57. //
  58. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  59. type SystemClient interface {
  60. // 创建系统用户
  61. CreateUser(ctx context.Context, in *v1.CreateUserRequest, opts ...grpc.CallOption) (*v1.CreateUserReply, error)
  62. // 系统用户登录
  63. Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
  64. // 修改密码
  65. ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error)
  66. // 创建机构
  67. CreateOrganization(ctx context.Context, in *v1.CreateOrganizationRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationReply, error)
  68. // 删除机构
  69. DeleteOrganization(ctx context.Context, in *v1.DeleteOrganizationRequest, opts ...grpc.CallOption) (*v1.DeleteOrganizationReply, error)
  70. // 修改机构
  71. UpdateOrganization(ctx context.Context, in *v1.UpdateOrganizationRequest, opts ...grpc.CallOption) (*v1.UpdateOrganizationReply, error)
  72. // 机构列表
  73. OrganizationList(ctx context.Context, in *v1.OrganizationListRequest, opts ...grpc.CallOption) (*v1.OrganizationListReply, error)
  74. // 创建机构超级管理员账号
  75. CreateOrganizationUser(ctx context.Context, in *v1.CreateOrganizationUserRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationUserReply, error)
  76. // 机构key认证,机构端调用
  77. OrganizationKeyAuth(ctx context.Context, in *v1.OrganizationKeyAuthRequest, opts ...grpc.CallOption) (*v1.OrganizationKeyAuthReply, error)
  78. }
  79. type systemClient struct {
  80. cc grpc.ClientConnInterface
  81. }
  82. func NewSystemClient(cc grpc.ClientConnInterface) SystemClient {
  83. return &systemClient{cc}
  84. }
  85. func (c *systemClient) CreateUser(ctx context.Context, in *v1.CreateUserRequest, opts ...grpc.CallOption) (*v1.CreateUserReply, error) {
  86. out := new(v1.CreateUserReply)
  87. err := c.cc.Invoke(ctx, "/pb.service.System/CreateUser", in, out, opts...)
  88. if err != nil {
  89. return nil, err
  90. }
  91. return out, nil
  92. }
  93. func (c *systemClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
  94. out := new(v1.LoginReply)
  95. err := c.cc.Invoke(ctx, "/pb.service.System/Login", in, out, opts...)
  96. if err != nil {
  97. return nil, err
  98. }
  99. return out, nil
  100. }
  101. func (c *systemClient) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error) {
  102. out := new(v1.ChangePasswordReply)
  103. err := c.cc.Invoke(ctx, "/pb.service.System/ChangePassword", in, out, opts...)
  104. if err != nil {
  105. return nil, err
  106. }
  107. return out, nil
  108. }
  109. func (c *systemClient) CreateOrganization(ctx context.Context, in *v1.CreateOrganizationRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationReply, error) {
  110. out := new(v1.CreateOrganizationReply)
  111. err := c.cc.Invoke(ctx, "/pb.service.System/CreateOrganization", in, out, opts...)
  112. if err != nil {
  113. return nil, err
  114. }
  115. return out, nil
  116. }
  117. func (c *systemClient) DeleteOrganization(ctx context.Context, in *v1.DeleteOrganizationRequest, opts ...grpc.CallOption) (*v1.DeleteOrganizationReply, error) {
  118. out := new(v1.DeleteOrganizationReply)
  119. err := c.cc.Invoke(ctx, "/pb.service.System/DeleteOrganization", in, out, opts...)
  120. if err != nil {
  121. return nil, err
  122. }
  123. return out, nil
  124. }
  125. func (c *systemClient) UpdateOrganization(ctx context.Context, in *v1.UpdateOrganizationRequest, opts ...grpc.CallOption) (*v1.UpdateOrganizationReply, error) {
  126. out := new(v1.UpdateOrganizationReply)
  127. err := c.cc.Invoke(ctx, "/pb.service.System/UpdateOrganization", in, out, opts...)
  128. if err != nil {
  129. return nil, err
  130. }
  131. return out, nil
  132. }
  133. func (c *systemClient) OrganizationList(ctx context.Context, in *v1.OrganizationListRequest, opts ...grpc.CallOption) (*v1.OrganizationListReply, error) {
  134. out := new(v1.OrganizationListReply)
  135. err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationList", in, out, opts...)
  136. if err != nil {
  137. return nil, err
  138. }
  139. return out, nil
  140. }
  141. func (c *systemClient) CreateOrganizationUser(ctx context.Context, in *v1.CreateOrganizationUserRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationUserReply, error) {
  142. out := new(v1.CreateOrganizationUserReply)
  143. err := c.cc.Invoke(ctx, "/pb.service.System/CreateOrganizationUser", in, out, opts...)
  144. if err != nil {
  145. return nil, err
  146. }
  147. return out, nil
  148. }
  149. func (c *systemClient) OrganizationKeyAuth(ctx context.Context, in *v1.OrganizationKeyAuthRequest, opts ...grpc.CallOption) (*v1.OrganizationKeyAuthReply, error) {
  150. out := new(v1.OrganizationKeyAuthReply)
  151. err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationKeyAuth", in, out, opts...)
  152. if err != nil {
  153. return nil, err
  154. }
  155. return out, nil
  156. }
  157. // SystemServer is the server API for System service.
  158. type SystemServer interface {
  159. // 创建系统用户
  160. CreateUser(context.Context, *v1.CreateUserRequest) (*v1.CreateUserReply, error)
  161. // 系统用户登录
  162. Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
  163. // 修改密码
  164. ChangePassword(context.Context, *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error)
  165. // 创建机构
  166. CreateOrganization(context.Context, *v1.CreateOrganizationRequest) (*v1.CreateOrganizationReply, error)
  167. // 删除机构
  168. DeleteOrganization(context.Context, *v1.DeleteOrganizationRequest) (*v1.DeleteOrganizationReply, error)
  169. // 修改机构
  170. UpdateOrganization(context.Context, *v1.UpdateOrganizationRequest) (*v1.UpdateOrganizationReply, error)
  171. // 机构列表
  172. OrganizationList(context.Context, *v1.OrganizationListRequest) (*v1.OrganizationListReply, error)
  173. // 创建机构超级管理员账号
  174. CreateOrganizationUser(context.Context, *v1.CreateOrganizationUserRequest) (*v1.CreateOrganizationUserReply, error)
  175. // 机构key认证,机构端调用
  176. OrganizationKeyAuth(context.Context, *v1.OrganizationKeyAuthRequest) (*v1.OrganizationKeyAuthReply, error)
  177. }
  178. // UnimplementedSystemServer can be embedded to have forward compatible implementations.
  179. type UnimplementedSystemServer struct {
  180. }
  181. func (*UnimplementedSystemServer) CreateUser(ctx context.Context, req *v1.CreateUserRequest) (*v1.CreateUserReply, error) {
  182. return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented")
  183. }
  184. func (*UnimplementedSystemServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
  185. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  186. }
  187. func (*UnimplementedSystemServer) ChangePassword(ctx context.Context, req *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error) {
  188. return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented")
  189. }
  190. func (*UnimplementedSystemServer) CreateOrganization(ctx context.Context, req *v1.CreateOrganizationRequest) (*v1.CreateOrganizationReply, error) {
  191. return nil, status.Errorf(codes.Unimplemented, "method CreateOrganization not implemented")
  192. }
  193. func (*UnimplementedSystemServer) DeleteOrganization(ctx context.Context, req *v1.DeleteOrganizationRequest) (*v1.DeleteOrganizationReply, error) {
  194. return nil, status.Errorf(codes.Unimplemented, "method DeleteOrganization not implemented")
  195. }
  196. func (*UnimplementedSystemServer) UpdateOrganization(ctx context.Context, req *v1.UpdateOrganizationRequest) (*v1.UpdateOrganizationReply, error) {
  197. return nil, status.Errorf(codes.Unimplemented, "method UpdateOrganization not implemented")
  198. }
  199. func (*UnimplementedSystemServer) OrganizationList(ctx context.Context, req *v1.OrganizationListRequest) (*v1.OrganizationListReply, error) {
  200. return nil, status.Errorf(codes.Unimplemented, "method OrganizationList not implemented")
  201. }
  202. func (*UnimplementedSystemServer) CreateOrganizationUser(ctx context.Context, req *v1.CreateOrganizationUserRequest) (*v1.CreateOrganizationUserReply, error) {
  203. return nil, status.Errorf(codes.Unimplemented, "method CreateOrganizationUser not implemented")
  204. }
  205. func (*UnimplementedSystemServer) OrganizationKeyAuth(ctx context.Context, req *v1.OrganizationKeyAuthRequest) (*v1.OrganizationKeyAuthReply, error) {
  206. return nil, status.Errorf(codes.Unimplemented, "method OrganizationKeyAuth not implemented")
  207. }
  208. func RegisterSystemServer(s *grpc.Server, srv SystemServer) {
  209. s.RegisterService(&_System_serviceDesc, srv)
  210. }
  211. func _System_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  212. in := new(v1.CreateUserRequest)
  213. if err := dec(in); err != nil {
  214. return nil, err
  215. }
  216. if interceptor == nil {
  217. return srv.(SystemServer).CreateUser(ctx, in)
  218. }
  219. info := &grpc.UnaryServerInfo{
  220. Server: srv,
  221. FullMethod: "/pb.service.System/CreateUser",
  222. }
  223. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  224. return srv.(SystemServer).CreateUser(ctx, req.(*v1.CreateUserRequest))
  225. }
  226. return interceptor(ctx, in, info, handler)
  227. }
  228. func _System_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  229. in := new(v1.LoginRequest)
  230. if err := dec(in); err != nil {
  231. return nil, err
  232. }
  233. if interceptor == nil {
  234. return srv.(SystemServer).Login(ctx, in)
  235. }
  236. info := &grpc.UnaryServerInfo{
  237. Server: srv,
  238. FullMethod: "/pb.service.System/Login",
  239. }
  240. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  241. return srv.(SystemServer).Login(ctx, req.(*v1.LoginRequest))
  242. }
  243. return interceptor(ctx, in, info, handler)
  244. }
  245. func _System_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  246. in := new(v1.ChangePasswordRequest)
  247. if err := dec(in); err != nil {
  248. return nil, err
  249. }
  250. if interceptor == nil {
  251. return srv.(SystemServer).ChangePassword(ctx, in)
  252. }
  253. info := &grpc.UnaryServerInfo{
  254. Server: srv,
  255. FullMethod: "/pb.service.System/ChangePassword",
  256. }
  257. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  258. return srv.(SystemServer).ChangePassword(ctx, req.(*v1.ChangePasswordRequest))
  259. }
  260. return interceptor(ctx, in, info, handler)
  261. }
  262. func _System_CreateOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  263. in := new(v1.CreateOrganizationRequest)
  264. if err := dec(in); err != nil {
  265. return nil, err
  266. }
  267. if interceptor == nil {
  268. return srv.(SystemServer).CreateOrganization(ctx, in)
  269. }
  270. info := &grpc.UnaryServerInfo{
  271. Server: srv,
  272. FullMethod: "/pb.service.System/CreateOrganization",
  273. }
  274. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  275. return srv.(SystemServer).CreateOrganization(ctx, req.(*v1.CreateOrganizationRequest))
  276. }
  277. return interceptor(ctx, in, info, handler)
  278. }
  279. func _System_DeleteOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  280. in := new(v1.DeleteOrganizationRequest)
  281. if err := dec(in); err != nil {
  282. return nil, err
  283. }
  284. if interceptor == nil {
  285. return srv.(SystemServer).DeleteOrganization(ctx, in)
  286. }
  287. info := &grpc.UnaryServerInfo{
  288. Server: srv,
  289. FullMethod: "/pb.service.System/DeleteOrganization",
  290. }
  291. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  292. return srv.(SystemServer).DeleteOrganization(ctx, req.(*v1.DeleteOrganizationRequest))
  293. }
  294. return interceptor(ctx, in, info, handler)
  295. }
  296. func _System_UpdateOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  297. in := new(v1.UpdateOrganizationRequest)
  298. if err := dec(in); err != nil {
  299. return nil, err
  300. }
  301. if interceptor == nil {
  302. return srv.(SystemServer).UpdateOrganization(ctx, in)
  303. }
  304. info := &grpc.UnaryServerInfo{
  305. Server: srv,
  306. FullMethod: "/pb.service.System/UpdateOrganization",
  307. }
  308. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  309. return srv.(SystemServer).UpdateOrganization(ctx, req.(*v1.UpdateOrganizationRequest))
  310. }
  311. return interceptor(ctx, in, info, handler)
  312. }
  313. func _System_OrganizationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  314. in := new(v1.OrganizationListRequest)
  315. if err := dec(in); err != nil {
  316. return nil, err
  317. }
  318. if interceptor == nil {
  319. return srv.(SystemServer).OrganizationList(ctx, in)
  320. }
  321. info := &grpc.UnaryServerInfo{
  322. Server: srv,
  323. FullMethod: "/pb.service.System/OrganizationList",
  324. }
  325. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  326. return srv.(SystemServer).OrganizationList(ctx, req.(*v1.OrganizationListRequest))
  327. }
  328. return interceptor(ctx, in, info, handler)
  329. }
  330. func _System_CreateOrganizationUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  331. in := new(v1.CreateOrganizationUserRequest)
  332. if err := dec(in); err != nil {
  333. return nil, err
  334. }
  335. if interceptor == nil {
  336. return srv.(SystemServer).CreateOrganizationUser(ctx, in)
  337. }
  338. info := &grpc.UnaryServerInfo{
  339. Server: srv,
  340. FullMethod: "/pb.service.System/CreateOrganizationUser",
  341. }
  342. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  343. return srv.(SystemServer).CreateOrganizationUser(ctx, req.(*v1.CreateOrganizationUserRequest))
  344. }
  345. return interceptor(ctx, in, info, handler)
  346. }
  347. func _System_OrganizationKeyAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  348. in := new(v1.OrganizationKeyAuthRequest)
  349. if err := dec(in); err != nil {
  350. return nil, err
  351. }
  352. if interceptor == nil {
  353. return srv.(SystemServer).OrganizationKeyAuth(ctx, in)
  354. }
  355. info := &grpc.UnaryServerInfo{
  356. Server: srv,
  357. FullMethod: "/pb.service.System/OrganizationKeyAuth",
  358. }
  359. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  360. return srv.(SystemServer).OrganizationKeyAuth(ctx, req.(*v1.OrganizationKeyAuthRequest))
  361. }
  362. return interceptor(ctx, in, info, handler)
  363. }
  364. var _System_serviceDesc = grpc.ServiceDesc{
  365. ServiceName: "pb.service.System",
  366. HandlerType: (*SystemServer)(nil),
  367. Methods: []grpc.MethodDesc{
  368. {
  369. MethodName: "CreateUser",
  370. Handler: _System_CreateUser_Handler,
  371. },
  372. {
  373. MethodName: "Login",
  374. Handler: _System_Login_Handler,
  375. },
  376. {
  377. MethodName: "ChangePassword",
  378. Handler: _System_ChangePassword_Handler,
  379. },
  380. {
  381. MethodName: "CreateOrganization",
  382. Handler: _System_CreateOrganization_Handler,
  383. },
  384. {
  385. MethodName: "DeleteOrganization",
  386. Handler: _System_DeleteOrganization_Handler,
  387. },
  388. {
  389. MethodName: "UpdateOrganization",
  390. Handler: _System_UpdateOrganization_Handler,
  391. },
  392. {
  393. MethodName: "OrganizationList",
  394. Handler: _System_OrganizationList_Handler,
  395. },
  396. {
  397. MethodName: "CreateOrganizationUser",
  398. Handler: _System_CreateOrganizationUser_Handler,
  399. },
  400. {
  401. MethodName: "OrganizationKeyAuth",
  402. Handler: _System_OrganizationKeyAuth_Handler,
  403. },
  404. },
  405. Streams: []grpc.StreamDesc{},
  406. Metadata: "system_service.proto",
  407. }