Files
lone-services/rpc/analysis/analysis.proto
T
zzw 46d3f672bf
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 31s
CI / admin (push) Successful in 24s
CI / bff (push) Successful in 31s
CI / chore (push) Successful in 27s
CI / equipment (push) Successful in 21s
CI / express (push) Successful in 23s
CI / factory (push) Successful in 21s
CI / message (push) Successful in 21s
CI / order (push) Successful in 22s
CI / payment (push) Successful in 20s
CI / percutaneous (push) Successful in 20s
CI / product (push) Successful in 20s
CI / record (push) Successful in 19s
CI / sale (push) Successful in 19s
CI / support (push) Successful in 20s
CI / task (push) Successful in 19s
CI / user (push) Successful in 21s
CI / wecom (push) Successful in 22s
feat: device info and bind
2026-10-16 15:36:17 +08:00

189 lines
3.5 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: "*"
};
}
}
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 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 {}