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-system-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, 0xdb, 0x4a, 0xeb, 0x40,
  30. 0x14, 0x86, 0xf7, 0xcd, 0x2e, 0x9b, 0xc5, 0xf6, 0x34, 0x96, 0x52, 0x6b, 0xd5, 0x5a, 0xbc, 0x11,
  31. 0x69, 0x4a, 0xf5, 0x05, 0xd4, 0x8a, 0x20, 0x04, 0x94, 0x4a, 0x41, 0xbc, 0xb0, 0x4c, 0x9a, 0x45,
  32. 0x0c, 0xb4, 0x49, 0xcc, 0x8c, 0x2d, 0xf1, 0x85, 0x7d, 0x0d, 0x21, 0xab, 0x13, 0x73, 0x98, 0xa9,
  33. 0x5e, 0xf6, 0xff, 0xff, 0xf9, 0xd6, 0xa1, 0x93, 0x81, 0xba, 0x48, 0x84, 0xc4, 0xf9, 0x44, 0x60,
  34. 0xbc, 0xf0, 0xa7, 0x68, 0x45, 0x71, 0x28, 0x43, 0x06, 0x91, 0x63, 0xad, 0x94, 0xd6, 0xd6, 0x62,
  35. 0xd0, 0xa7, 0x10, 0x99, 0xe7, 0x9f, 0xff, 0xa0, 0xf6, 0x98, 0x0a, 0xec, 0x12, 0x60, 0x18, 0x23,
  36. 0x97, 0x38, 0x16, 0x18, 0xb3, 0xa6, 0x15, 0x39, 0x93, 0xc5, 0xc0, 0xfa, 0x96, 0x46, 0xf8, 0xf6,
  37. 0x8e, 0x42, 0xb6, 0x1a, 0x1a, 0x27, 0x9a, 0x25, 0xdd, 0x3f, 0x6c, 0x00, 0x7f, 0xed, 0xd0, 0xf3,
  38. 0x03, 0xb6, 0xbb, 0x8a, 0xa4, 0xbf, 0xd4, 0xb9, 0x9d, 0xa2, 0x48, 0x47, 0x6c, 0xd8, 0x1c, 0xbe,
  39. 0xf2, 0xc0, 0xc3, 0x07, 0x2e, 0xc4, 0x32, 0x8c, 0x5d, 0xd6, 0x56, 0xf8, 0x82, 0xac, 0x20, 0x2d,
  40. 0x83, 0x4b, 0xb4, 0x27, 0x60, 0xd4, 0xd5, 0x7d, 0xec, 0xf1, 0xc0, 0xff, 0xe0, 0xd2, 0x0f, 0x03,
  41. 0xd6, 0x29, 0x34, 0x9c, 0xb7, 0x14, 0xf5, 0x70, 0x4d, 0x22, 0x23, 0xdf, 0xe0, 0x0c, 0x0d, 0xe4,
  42. 0xaa, 0x55, 0x26, 0xeb, 0x12, 0x19, 0x79, 0x1c, 0xb9, 0xa6, 0x9e, 0xab, 0x56, 0x99, 0xac, 0x4b,
  43. 0x10, 0x79, 0x04, 0xdb, 0x79, 0xd9, 0xf6, 0x85, 0x64, 0xea, 0x54, 0xd9, 0x50, 0xd4, 0xb6, 0xd1,
  44. 0x27, 0xa6, 0x0b, 0x8d, 0xea, 0x92, 0xd2, 0x0b, 0x73, 0x62, 0xdc, 0x61, 0xfe, 0xf2, 0x74, 0x7f,
  45. 0x48, 0x51, 0x95, 0x17, 0xa8, 0x97, 0xad, 0xb4, 0xfb, 0xae, 0xa6, 0x3b, 0x65, 0xaa, 0x0a, 0x9d,
  46. 0xb5, 0x99, 0x6c, 0x8a, 0xb2, 0x4d, 0x6b, 0xcc, 0xa6, 0xd0, 0xdb, 0xe5, 0x29, 0x4c, 0x29, 0xaa,
  47. 0x92, 0xc0, 0x41, 0x75, 0x40, 0x81, 0x32, 0xbb, 0xea, 0x67, 0x06, 0x4c, 0x21, 0xa5, 0x6a, 0x9e,
  48. 0xfe, 0x2e, 0x4c, 0xa5, 0x6f, 0xe1, 0x3f, 0x7d, 0xd5, 0x76, 0xe8, 0x5d, 0xb9, 0x2e, 0x53, 0x9f,
  49. 0x4d, 0x5e, 0x54, 0xe0, 0xa6, 0xd6, 0x23, 0xce, 0x1d, 0x6c, 0x64, 0x72, 0xfa, 0x0f, 0xec, 0x97,
  50. 0xc3, 0xf9, 0xd5, 0xef, 0xe9, 0xcd, 0x14, 0x75, 0x7d, 0xfc, 0x7c, 0x34, 0x8d, 0x7a, 0xf4, 0xf8,
  51. 0xf4, 0xe6, 0x3c, 0xe0, 0x1e, 0xce, 0x31, 0x90, 0x3d, 0x8f, 0x4b, 0x5c, 0xf2, 0xa4, 0x1f, 0x39,
  52. 0x4e, 0x2d, 0x7d, 0x93, 0x2e, 0xbe, 0x02, 0x00, 0x00, 0xff, 0xff, 0xca, 0x0d, 0xcd, 0x85, 0xc8,
  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. }