feat: rbac迁移完成,并已部署至dev服务器
This commit is contained in:
@@ -185,16 +185,32 @@ message DictListResp {
|
||||
|
||||
message OperationRecordInfo {
|
||||
string id = 1;
|
||||
string clientId = 2;
|
||||
string ip = 3;
|
||||
string method = 4;
|
||||
string path = 5;
|
||||
int32 status = 6;
|
||||
int64 latency = 7;
|
||||
string agent = 8;
|
||||
string errorMessage = 9;
|
||||
string body = 10;
|
||||
string resp = 11;
|
||||
string userId = 12;
|
||||
int64 createdAt = 13;
|
||||
}
|
||||
|
||||
message CreateOperationRecordReq {
|
||||
string clientId = 1;
|
||||
string ip = 2;
|
||||
string method = 3;
|
||||
string path = 4;
|
||||
int32 status = 5;
|
||||
string agent = 6;
|
||||
string errorMessage = 7;
|
||||
string body = 8;
|
||||
string resp = 9;
|
||||
string userId = 10;
|
||||
int64 createdAt = 11;
|
||||
int64 latency = 6;
|
||||
string agent = 7;
|
||||
string errorMessage = 8;
|
||||
string body = 9;
|
||||
string resp = 10;
|
||||
string userId = 11;
|
||||
}
|
||||
|
||||
message OperationRecordListReq {
|
||||
@@ -210,7 +226,105 @@ message OperationRecordListResp {
|
||||
int64 total = 2;
|
||||
}
|
||||
|
||||
// ========== 请求/响应(原有) ==========
|
||||
// ========== 用户 ==========
|
||||
|
||||
message UserInfo {
|
||||
string id = 1;
|
||||
string tenantId = 2;
|
||||
string clientId = 3;
|
||||
string name = 4;
|
||||
string account = 5;
|
||||
string nickName = 6;
|
||||
string phone = 7;
|
||||
string sessionKey = 8;
|
||||
string unionId = 9;
|
||||
string openId = 10;
|
||||
string saOpenId = 11;
|
||||
string avatarId = 12;
|
||||
int32 gender = 13;
|
||||
string country = 14;
|
||||
string province = 15;
|
||||
string city = 16;
|
||||
string language = 17;
|
||||
int32 isVip = 18;
|
||||
int64 vipExpireAt = 19;
|
||||
string lastLoginIp = 20;
|
||||
int64 lastLoginAt = 21;
|
||||
int64 createdAt = 22;
|
||||
int64 updatedAt = 23;
|
||||
string avatarUrl = 24;
|
||||
}
|
||||
|
||||
message GetUserByIdReq {
|
||||
string id = 1;
|
||||
}
|
||||
|
||||
message GetUserByIdResp {
|
||||
UserInfo user = 1;
|
||||
}
|
||||
|
||||
message GetUserByOpenIdReq {
|
||||
string openId = 1;
|
||||
}
|
||||
|
||||
message GetUserByOpenIdResp {
|
||||
UserInfo user = 1;
|
||||
}
|
||||
|
||||
message CreateUserReq {
|
||||
string name = 1;
|
||||
string account = 2;
|
||||
string password = 3;
|
||||
string openId = 4;
|
||||
string sessionKey = 5;
|
||||
string clientId = 6;
|
||||
string phone = 7;
|
||||
}
|
||||
|
||||
message CreateUserResp {
|
||||
UserInfo user = 1;
|
||||
}
|
||||
|
||||
message UpdateUserReq {
|
||||
string id = 1;
|
||||
string name = 2;
|
||||
string account = 3;
|
||||
string phone = 4;
|
||||
string avatarId = 5;
|
||||
string nickName = 6;
|
||||
}
|
||||
|
||||
message LoginByAccountReq {
|
||||
string account = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
||||
message LoginByAccountResp {
|
||||
UserInfo user = 1;
|
||||
}
|
||||
|
||||
message GetUserListReq {
|
||||
int32 current = 1;
|
||||
int32 pageSize = 2;
|
||||
string name = 3;
|
||||
string account = 4;
|
||||
}
|
||||
|
||||
message GetUserListResp {
|
||||
repeated UserInfo list = 1;
|
||||
int64 total = 2;
|
||||
}
|
||||
|
||||
message DeleteUserReq {
|
||||
repeated string ids = 1;
|
||||
}
|
||||
|
||||
message ResetPasswordReq {
|
||||
string id = 1;
|
||||
string password = 2;
|
||||
}
|
||||
|
||||
// ========== 请求/响应(跨模块) ==========
|
||||
|
||||
message GetRolesByUserIdReq {
|
||||
string userId = 1;
|
||||
@@ -239,6 +353,16 @@ message GetClientByIdResp {
|
||||
// ========== 服务定义 ==========
|
||||
|
||||
service SystemService {
|
||||
// --- 用户 ---
|
||||
rpc GetUserById(GetUserByIdReq) returns (GetUserByIdResp);
|
||||
rpc GetUserByOpenId(GetUserByOpenIdReq) returns (GetUserByOpenIdResp);
|
||||
rpc LoginByAccount(LoginByAccountReq) returns (LoginByAccountResp);
|
||||
rpc CreateUser(CreateUserReq) returns (CreateUserResp);
|
||||
rpc UpdateUser(UpdateUserReq) returns (CommonResp);
|
||||
rpc GetUserList(GetUserListReq) returns (GetUserListResp);
|
||||
rpc DeleteUser(DeleteUserReq) returns (CommonResp);
|
||||
rpc ResetPassword(ResetPasswordReq) returns (CommonResp);
|
||||
|
||||
// --- 角色 ---
|
||||
rpc GetRolesByUserId(GetRolesByUserIdReq) returns (GetRolesByUserIdResp);
|
||||
rpc CreateRole(RoleReq) returns (CommonResp);
|
||||
@@ -251,7 +375,7 @@ service SystemService {
|
||||
rpc CreateMenu(MenuReq) returns (CommonResp);
|
||||
rpc UpdateMenu(MenuUpdateReq) returns (CommonResp);
|
||||
rpc DeleteMenu(IdsReq) returns (CommonResp);
|
||||
rpc GetMenuList(IdReq) returns (MenuListResp); // 传空id返回全部树
|
||||
rpc GetMenuList(IdReq) returns (MenuListResp);
|
||||
|
||||
// --- 客户端 ---
|
||||
rpc GetClientById(GetClientByIdReq) returns (GetClientByIdResp);
|
||||
@@ -267,6 +391,7 @@ service SystemService {
|
||||
rpc GetDictList(DictListReq) returns (DictListResp);
|
||||
|
||||
// --- 操作日志 ---
|
||||
rpc CreateOperationRecord(CreateOperationRecordReq) returns (CommonResp);
|
||||
rpc DeleteOperationRecord(IdsReq) returns (CommonResp);
|
||||
rpc GetOperationRecordList(OperationRecordListReq) returns (OperationRecordListResp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user