syntax = "proto3"; import "v1/system.proto"; // package声明符,用来防止不同的消息类型有命名冲突 package pb.service; // 用于生成指定语言go的包名称 option go_package = "cp-organization-management/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){} // 机构key认证,机构端调用 rpc OrganizationKeyAuth(pb_v1.OrganizationKeyAuthRequest) returns (pb_v1.OrganizationKeyAuthReply){} }