change layout
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
package lonelog;
|
||||
option go_package = "lone-services/rpc/lonelog";
|
||||
|
||||
|
||||
message ItemsRequest {
|
||||
int32 page = 1;
|
||||
int32 size = 2;
|
||||
int32 type = 3;
|
||||
string ip = 4;
|
||||
int64 admin_id = 5;
|
||||
int64 service_id = 6;
|
||||
repeated string time = 7;
|
||||
}
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
string data = 3;
|
||||
}
|
||||
|
||||
message ActionLog {
|
||||
string content = 1;
|
||||
int64 admin_id = 2;
|
||||
string admin_name = 3;
|
||||
int32 type = 4;
|
||||
string module_name = 5;
|
||||
string ip = 6;
|
||||
string browser_info = 7;
|
||||
string browser_name = 8;
|
||||
string browser_version = 9;
|
||||
string reason = 10;
|
||||
string create_time = 11;
|
||||
}
|
||||
|
||||
message LoginLog {
|
||||
int64 admin_id = 1;
|
||||
string ip = 2;
|
||||
string name = 3;
|
||||
string browser_info = 4;
|
||||
string browser_name = 5;
|
||||
string browser_version = 6;
|
||||
int32 status = 7;
|
||||
string create_time = 8;
|
||||
string reason = 9;
|
||||
}
|
||||
|
||||
service Lonelog {
|
||||
rpc Items(ItemsRequest) returns(Response){
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/log/items"
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
rpc ActionAdd(ActionLog) returns(Response);
|
||||
rpc LoginAdd(LoginLog) returns(Response);
|
||||
}
|
||||
Reference in New Issue
Block a user