123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- syntax = "proto3";
- import "v1/organization.proto";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb.service;
- // 用于生成指定语言go的包名称
- option go_package = "cp-organization-management-gateway/pb";
- // The organization service definition.
- service Organization {
- // 初始化数据库
- rpc InitOrganizationDb(pb_v1.InitOrganizationDbRequest) returns (pb_v1.InitOrganizationDbReply){}
- // 创建机构账号
- rpc CreateManagementUser(pb_v1.CreateManagementUserRequest) returns (pb_v1.CreateManagementUserReply){}
- // 系统端获取超级管理员账户列表
- rpc ManagementSuperUserList(pb_v1.ManagementSuperUserListRequest) returns (pb_v1.ManagementSuperUserListReply){}
- // 系统端更新超级管理员用户信息
- rpc ManagementSuperUserUpdate(pb_v1.ManagementSuperUserUpdateRequest) returns (pb_v1.ManagementSuperUserUpdateReply){}
- // 系统端重置超级管理员密码
- rpc ManagementSuperUserResetPassword(pb_v1.ManagementSuperUserResetPasswordRequest) returns (pb_v1.ManagementSuperUserResetPasswordReply){}
- rpc ManagementLogin(pb_v1.ManagementLoginRequest) returns (pb_v1.ManagementLoginReply){}
- // 权限节点列表
- rpc RbacNodeList(pb_v1.RbacNodeListRequest) returns (pb_v1.RbacNodeListReply){}
- // 角色列表
- rpc RbacGroupList(pb_v1.RbacGroupListRequest) returns (pb_v1.RbacGroupListReply){}
- // 角色或用户下的权限节点列表
- rpc RbacNodeListByGroupOrUser(pb_v1.RbacNodeListByGroupOrUserRequest) returns (pb_v1.RbacNodeListByGroupOrUserReply){}
- // 添加角色
- rpc RbacGroupAdd(pb_v1.RbacGroupAddRequest) returns (pb_v1.RbacGroupAddReply){}
- // 修改角色
- rpc RbacGroupUpdate(pb_v1.RbacGroupUpdateRequest) returns (pb_v1.RbacGroupUpdateReply){}
- // 删除角色
- rpc RbacGroupDel(pb_v1.RbacGroupDelRequest) returns (pb_v1.RbacGroupDelReply){}
- // 添加区域
- rpc ZoneAdd(pb_v1.ZoneAddRequest) returns (pb_v1.ZoneAddReply){}
- // 删除区域
- rpc ZoneDel(pb_v1.ZoneDelRequest) returns (pb_v1.ZoneDelReply){}
- // 更新区域
- rpc ZoneUpdate(pb_v1.ZoneUpdateRequest) returns (pb_v1.ZoneUpdateReply){}
- // 区域列表
- rpc ZoneList(pb_v1.ZoneListRequest) returns (pb_v1.ZoneListReply){}
- // 用户管理
- rpc UserUpdate(pb_v1.UserUpdateRequest) returns (pb_v1.UserUpdateReply){}
- rpc UserDel(pb_v1.UserDelRequest) returns (pb_v1.UserDelReply){}
- rpc UserList(pb_v1.UserListRequest) returns (pb_v1.UserListReply){}
- rpc UserInfo(pb_v1.UserInfoRequest) returns (pb_v1.UserInfoReply){}
- // 添加系统操作日志
- rpc ManagementLogAdd(pb_v1.ManagementLogAddRequest) returns (pb_v1.ManagementLogAddReply){}
- // 系统操作日志列表
- rpc ManagementLogList(pb_v1.ManagementLogListRequest) returns (pb_v1.ManagementLogListReply){}
- }
|