system_service.proto 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. import "v1/system.proto";
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb.service;
  5. // 用于生成指定语言go的包名称
  6. option go_package = "cp-organization-management/pb";
  7. // The system service definition.
  8. service System {
  9. // 创建系统用户
  10. rpc CreateUser(pb_v1.CreateUserRequest) returns (pb_v1.CreateUserReply){}
  11. // 系统用户登录
  12. rpc Login(pb_v1.LoginRequest) returns (pb_v1.LoginReply){}
  13. // 修改密码
  14. rpc ChangePassword(pb_v1.ChangePasswordRequest) returns (pb_v1.ChangePasswordReply){}
  15. // 创建机构
  16. rpc CreateOrganization(pb_v1.CreateOrganizationRequest) returns (pb_v1.CreateOrganizationReply){}
  17. // 删除机构
  18. rpc DeleteOrganization(pb_v1.DeleteOrganizationRequest) returns (pb_v1.DeleteOrganizationReply){}
  19. // 修改机构
  20. rpc UpdateOrganization(pb_v1.UpdateOrganizationRequest) returns (pb_v1.UpdateOrganizationReply){}
  21. // 机构列表
  22. rpc OrganizationList(pb_v1.OrganizationListRequest) returns (pb_v1.OrganizationListReply){}
  23. // 创建机构超级管理员账号
  24. rpc CreateOrganizationUser(pb_v1.CreateOrganizationUserRequest) returns (pb_v1.CreateOrganizationUserReply){}
  25. // 机构key认证,机构端调用
  26. rpc OrganizationKeyAuth(pb_v1.OrganizationKeyAuthRequest) returns (pb_v1.OrganizationKeyAuthReply){}
  27. }