Files
lone-services/rpc/record/record.proto
T
gjs 04402a8bdf
CI / changes (push) Successful in 36s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 18s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 20s
CI / sale (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s
lonelog to record
2026-09-03 20:40:08 +08:00

73 lines
1.4 KiB
Protocol Buffer

syntax = "proto3";
import "google/api/annotations.proto";
package record;
option go_package = "lone-services/rpc/record";
message ItemsRequest {
int32 page = 1;
int32 size = 2;
int32 type = 3;
string ip = 4;
int64 admin_id = 5;
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 Record {
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);
}