feat: analysis admin

This commit is contained in:
zzw
2026-11-02 10:06:20 +08:00
parent 5d20c150f4
commit f77913f8a7
34 changed files with 2302 additions and 139 deletions
+53
View File
@@ -274,6 +274,13 @@ service AnalysisStore {
}
service AnalysisDevice {
rpc FaceLogin(FaceLoginReq) returns (Response) {
option (google.api.http) = {
post: "/device/v1/login/face"
body: "*"
};
}
rpc Policy(DevicePolicyReq) returns (Response) {
option (google.api.http) = {
post: "/device/v1/analysis/policy"
@@ -303,6 +310,29 @@ service AnalysisDevice {
}
}
service AnalysisAdmin {
rpc UserList(AdminUserListReq) returns (Response) {
option (google.api.http) = {
post: "/admin/v2/analysis/user/list"
body: "*"
};
}
rpc UserArchive(AdminUserArchiveReq) returns (Response) {
option (google.api.http) = {
post: "/admin/v2/analysis/user/archive"
body: "*"
};
}
rpc UserDetail(AdminUserDetailReq) returns (Response) {
option (google.api.http) = {
post: "/admin/v2/analysis/user/detail"
body: "*"
};
}
}
message Response {
int32 code = 1;
string msg = 2;
@@ -503,3 +533,26 @@ message DeviceUpdateReq {
int64 id = 1;
string device_name = 2;
}
message AdminUserListReq {
string keyword = 1;
int32 page = 2;
int32 size = 3;
}
message AdminUserArchiveReq {
int64 user_id = 1;
int32 page = 2;
int32 size = 3;
}
message AdminUserDetailReq {
int64 id = 1;
}
// FaceLoginReq 设备人脸登录。gRPC/网关不走 multipart,传 file(图片字节) 或共享盘 file_path 其一。
message FaceLoginReq {
bytes file = 1;
string file_path = 2;
string client_code = 3;
}