feat: user items
This commit is contained in:
@@ -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: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user