feat: user items

This commit is contained in:
zzw
2026-08-14 17:53:41 +08:00
parent 2cd2a5f6ff
commit beb17a141b
12 changed files with 567 additions and 18 deletions
+25
View File
@@ -37,6 +37,19 @@ message LoginReq {
string openid = 1;
}
// 管理端用户列表
message UserItemsReq {
string mobile = 1;
int32 page = 2;
int32 size = 3;
}
// 管理端修改用户状态
message UserStatusReq {
int64 id = 1;
int32 status = 2;
}
service User {
rpc Register(RegisterReq) returns (Response) {
option (google.api.http) = {
@@ -56,4 +69,16 @@ service User {
body: "*"
};
}
rpc UserItems(UserItemsReq) returns (Response) {
option (google.api.http) = {
get: "/admin/v3/user/items"
body: "*"
};
}
rpc UserStatus(UserStatusReq) returns (Response) {
option (google.api.http) = {
put: "/admin/v3/user/status"
body: "*"
};
}
}