246 lines
4.6 KiB
Protocol Buffer
246 lines
4.6 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 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: "*"
|
|
};
|
|
}
|
|
}
|
|
|
|
service AnalysisUser {
|
|
rpc UserRegister(UserRegisterReq) returns (Response) {
|
|
option (google.api.http) = {
|
|
post: "/api/v2/analysis/user/register"
|
|
body: "*"
|
|
};
|
|
}
|
|
|
|
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 {}
|
|
|
|
message Response {
|
|
int32 code = 1;
|
|
string msg = 2;
|
|
string data = 3;
|
|
}
|
|
|
|
message InternalCreateUserReq {}
|
|
|
|
message InternalCreateUserData {
|
|
int64 id = 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 UserRegisterReq {
|
|
string code = 1;
|
|
}
|
|
|
|
message FaceBindReq {
|
|
string face_path = 1;
|
|
}
|
|
|
|
message AgreementInfoReq {
|
|
int32 type = 1;
|
|
}
|
|
|
|
message UserDeleteReq {
|
|
int64 id = 1;
|
|
}
|
|
|
|
message SwitchReq {
|
|
int32 type = 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 {}
|