system_service.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  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-gateway/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. // 387 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xef, 0x4a, 0xeb, 0x30,
  30. 0x18, 0xc6, 0xcf, 0x97, 0x33, 0x0e, 0x2f, 0xc7, 0x7f, 0x71, 0x8c, 0x39, 0xa7, 0x8c, 0xa1, 0x88,
  31. 0xc8, 0x3a, 0xa6, 0x37, 0xa0, 0x4e, 0x04, 0xa1, 0xa0, 0x4c, 0x06, 0xe2, 0x07, 0x47, 0xba, 0xbe,
  32. 0xd4, 0xc2, 0xd6, 0xd6, 0x26, 0x6e, 0xd4, 0x1b, 0xf6, 0x36, 0x84, 0x64, 0xa9, 0x6d, 0x9a, 0x4c,
  33. 0x3f, 0xee, 0x79, 0x9e, 0xfc, 0xde, 0x3f, 0x4b, 0x0a, 0x75, 0x96, 0x31, 0x8e, 0xf3, 0x09, 0xc3,
  34. 0x74, 0x11, 0x4e, 0xd1, 0x49, 0xd2, 0x98, 0xc7, 0x04, 0x12, 0xcf, 0x59, 0x29, 0xad, 0xad, 0xc5,
  35. 0xa0, 0x2f, 0x43, 0xd2, 0x3c, 0xff, 0xfc, 0x07, 0xb5, 0x47, 0x21, 0x90, 0x4b, 0x80, 0x61, 0x8a,
  36. 0x94, 0xe3, 0x98, 0x61, 0x4a, 0x9a, 0x4e, 0xe2, 0x4d, 0x16, 0x03, 0xe7, 0x5b, 0x1a, 0xe1, 0xdb,
  37. 0x3b, 0x32, 0xde, 0x6a, 0x18, 0x9c, 0x64, 0x96, 0x75, 0xff, 0x90, 0x01, 0xfc, 0x75, 0xe3, 0x20,
  38. 0x8c, 0xc8, 0xee, 0x2a, 0x22, 0x7e, 0xa9, 0x73, 0x3b, 0x65, 0x51, 0x1e, 0x71, 0x61, 0x73, 0xf8,
  39. 0x4a, 0xa3, 0x00, 0x1f, 0x28, 0x63, 0xcb, 0x38, 0xf5, 0x49, 0x5b, 0xe1, 0x4b, 0xb2, 0x82, 0xb4,
  40. 0x2c, 0xae, 0xa4, 0x3d, 0x01, 0x91, 0x5d, 0xdd, 0xa7, 0x01, 0x8d, 0xc2, 0x0f, 0xca, 0xc3, 0x38,
  41. 0x22, 0x9d, 0x52, 0xc3, 0x45, 0x4b, 0x51, 0x0f, 0xd7, 0x24, 0x72, 0xf2, 0x0d, 0xce, 0xd0, 0x42,
  42. 0xae, 0x5a, 0x3a, 0xd9, 0x94, 0xc8, 0xc9, 0xe3, 0xc4, 0xb7, 0xf5, 0x5c, 0xb5, 0x74, 0xb2, 0x29,
  43. 0x21, 0xc9, 0x23, 0xd8, 0x2e, 0xca, 0x6e, 0xc8, 0x38, 0x51, 0xa7, 0x74, 0x43, 0x51, 0xdb, 0x56,
  44. 0x5f, 0x32, 0x7d, 0x68, 0x54, 0x97, 0x24, 0x2e, 0xcc, 0x91, 0x75, 0x87, 0xc5, 0xcb, 0xd3, 0xfd,
  45. 0x21, 0x25, 0xab, 0xbc, 0x40, 0x5d, 0xb7, 0x44, 0xf7, 0x5d, 0x43, 0x77, 0xca, 0x54, 0x15, 0x3a,
  46. 0x6b, 0x33, 0xf9, 0x14, 0xba, 0x2d, 0xd7, 0x98, 0x4f, 0x61, 0xb6, 0xf5, 0x29, 0x6c, 0x29, 0x59,
  47. 0x25, 0x83, 0x83, 0xea, 0x80, 0x0c, 0x79, 0x7e, 0xd5, 0xcf, 0x2c, 0x98, 0x52, 0x4a, 0xd5, 0x3c,
  48. 0xfd, 0x5d, 0x58, 0x96, 0xbe, 0x85, 0xff, 0xf2, 0x55, 0xbb, 0x71, 0x70, 0xe5, 0xfb, 0x44, 0x3d,
  49. 0x9b, 0xa2, 0xa8, 0xc0, 0x4d, 0xa3, 0x27, 0x39, 0x77, 0xb0, 0x91, 0xcb, 0xe2, 0x1f, 0xd8, 0xd7,
  50. 0xc3, 0xc5, 0xd5, 0xef, 0x99, 0x4d, 0x81, 0xba, 0x3e, 0x79, 0x3e, 0x9e, 0x26, 0xbd, 0xb8, 0xd0,
  51. 0x7d, 0x6f, 0x4e, 0x23, 0x1a, 0xe0, 0x1c, 0x23, 0xde, 0x0b, 0x28, 0xc7, 0x25, 0xcd, 0xfa, 0x89,
  52. 0xe7, 0xd5, 0xc4, 0x97, 0xe9, 0xe2, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xfb, 0xb0, 0xca, 0xfe, 0xce,
  53. 0x04, 0x00, 0x00,
  54. }
  55. // Reference imports to suppress errors if they are not otherwise used.
  56. var _ context.Context
  57. var _ grpc.ClientConnInterface
  58. // This is a compile-time assertion to ensure that this generated file
  59. // is compatible with the grpc package it is being compiled against.
  60. const _ = grpc.SupportPackageIsVersion6
  61. // SystemClient is the client API for System service.
  62. //
  63. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  64. type SystemClient interface {
  65. // 创建系统用户
  66. CreateUser(ctx context.Context, in *v1.CreateUserRequest, opts ...grpc.CallOption) (*v1.CreateUserReply, error)
  67. // 系统用户登录
  68. Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
  69. // 修改密码
  70. ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error)
  71. // 创建机构
  72. CreateOrganization(ctx context.Context, in *v1.CreateOrganizationRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationReply, error)
  73. // 删除机构
  74. DeleteOrganization(ctx context.Context, in *v1.DeleteOrganizationRequest, opts ...grpc.CallOption) (*v1.DeleteOrganizationReply, error)
  75. // 修改机构
  76. UpdateOrganization(ctx context.Context, in *v1.UpdateOrganizationRequest, opts ...grpc.CallOption) (*v1.UpdateOrganizationReply, error)
  77. // 机构列表
  78. OrganizationList(ctx context.Context, in *v1.OrganizationListRequest, opts ...grpc.CallOption) (*v1.OrganizationListReply, error)
  79. // 创建机构超级管理员账号
  80. CreateOrganizationUser(ctx context.Context, in *v1.CreateOrganizationUserRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationUserReply, error)
  81. // 获取机构超级管理员账号
  82. OrganizationUserList(ctx context.Context, in *v1.OrganizationUserListRequest, opts ...grpc.CallOption) (*v1.OrganizationUserListReply, error)
  83. // 修改机构超级管理员账号
  84. OrganizationUserUpdate(ctx context.Context, in *v1.OrganizationUserUpdateRequest, opts ...grpc.CallOption) (*v1.OrganizationUserUpdateReply, error)
  85. // 重置机构超级管理员账号密码
  86. OrganizationUserResetPassword(ctx context.Context, in *v1.OrganizationUserResetPasswordRequest, opts ...grpc.CallOption) (*v1.OrganizationUserResetPasswordReply, error)
  87. // 添加系统操作日志
  88. SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error)
  89. // 系统操作日志列表
  90. SystemLogList(ctx context.Context, in *v1.SystemLogListRequest, opts ...grpc.CallOption) (*v1.SystemLogListReply, error)
  91. }
  92. type systemClient struct {
  93. cc grpc.ClientConnInterface
  94. }
  95. func NewSystemClient(cc grpc.ClientConnInterface) SystemClient {
  96. return &systemClient{cc}
  97. }
  98. func (c *systemClient) CreateUser(ctx context.Context, in *v1.CreateUserRequest, opts ...grpc.CallOption) (*v1.CreateUserReply, error) {
  99. out := new(v1.CreateUserReply)
  100. err := c.cc.Invoke(ctx, "/pb.service.System/CreateUser", in, out, opts...)
  101. if err != nil {
  102. return nil, err
  103. }
  104. return out, nil
  105. }
  106. func (c *systemClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
  107. out := new(v1.LoginReply)
  108. err := c.cc.Invoke(ctx, "/pb.service.System/Login", in, out, opts...)
  109. if err != nil {
  110. return nil, err
  111. }
  112. return out, nil
  113. }
  114. func (c *systemClient) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error) {
  115. out := new(v1.ChangePasswordReply)
  116. err := c.cc.Invoke(ctx, "/pb.service.System/ChangePassword", in, out, opts...)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return out, nil
  121. }
  122. func (c *systemClient) CreateOrganization(ctx context.Context, in *v1.CreateOrganizationRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationReply, error) {
  123. out := new(v1.CreateOrganizationReply)
  124. err := c.cc.Invoke(ctx, "/pb.service.System/CreateOrganization", in, out, opts...)
  125. if err != nil {
  126. return nil, err
  127. }
  128. return out, nil
  129. }
  130. func (c *systemClient) DeleteOrganization(ctx context.Context, in *v1.DeleteOrganizationRequest, opts ...grpc.CallOption) (*v1.DeleteOrganizationReply, error) {
  131. out := new(v1.DeleteOrganizationReply)
  132. err := c.cc.Invoke(ctx, "/pb.service.System/DeleteOrganization", in, out, opts...)
  133. if err != nil {
  134. return nil, err
  135. }
  136. return out, nil
  137. }
  138. func (c *systemClient) UpdateOrganization(ctx context.Context, in *v1.UpdateOrganizationRequest, opts ...grpc.CallOption) (*v1.UpdateOrganizationReply, error) {
  139. out := new(v1.UpdateOrganizationReply)
  140. err := c.cc.Invoke(ctx, "/pb.service.System/UpdateOrganization", in, out, opts...)
  141. if err != nil {
  142. return nil, err
  143. }
  144. return out, nil
  145. }
  146. func (c *systemClient) OrganizationList(ctx context.Context, in *v1.OrganizationListRequest, opts ...grpc.CallOption) (*v1.OrganizationListReply, error) {
  147. out := new(v1.OrganizationListReply)
  148. err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationList", in, out, opts...)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return out, nil
  153. }
  154. func (c *systemClient) CreateOrganizationUser(ctx context.Context, in *v1.CreateOrganizationUserRequest, opts ...grpc.CallOption) (*v1.CreateOrganizationUserReply, error) {
  155. out := new(v1.CreateOrganizationUserReply)
  156. err := c.cc.Invoke(ctx, "/pb.service.System/CreateOrganizationUser", in, out, opts...)
  157. if err != nil {
  158. return nil, err
  159. }
  160. return out, nil
  161. }
  162. func (c *systemClient) OrganizationUserList(ctx context.Context, in *v1.OrganizationUserListRequest, opts ...grpc.CallOption) (*v1.OrganizationUserListReply, error) {
  163. out := new(v1.OrganizationUserListReply)
  164. err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationUserList", in, out, opts...)
  165. if err != nil {
  166. return nil, err
  167. }
  168. return out, nil
  169. }
  170. func (c *systemClient) OrganizationUserUpdate(ctx context.Context, in *v1.OrganizationUserUpdateRequest, opts ...grpc.CallOption) (*v1.OrganizationUserUpdateReply, error) {
  171. out := new(v1.OrganizationUserUpdateReply)
  172. err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationUserUpdate", in, out, opts...)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return out, nil
  177. }
  178. func (c *systemClient) OrganizationUserResetPassword(ctx context.Context, in *v1.OrganizationUserResetPasswordRequest, opts ...grpc.CallOption) (*v1.OrganizationUserResetPasswordReply, error) {
  179. out := new(v1.OrganizationUserResetPasswordReply)
  180. err := c.cc.Invoke(ctx, "/pb.service.System/OrganizationUserResetPassword", in, out, opts...)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return out, nil
  185. }
  186. func (c *systemClient) SystemLogAdd(ctx context.Context, in *v1.SystemLogAddRequest, opts ...grpc.CallOption) (*v1.SystemLogAddReply, error) {
  187. out := new(v1.SystemLogAddReply)
  188. err := c.cc.Invoke(ctx, "/pb.service.System/SystemLogAdd", in, out, opts...)
  189. if err != nil {
  190. return nil, err
  191. }
  192. return out, nil
  193. }
  194. func (c *systemClient) SystemLogList(ctx context.Context, in *v1.SystemLogListRequest, opts ...grpc.CallOption) (*v1.SystemLogListReply, error) {
  195. out := new(v1.SystemLogListReply)
  196. err := c.cc.Invoke(ctx, "/pb.service.System/SystemLogList", in, out, opts...)
  197. if err != nil {
  198. return nil, err
  199. }
  200. return out, nil
  201. }
  202. // SystemServer is the server API for System service.
  203. type SystemServer interface {
  204. // 创建系统用户
  205. CreateUser(context.Context, *v1.CreateUserRequest) (*v1.CreateUserReply, error)
  206. // 系统用户登录
  207. Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
  208. // 修改密码
  209. ChangePassword(context.Context, *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error)
  210. // 创建机构
  211. CreateOrganization(context.Context, *v1.CreateOrganizationRequest) (*v1.CreateOrganizationReply, error)
  212. // 删除机构
  213. DeleteOrganization(context.Context, *v1.DeleteOrganizationRequest) (*v1.DeleteOrganizationReply, error)
  214. // 修改机构
  215. UpdateOrganization(context.Context, *v1.UpdateOrganizationRequest) (*v1.UpdateOrganizationReply, error)
  216. // 机构列表
  217. OrganizationList(context.Context, *v1.OrganizationListRequest) (*v1.OrganizationListReply, error)
  218. // 创建机构超级管理员账号
  219. CreateOrganizationUser(context.Context, *v1.CreateOrganizationUserRequest) (*v1.CreateOrganizationUserReply, error)
  220. // 获取机构超级管理员账号
  221. OrganizationUserList(context.Context, *v1.OrganizationUserListRequest) (*v1.OrganizationUserListReply, error)
  222. // 修改机构超级管理员账号
  223. OrganizationUserUpdate(context.Context, *v1.OrganizationUserUpdateRequest) (*v1.OrganizationUserUpdateReply, error)
  224. // 重置机构超级管理员账号密码
  225. OrganizationUserResetPassword(context.Context, *v1.OrganizationUserResetPasswordRequest) (*v1.OrganizationUserResetPasswordReply, error)
  226. // 添加系统操作日志
  227. SystemLogAdd(context.Context, *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error)
  228. // 系统操作日志列表
  229. SystemLogList(context.Context, *v1.SystemLogListRequest) (*v1.SystemLogListReply, error)
  230. }
  231. // UnimplementedSystemServer can be embedded to have forward compatible implementations.
  232. type UnimplementedSystemServer struct {
  233. }
  234. func (*UnimplementedSystemServer) CreateUser(ctx context.Context, req *v1.CreateUserRequest) (*v1.CreateUserReply, error) {
  235. return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented")
  236. }
  237. func (*UnimplementedSystemServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
  238. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  239. }
  240. func (*UnimplementedSystemServer) ChangePassword(ctx context.Context, req *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error) {
  241. return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented")
  242. }
  243. func (*UnimplementedSystemServer) CreateOrganization(ctx context.Context, req *v1.CreateOrganizationRequest) (*v1.CreateOrganizationReply, error) {
  244. return nil, status.Errorf(codes.Unimplemented, "method CreateOrganization not implemented")
  245. }
  246. func (*UnimplementedSystemServer) DeleteOrganization(ctx context.Context, req *v1.DeleteOrganizationRequest) (*v1.DeleteOrganizationReply, error) {
  247. return nil, status.Errorf(codes.Unimplemented, "method DeleteOrganization not implemented")
  248. }
  249. func (*UnimplementedSystemServer) UpdateOrganization(ctx context.Context, req *v1.UpdateOrganizationRequest) (*v1.UpdateOrganizationReply, error) {
  250. return nil, status.Errorf(codes.Unimplemented, "method UpdateOrganization not implemented")
  251. }
  252. func (*UnimplementedSystemServer) OrganizationList(ctx context.Context, req *v1.OrganizationListRequest) (*v1.OrganizationListReply, error) {
  253. return nil, status.Errorf(codes.Unimplemented, "method OrganizationList not implemented")
  254. }
  255. func (*UnimplementedSystemServer) CreateOrganizationUser(ctx context.Context, req *v1.CreateOrganizationUserRequest) (*v1.CreateOrganizationUserReply, error) {
  256. return nil, status.Errorf(codes.Unimplemented, "method CreateOrganizationUser not implemented")
  257. }
  258. func (*UnimplementedSystemServer) OrganizationUserList(ctx context.Context, req *v1.OrganizationUserListRequest) (*v1.OrganizationUserListReply, error) {
  259. return nil, status.Errorf(codes.Unimplemented, "method OrganizationUserList not implemented")
  260. }
  261. func (*UnimplementedSystemServer) OrganizationUserUpdate(ctx context.Context, req *v1.OrganizationUserUpdateRequest) (*v1.OrganizationUserUpdateReply, error) {
  262. return nil, status.Errorf(codes.Unimplemented, "method OrganizationUserUpdate not implemented")
  263. }
  264. func (*UnimplementedSystemServer) OrganizationUserResetPassword(ctx context.Context, req *v1.OrganizationUserResetPasswordRequest) (*v1.OrganizationUserResetPasswordReply, error) {
  265. return nil, status.Errorf(codes.Unimplemented, "method OrganizationUserResetPassword not implemented")
  266. }
  267. func (*UnimplementedSystemServer) SystemLogAdd(ctx context.Context, req *v1.SystemLogAddRequest) (*v1.SystemLogAddReply, error) {
  268. return nil, status.Errorf(codes.Unimplemented, "method SystemLogAdd not implemented")
  269. }
  270. func (*UnimplementedSystemServer) SystemLogList(ctx context.Context, req *v1.SystemLogListRequest) (*v1.SystemLogListReply, error) {
  271. return nil, status.Errorf(codes.Unimplemented, "method SystemLogList not implemented")
  272. }
  273. func RegisterSystemServer(s *grpc.Server, srv SystemServer) {
  274. s.RegisterService(&_System_serviceDesc, srv)
  275. }
  276. func _System_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  277. in := new(v1.CreateUserRequest)
  278. if err := dec(in); err != nil {
  279. return nil, err
  280. }
  281. if interceptor == nil {
  282. return srv.(SystemServer).CreateUser(ctx, in)
  283. }
  284. info := &grpc.UnaryServerInfo{
  285. Server: srv,
  286. FullMethod: "/pb.service.System/CreateUser",
  287. }
  288. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  289. return srv.(SystemServer).CreateUser(ctx, req.(*v1.CreateUserRequest))
  290. }
  291. return interceptor(ctx, in, info, handler)
  292. }
  293. func _System_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  294. in := new(v1.LoginRequest)
  295. if err := dec(in); err != nil {
  296. return nil, err
  297. }
  298. if interceptor == nil {
  299. return srv.(SystemServer).Login(ctx, in)
  300. }
  301. info := &grpc.UnaryServerInfo{
  302. Server: srv,
  303. FullMethod: "/pb.service.System/Login",
  304. }
  305. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  306. return srv.(SystemServer).Login(ctx, req.(*v1.LoginRequest))
  307. }
  308. return interceptor(ctx, in, info, handler)
  309. }
  310. func _System_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  311. in := new(v1.ChangePasswordRequest)
  312. if err := dec(in); err != nil {
  313. return nil, err
  314. }
  315. if interceptor == nil {
  316. return srv.(SystemServer).ChangePassword(ctx, in)
  317. }
  318. info := &grpc.UnaryServerInfo{
  319. Server: srv,
  320. FullMethod: "/pb.service.System/ChangePassword",
  321. }
  322. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  323. return srv.(SystemServer).ChangePassword(ctx, req.(*v1.ChangePasswordRequest))
  324. }
  325. return interceptor(ctx, in, info, handler)
  326. }
  327. func _System_CreateOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  328. in := new(v1.CreateOrganizationRequest)
  329. if err := dec(in); err != nil {
  330. return nil, err
  331. }
  332. if interceptor == nil {
  333. return srv.(SystemServer).CreateOrganization(ctx, in)
  334. }
  335. info := &grpc.UnaryServerInfo{
  336. Server: srv,
  337. FullMethod: "/pb.service.System/CreateOrganization",
  338. }
  339. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  340. return srv.(SystemServer).CreateOrganization(ctx, req.(*v1.CreateOrganizationRequest))
  341. }
  342. return interceptor(ctx, in, info, handler)
  343. }
  344. func _System_DeleteOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  345. in := new(v1.DeleteOrganizationRequest)
  346. if err := dec(in); err != nil {
  347. return nil, err
  348. }
  349. if interceptor == nil {
  350. return srv.(SystemServer).DeleteOrganization(ctx, in)
  351. }
  352. info := &grpc.UnaryServerInfo{
  353. Server: srv,
  354. FullMethod: "/pb.service.System/DeleteOrganization",
  355. }
  356. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  357. return srv.(SystemServer).DeleteOrganization(ctx, req.(*v1.DeleteOrganizationRequest))
  358. }
  359. return interceptor(ctx, in, info, handler)
  360. }
  361. func _System_UpdateOrganization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  362. in := new(v1.UpdateOrganizationRequest)
  363. if err := dec(in); err != nil {
  364. return nil, err
  365. }
  366. if interceptor == nil {
  367. return srv.(SystemServer).UpdateOrganization(ctx, in)
  368. }
  369. info := &grpc.UnaryServerInfo{
  370. Server: srv,
  371. FullMethod: "/pb.service.System/UpdateOrganization",
  372. }
  373. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  374. return srv.(SystemServer).UpdateOrganization(ctx, req.(*v1.UpdateOrganizationRequest))
  375. }
  376. return interceptor(ctx, in, info, handler)
  377. }
  378. func _System_OrganizationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  379. in := new(v1.OrganizationListRequest)
  380. if err := dec(in); err != nil {
  381. return nil, err
  382. }
  383. if interceptor == nil {
  384. return srv.(SystemServer).OrganizationList(ctx, in)
  385. }
  386. info := &grpc.UnaryServerInfo{
  387. Server: srv,
  388. FullMethod: "/pb.service.System/OrganizationList",
  389. }
  390. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  391. return srv.(SystemServer).OrganizationList(ctx, req.(*v1.OrganizationListRequest))
  392. }
  393. return interceptor(ctx, in, info, handler)
  394. }
  395. func _System_CreateOrganizationUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  396. in := new(v1.CreateOrganizationUserRequest)
  397. if err := dec(in); err != nil {
  398. return nil, err
  399. }
  400. if interceptor == nil {
  401. return srv.(SystemServer).CreateOrganizationUser(ctx, in)
  402. }
  403. info := &grpc.UnaryServerInfo{
  404. Server: srv,
  405. FullMethod: "/pb.service.System/CreateOrganizationUser",
  406. }
  407. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  408. return srv.(SystemServer).CreateOrganizationUser(ctx, req.(*v1.CreateOrganizationUserRequest))
  409. }
  410. return interceptor(ctx, in, info, handler)
  411. }
  412. func _System_OrganizationUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  413. in := new(v1.OrganizationUserListRequest)
  414. if err := dec(in); err != nil {
  415. return nil, err
  416. }
  417. if interceptor == nil {
  418. return srv.(SystemServer).OrganizationUserList(ctx, in)
  419. }
  420. info := &grpc.UnaryServerInfo{
  421. Server: srv,
  422. FullMethod: "/pb.service.System/OrganizationUserList",
  423. }
  424. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  425. return srv.(SystemServer).OrganizationUserList(ctx, req.(*v1.OrganizationUserListRequest))
  426. }
  427. return interceptor(ctx, in, info, handler)
  428. }
  429. func _System_OrganizationUserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  430. in := new(v1.OrganizationUserUpdateRequest)
  431. if err := dec(in); err != nil {
  432. return nil, err
  433. }
  434. if interceptor == nil {
  435. return srv.(SystemServer).OrganizationUserUpdate(ctx, in)
  436. }
  437. info := &grpc.UnaryServerInfo{
  438. Server: srv,
  439. FullMethod: "/pb.service.System/OrganizationUserUpdate",
  440. }
  441. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  442. return srv.(SystemServer).OrganizationUserUpdate(ctx, req.(*v1.OrganizationUserUpdateRequest))
  443. }
  444. return interceptor(ctx, in, info, handler)
  445. }
  446. func _System_OrganizationUserResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  447. in := new(v1.OrganizationUserResetPasswordRequest)
  448. if err := dec(in); err != nil {
  449. return nil, err
  450. }
  451. if interceptor == nil {
  452. return srv.(SystemServer).OrganizationUserResetPassword(ctx, in)
  453. }
  454. info := &grpc.UnaryServerInfo{
  455. Server: srv,
  456. FullMethod: "/pb.service.System/OrganizationUserResetPassword",
  457. }
  458. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  459. return srv.(SystemServer).OrganizationUserResetPassword(ctx, req.(*v1.OrganizationUserResetPasswordRequest))
  460. }
  461. return interceptor(ctx, in, info, handler)
  462. }
  463. func _System_SystemLogAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  464. in := new(v1.SystemLogAddRequest)
  465. if err := dec(in); err != nil {
  466. return nil, err
  467. }
  468. if interceptor == nil {
  469. return srv.(SystemServer).SystemLogAdd(ctx, in)
  470. }
  471. info := &grpc.UnaryServerInfo{
  472. Server: srv,
  473. FullMethod: "/pb.service.System/SystemLogAdd",
  474. }
  475. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  476. return srv.(SystemServer).SystemLogAdd(ctx, req.(*v1.SystemLogAddRequest))
  477. }
  478. return interceptor(ctx, in, info, handler)
  479. }
  480. func _System_SystemLogList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  481. in := new(v1.SystemLogListRequest)
  482. if err := dec(in); err != nil {
  483. return nil, err
  484. }
  485. if interceptor == nil {
  486. return srv.(SystemServer).SystemLogList(ctx, in)
  487. }
  488. info := &grpc.UnaryServerInfo{
  489. Server: srv,
  490. FullMethod: "/pb.service.System/SystemLogList",
  491. }
  492. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  493. return srv.(SystemServer).SystemLogList(ctx, req.(*v1.SystemLogListRequest))
  494. }
  495. return interceptor(ctx, in, info, handler)
  496. }
  497. var _System_serviceDesc = grpc.ServiceDesc{
  498. ServiceName: "pb.service.System",
  499. HandlerType: (*SystemServer)(nil),
  500. Methods: []grpc.MethodDesc{
  501. {
  502. MethodName: "CreateUser",
  503. Handler: _System_CreateUser_Handler,
  504. },
  505. {
  506. MethodName: "Login",
  507. Handler: _System_Login_Handler,
  508. },
  509. {
  510. MethodName: "ChangePassword",
  511. Handler: _System_ChangePassword_Handler,
  512. },
  513. {
  514. MethodName: "CreateOrganization",
  515. Handler: _System_CreateOrganization_Handler,
  516. },
  517. {
  518. MethodName: "DeleteOrganization",
  519. Handler: _System_DeleteOrganization_Handler,
  520. },
  521. {
  522. MethodName: "UpdateOrganization",
  523. Handler: _System_UpdateOrganization_Handler,
  524. },
  525. {
  526. MethodName: "OrganizationList",
  527. Handler: _System_OrganizationList_Handler,
  528. },
  529. {
  530. MethodName: "CreateOrganizationUser",
  531. Handler: _System_CreateOrganizationUser_Handler,
  532. },
  533. {
  534. MethodName: "OrganizationUserList",
  535. Handler: _System_OrganizationUserList_Handler,
  536. },
  537. {
  538. MethodName: "OrganizationUserUpdate",
  539. Handler: _System_OrganizationUserUpdate_Handler,
  540. },
  541. {
  542. MethodName: "OrganizationUserResetPassword",
  543. Handler: _System_OrganizationUserResetPassword_Handler,
  544. },
  545. {
  546. MethodName: "SystemLogAdd",
  547. Handler: _System_SystemLogAdd_Handler,
  548. },
  549. {
  550. MethodName: "SystemLogList",
  551. Handler: _System_SystemLogList_Handler,
  552. },
  553. },
  554. Streams: []grpc.StreamDesc{},
  555. Metadata: "system_service.proto",
  556. }