1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- syntax = "proto3";
- import "v1/system.proto";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb.service;
- // 用于生成指定语言go的包名称
- option go_package = "cp-system-management-gateway/pb";
- // The system service definition.
- service System {
- // 创建系统用户
- rpc CreateUser(pb_v1.CreateUserRequest) returns (pb_v1.CreateUserReply){}
- // 系统用户登录
- rpc Login(pb_v1.LoginRequest) returns (pb_v1.LoginReply){}
- // 修改密码
- rpc ChangePassword(pb_v1.ChangePasswordRequest) returns (pb_v1.ChangePasswordReply){}
- // 创建机构
- rpc CreateOrganization(pb_v1.CreateOrganizationRequest) returns (pb_v1.CreateOrganizationReply){}
- // 删除机构
- rpc DeleteOrganization(pb_v1.DeleteOrganizationRequest) returns (pb_v1.DeleteOrganizationReply){}
- // 修改机构
- rpc UpdateOrganization(pb_v1.UpdateOrganizationRequest) returns (pb_v1.UpdateOrganizationReply){}
- // 机构列表
- rpc OrganizationList(pb_v1.OrganizationListRequest) returns (pb_v1.OrganizationListReply){}
- // 创建机构超级管理员账号
- rpc CreateOrganizationUser(pb_v1.CreateOrganizationUserRequest) returns (pb_v1.CreateOrganizationUserReply){}
- // 获取机构超级管理员账号
- rpc OrganizationUserList(pb_v1.OrganizationUserListRequest) returns (pb_v1.OrganizationUserListReply){}
- // 修改机构超级管理员账号
- rpc OrganizationUserUpdate(pb_v1.OrganizationUserUpdateRequest) returns (pb_v1.OrganizationUserUpdateReply){}
- // 重置机构超级管理员账号密码
- rpc OrganizationUserResetPassword(pb_v1.OrganizationUserResetPasswordRequest) returns (pb_v1.OrganizationUserResetPasswordReply){}
- // 添加系统操作日志
- rpc SystemLogAdd(pb_v1.SystemLogAddRequest) returns (pb_v1.SystemLogAddReply){}
- // 系统操作日志列表
- rpc SystemLogList(pb_v1.SystemLogListRequest) returns (pb_v1.SystemLogListReply){}
- }
|