Files
lone-services/rpc/equipment/equipment.proto
T
gjs bfc3ec90a0
CI / changes (push) Successful in 40s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 36s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 33s
CI / express (push) Successful in 0s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s
equipment
2026-09-01 16:15:35 +08:00

84 lines
1.5 KiB
Protocol Buffer

syntax = "proto3";
package equipment;
option go_package="./equipment";
import "google/api/annotations.proto";
message Response {
int32 code = 1;
string msg = 2;
string data = 3;
}
message CreateRequest {
string hardware_version =1;
string version =2;
string firmware_src =3;
string describe =4;
int32 type =5;
string soft_src =6;
string add_src =7;
string soft_config =8;
}
message EditRequest {
int64 id = 1;
string hardware_version =2;
string version =3;
string firmware_src =4;
string describe =5;
int32 type =6;
string soft_src =7;
string add_src =8;
string soft_config =9;
}
message ItemsRequest {
int32 page = 1;
int32 size =2;
int32 type =3;
}
message IdRequest {
int64 id = 1;
}
message StatusRequest {
int64 id = 1;
int32 status = 2;
string reason = 3;
}
service Equipment {
rpc Items(ItemsRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/version/items"
body: "*"
};
};
rpc Info(IdRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/version/info"
body: "*"
};
};
rpc Create(CreateRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/version/create"
body: "*"
};
};
rpc Edit(EditRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/version/edit"
body: "*"
};
};
rpc Status(StatusRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/version/status"
body: "*"
};
};
}