This commit is contained in:
oneao committed 2026-01-28 17:19:41 +08:00
1 parent 5ca04f85ca
commit d9c49b34db
17 files changed
+452 -175

No files matched your search

@@ -38,4 +38,9 @@ service SpaceService {
rpc JoinSpace(JoinSpaceParams) returns (JoinSpaceResult) {
option (api.post) = "/space/join";
};
// 赋予权限
rpc UpdateSpaceUserRole(UpdateSpaceUserRoleParams) returns (UpdateSpaceUserRoleResult) {
option (api.post) = "/space/updateRole";
}
}
@@ -12,7 +12,7 @@ message CreateSpaceParams {
}
message CreateSpaceResult {
int64 Id = 1 [(api.body)="id"];
int64 SpaceId = 1 [(api.body)="space_id"];
string InviteCode = 2 [(api.body)="invite_code"];
}
@@ -48,13 +48,13 @@ message JoinSpaceParams {
}
message JoinSpaceResult {
int64 Id = 1 [(api.body)="id"];
string Name = 2 [(api.body)="name"];
int64 SpaceId = 1 [(api.body)="space_id"];
string SpaceName = 2 [(api.body)="space_name"];
}
// 退出空间
message ExitSpaceParams {
int64 SpaceId = 1 [(api.body)="space_id"];
}
message ExitSpaceResult {
@@ -71,4 +71,13 @@ message RemoveSpaceUserResult {
}
// 更新权限
message UpdateSpaceUserRoleParams {
int64 SpaceId = 1 [(api.body) = "space_id",(api.vd)="$ != 0"];
int64 UserId = 2 [(api.body) = "user_id",(api.vd)="$ != 0"];
int32 Role = 3 [(api.body) = "role",(api.vd)="$ != 0"];
}
message UpdateSpaceUserRoleResult {
}