Files
lone-services/rpc/lonelog/lonelog.proto
T
gjs be8f89f449
CI / changes (push) Successful in 5s
CI / docker-bff (push) Failing after 7s
CI / docker-product (push) Failing after 5s
CI / docker-admin (push) Failing after 4s
CI / docker-user (push) Failing after 6s
change layout
2026-08-20 15:41:44 +08:00

60 lines
1.1 KiB
Protocol Buffer

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);
}