Files
lone-services/rpc/equipment/equipment.proto
T
gjs eb96aaa2ef
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 44s
CI / admin (push) Successful in 39s
CI / bff (push) Successful in 32s
CI / chore (push) Successful in 38s
CI / express (push) Successful in 42s
CI / product (push) Successful in 43s
CI / sale (push) Successful in 42s
CI / task (push) Successful in 42s
CI / user (push) Successful in 42s
CI / wecom (push) Successful in 41s
epuiment
2026-09-01 15:38:59 +08:00

84 lines
1.6 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/equipment/items"
body: "*"
};
};
rpc Info(IdRequest) returns(Response){
option (google.api.http) = {
get: "/admin/v3/equipment/info"
body: "*"
};
};
rpc Create(CreateRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/equipment/create"
body: "*"
};
};
rpc Edit(EditRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/equipment/edit"
body: "*"
};
};
rpc Status(StatusRequest) returns(Response){
option (google.api.http) = {
post: "/admin/v3/equipment/status"
body: "*"
};
};
}