float62 32 格式化为两位
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package task;
|
||||
option go_package="./task";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
string data = 3;
|
||||
}
|
||||
|
||||
message EmtpyRequest {
|
||||
}
|
||||
|
||||
message EditRequest {
|
||||
int64 id = 1;
|
||||
int32 type =2;
|
||||
int32 time =3;
|
||||
int64 province =4;
|
||||
string province_name =5;
|
||||
string task =6;
|
||||
string award =7;
|
||||
int64 product_id =8;
|
||||
}
|
||||
|
||||
message IdRequest {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message StatusRequest {
|
||||
int64 id = 1;
|
||||
int32 status = 2;
|
||||
string reason = 3;
|
||||
}
|
||||
|
||||
service Task {
|
||||
rpc Items(EmtpyRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/task/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Info(IdRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/task/info"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Create(EditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/task/create"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Edit(EditRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/task/edit"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc Status(StatusRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/task/status"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user