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; } message ItemsLoginRequest { int32 page = 1; int32 size = 2; string ip = 3; int64 admin_id = 4; repeated string time = 5; } service Lonelog { rpc Items(ItemsRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/log/action" body: "*" }; }; rpc LoginItems(ItemsRequest) returns(Response){ option (google.api.http) = { get: "/admin/v3/log/login" body: "*" }; }; rpc ActionAdd(ActionLog) returns(Response); rpc LoginAdd(LoginLog) returns(Response); }