organization_service.proto 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. syntax = "proto3";
  2. import "v1/organization.proto";
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb.service;
  5. // 用于生成指定语言go的包名称
  6. option go_package = "cp-organization-management/pb";
  7. // The organization service definition.
  8. service Organization {
  9. // 初始化数据库
  10. rpc InitOrganizationDb(pb_v1.InitOrganizationDbRequest) returns (pb_v1.InitOrganizationDbReply){}
  11. // 创建机构账号
  12. rpc CreateManagementUser(pb_v1.CreateManagementUserRequest) returns (pb_v1.CreateManagementUserReply){}
  13. // 系统端获取超级管理员账户列表
  14. rpc ManagementSuperUserList(pb_v1.ManagementSuperUserListRequest) returns (pb_v1.ManagementSuperUserListReply){}
  15. // 系统端更新超级管理员用户信息
  16. rpc ManagementSuperUserUpdate(pb_v1.ManagementSuperUserUpdateRequest) returns (pb_v1.ManagementSuperUserUpdateReply){}
  17. // 系统端重置超级管理员密码
  18. rpc ManagementSuperUserResetPassword(pb_v1.ManagementSuperUserResetPasswordRequest) returns (pb_v1.ManagementSuperUserResetPasswordReply){}
  19. rpc ManagementLogin(pb_v1.ManagementLoginRequest) returns (pb_v1.ManagementLoginReply){}
  20. // 权限节点列表
  21. rpc RbacNodeList(pb_v1.RbacNodeListRequest) returns (pb_v1.RbacNodeListReply){}
  22. // 角色列表
  23. rpc RbacGroupList(pb_v1.RbacGroupListRequest) returns (pb_v1.RbacGroupListReply){}
  24. // 角色或用户下的权限节点列表
  25. rpc RbacNodeListByGroupOrUser(pb_v1.RbacNodeListByGroupOrUserRequest) returns (pb_v1.RbacNodeListByGroupOrUserReply){}
  26. // 添加角色
  27. rpc RbacGroupAdd(pb_v1.RbacGroupAddRequest) returns (pb_v1.RbacGroupAddReply){}
  28. // 修改角色
  29. rpc RbacGroupUpdate(pb_v1.RbacGroupUpdateRequest) returns (pb_v1.RbacGroupUpdateReply){}
  30. // 删除角色
  31. rpc RbacGroupDel(pb_v1.RbacGroupDelRequest) returns (pb_v1.RbacGroupDelReply){}
  32. // 添加区域
  33. rpc ZoneAdd(pb_v1.ZoneAddRequest) returns (pb_v1.ZoneAddReply){}
  34. // 删除区域
  35. rpc ZoneDel(pb_v1.ZoneDelRequest) returns (pb_v1.ZoneDelReply){}
  36. // 更新区域
  37. rpc ZoneUpdate(pb_v1.ZoneUpdateRequest) returns (pb_v1.ZoneUpdateReply){}
  38. // 区域列表
  39. rpc ZoneList(pb_v1.ZoneListRequest) returns (pb_v1.ZoneListReply){}
  40. // 用户管理
  41. rpc UserUpdate(pb_v1.UserUpdateRequest) returns (pb_v1.UserUpdateReply){}
  42. rpc UserDel(pb_v1.UserDelRequest) returns (pb_v1.UserDelReply){}
  43. rpc UserList(pb_v1.UserListRequest) returns (pb_v1.UserListReply){}
  44. rpc UserInfo(pb_v1.UserInfoRequest) returns (pb_v1.UserInfoReply){}
  45. // 添加系统操作日志
  46. rpc ManagementLogAdd(pb_v1.ManagementLogAddRequest) returns (pb_v1.ManagementLogAddReply){}
  47. // 系统操作日志列表
  48. rpc ManagementLogList(pb_v1.ManagementLogListRequest) returns (pb_v1.ManagementLogListReply){}
  49. }