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: "*" }; }; }