1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb_v1;
- // 用于生成指定语言go的包名称
- option go_package = "cp-system-management/pb/v1";
- message InitOrganizationDbRequest{
- string organization_code = 1;
- }
- message InitOrganizationDbReply{
- }
- message RbacNode {
- int64 id = 1;
- string name =2;
- string router=3;
- string method=4;
- string resource=5;
- string object=6;
- int64 pid=7;
- bool is_super = 8;
- }
- message CreateManagementUserRequest{
- string organization_code = 1;
- string username = 2;
- string password = 3;
- string phone = 4;
- string email = 5;
- repeated RbacNode rbac_node_list=6;
- bool is_supper_user = 7;
- int64 group_id = 8;
- string zones = 9;
- }
- message CreateManagementUserReply{
- int64 uid = 1;
- }
- message ManagementSuperUserItem {
- string organization_code = 1;
- string username = 2;
- string phone = 3;
- string email = 4;
- int64 id = 5;
- string created_at = 6;
- }
- // 供系统端调用
- message ManagementSuperUserListRequest {
- int64 page = 1;
- int64 page_size = 2;
- string organization_code = 3;
- }
- message ManagementSuperUserListReply {
- int64 total = 1;
- int64 page = 2;
- repeated ManagementSuperUserItem list = 3;
- }
- message ManagementSuperUserUpdateRequest {
- string organization_code = 1;
- string username = 2;
- string phone = 3;
- string email = 4;
- int64 id = 5;
- string password = 6;
- }
- message ManagementSuperUserUpdateReply {
- ManagementSuperUserUpdateRequest origin = 1;
- }
- message ManagementSuperUserResetPasswordRequest {
- string organization_code = 1;
- int64 id = 2;
- string password = 3;
- }
- message ManagementSuperUserResetPasswordReply {
- }
|