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: "*" }; } } 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: "*" }; } } 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 nickname = 2; string birthday = 3; string mobile = 4; int32 gender = 5; string password = 6; string district = 7; string address = 8; } 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"]; }