Files
lone-services/rpc/analysis/analysis.proto
T
zzw 70543fbcb0
CI / changes (push) Successful in 1m33s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / analysis (push) Successful in 32s
CI / bff (push) Successful in 17s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 1s
CI / record (push) Successful in 0s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 0s
CI / task (push) Successful in 0s
CI / support (push) Successful in 1s
CI / user (push) Successful in 1s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s
feat: analysis user improve
2026-10-27 10:34:12 +08:00

495 lines
9.4 KiB
Protocol Buffer

syntax = "proto3";
package analysis;
option go_package = "lone-services/rpc/analysis";
import "google/api/annotations.proto";
service Analysis {
rpc InternalCreateUser(InternalCreateUserReq) returns (InternalCreateUserData);
rpc InternalSetRegistered(InternalSetRegisteredReq) returns (InternalSetRegisteredData);
rpc AgreementInfo(AgreementInfoReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/agreement/info"
body: "*"
};
}
rpc Switch(SwitchReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/switch"
body: "*"
};
}
rpc QrcodeInfo(QrcodeInfoReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/qrcode/info"
body: "*"
};
}
rpc Log(LogReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/log"
body: "*"
};
}
rpc Overview(OverviewReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/overview"
body: "*"
};
}
rpc User(UserReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user"
body: "*"
};
}
rpc UserDetail(UserDetailReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/detail"
body: "*"
};
}
rpc UserFacepp(TaskIdReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/facepp"
body: "*"
};
}
rpc UserMode(EmptyReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/mode"
body: "*"
};
}
rpc UserLog(LogReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/log"
body: "*"
};
}
rpc Banners(EmptyReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/banners"
body: "*"
};
}
rpc QrcodeShare(QrcodeShareReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/qrcode/share"
body: "*"
};
}
rpc GraphDetail(GraphDetailReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/graph/detail"
body: "*"
};
}
rpc FaceppMaps(TaskIdReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/facepp/maps"
body: "*"
};
}
rpc FaceppMapBoxes(FaceppMapBoxesReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/facepp/maps/boxes"
body: "*"
};
}
rpc FaceppMapBoxDelete(IdReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/facepp/maps/boxes/delete"
body: "*"
};
}
rpc ImagesDate(ImagesDateReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/images/date"
body: "*"
};
}
rpc ImagesList(ImagesListReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/images/list"
body: "*"
};
}
rpc ModeImage(TaskIdReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/common/user/mode/image"
body: "*"
};
}
rpc DeviceUpdate(DeviceUpdateReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/device/update"
body: "*"
};
}
}
service AnalysisUser {
rpc FaceBind(FaceBindReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/face/bind"
body: "*"
};
}
rpc UserImprove(UserImproveReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/user/improve"
body: "*"
};
}
rpc UserDelete(UserDeleteReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/user/delete"
body: "*"
};
}
rpc UserAuth(UserAuthReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/user/auth"
body: "*"
};
}
rpc UserAuthList(UserAuthListReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/user/auth/list"
body: "*"
};
}
rpc UserAuthDelete(UserAuthDeleteReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/user/auth/delete"
body: "*"
};
}
rpc UserAuthUpdate(UserAuthUpdateReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/user/auth/update"
body: "*"
};
}
rpc DeviceBind(DeviceBindReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/device/bind"
body: "*"
};
}
rpc DeviceInfo(DeviceInfoReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/device/info"
body: "*"
};
}
rpc UserLogDelete(UserLogDeleteReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/user/log/delete"
body: "*"
};
}
rpc UserStatus(UserStatusReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/user/status"
body: "*"
};
}
}
service AnalysisStore {
rpc StoreAuth(StoreAuthReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/store/auth"
body: "*"
};
}
rpc StoreAuthQrcode(StoreAuthQrcodeReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/store/auth/qrcode"
body: "*"
};
}
rpc StoreInfo(StoreInfoReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/store/info"
body: "*"
};
}
rpc StoreUserList(StoreUserListReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/store/list"
body: "*"
};
}
rpc StoreUserUpdate(StoreUserUpdateReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/store/user/update"
body: "*"
};
}
rpc StoreUserInfo(StoreUserInfoReq) returns (Response) {
option (google.api.http) = {
post: "/api/v2/analysis/store/user/info"
body: "*"
};
}
}
service AnalysisDevice {
rpc Policy(DevicePolicyReq) returns (Response) {
option (google.api.http) = {
post: "/device/v1/analysis/policy"
body: "*"
};
}
rpc Display(DeviceDisplayReq) returns (Response) {
option (google.api.http) = {
post: "/device/v1/analysis/display"
body: "*"
};
}
rpc OssCallback(OssCallbackReq) returns (OssCallbackResp) {
option (google.api.http) = {
post: "/api/v1/oss/callback"
body: "*"
};
}
}
message Response {
int32 code = 1;
string msg = 2;
string data = 3;
}
message InternalCreateUserReq {}
message InternalCreateUserData {
int64 id = 1;
}
message InternalSetRegisteredReq {
int64 id = 1;
}
message InternalSetRegisteredData {
bool ok = 1;
}
message UserImproveReq {
string avatar = 1;
string name = 2;
string birthday = 3;
string mobile = 4;
int32 gender = 5;
string password = 6;
}
message FaceBindReq {
string face_path = 1;
}
message AgreementInfoReq {
int32 type = 1;
}
message UserDeleteReq {
int64 id = 1;
}
message SwitchReq {
int32 type = 1;
}
message QrcodeInfoReq {
int64 id = 1;
}
message StoreAuthReq {
string username = 1;
string password = 2;
string validity_time = 3;
}
message StoreAuthQrcodeReq {}
message StoreInfoReq {
int64 id = 1;
}
message StoreDetailReq {}
message StoreUserListReq {
repeated string date = 1;
string keyword = 2;
int32 gender = 3;
string tag = 4;
int32 age_min = 5;
int32 age_max = 6;
int32 page = 7;
int32 size = 8;
}
message StoreUserUpdateReq {
int64 user_id = 1;
optional string name = 2;
optional int32 gender = 3;
optional string birthday = 4;
repeated string tag = 5;
}
message StoreUserInfoReq {
int64 user_id = 1;
}
message UserAuthReq {
int32 type = 1;
int64 store_id = 2;
string validity_time = 3;
}
message UserAuthListReq {}
message UserAuthDeleteReq {
int64 id = 1;
}
message UserAuthUpdateReq {
int64 id = 1;
string validity_time = 2;
}
message DeviceBindReq {
string device_no = 1;
}
message DeviceInfoReq {}
message DevicePolicyReq {
string serial_no = 1;
}
message DeviceDisplayReq {
string task_id = 1;
}
message OssCallbackReq {
string bucket = 1;
string object = 2;
string etag = 3;
int64 size = 4;
string mimeType = 5;
string task_id = 6;
}
message OssCallbackResp {
string Status = 1 [json_name = "Status"];
}
message UserLogDeleteReq {
repeated int64 ids = 1;
}
message UserStatusReq {}
message EmptyReq {}
message LogReq {
int64 user_id = 1;
int32 page = 2;
int32 size = 3;
}
message OverviewReq {
int64 user_id = 1;
int64 id = 2;
}
message UserReq {
int64 user_id = 1;
}
message UserDetailReq {
int64 id = 1;
}
message TaskIdReq {
string task_id = 1;
}
message QrcodeShareReq {
repeated int64 ids = 1;
}
message GraphDetailReq {
int32 type = 1;
}
message FaceppMapBoxesReq {
int64 id = 1;
string boxes = 2;
}
message IdReq {
int64 id = 1;
}
message ImagesDateReq {
int64 user_id = 1;
string start_time = 2;
string end_time = 3;
}
message ImagesListReq {
int64 user_id = 1;
string mode = 2;
string position = 3;
string start_time = 4;
string end_time = 5;
}
message DeviceUpdateReq {
int64 id = 1;
string device_name = 2;
}