system_service.pb.go 27 KB

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