check params
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package admin;
|
||||
option go_package="./admin";
|
||||
|
||||
message AddRequest {
|
||||
string name = 1;
|
||||
string pwd = 2;
|
||||
}
|
||||
|
||||
message EditRequest {
|
||||
string name = 1;
|
||||
string pwd = 2;
|
||||
}
|
||||
|
||||
message StatusRequest {
|
||||
string name = 1 ;
|
||||
string pwd = 2 ;
|
||||
}
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
string data = 3;
|
||||
}
|
||||
|
||||
service Admin {
|
||||
rpc Add(AddRequest) returns(Response);
|
||||
rpc Edit(EditRequest) returns(Response);
|
||||
rpc Status(StatusRequest) returns(Response);
|
||||
}
|
||||
Reference in New Issue
Block a user