方法列表
创建日志
user
admin
RPC
createLog (CreateLogRequest) returns (CreateLogResponse)
HTTP
POST /LogService/createLog
输入对象:CreateLogRequest:
{ // 级别:info, warn, error string level; // 描述 string description; // 可选项,发生操作所在的页面URL string action; // 可选项,操作用户IP string ip; // 多语言消息 string langMessageCode; // 多语言消息中的参数项,格式:[arg1, arg2, ...] bytes langMessageArgsJSON; }
输出对象:CreateLogResponse:
{ }
计算日志数量
admin
RPC
countLogs (CountLogRequest) returns (RPCCountResponse)
HTTP
POST /LogService/countLogs
输入对象:CountLogRequest:
{ // 可选项,开始日期 string dayFrom; // 可选项,结束日期 string dayTo; // 可选项,关键词 string keyword; // 可选项,用户类型:admin|user;用户端固定为user string userType; // 可选项,错误级别:info, warn, error string level; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页日志
admin
RPC
listLogs (ListLogsRequest) returns (ListLogsResponse)
HTTP
POST /LogService/listLogs
输入对象:ListLogsRequest:
{ // 读取位置,从0开始 int64 offset; // 读取数量 int64 size; // 可选项,开始日期 string dayFrom; // 可选项,结束日期 string dayTo; // 可选项,关键词 string keyword; // 可选项,用户类型:admin|user;用户端固定为user string userType; // 可选项,错误级别:info, warn, error string level; }
输出对象:ListLogsResponse:
{ []Log logs; }
删除单条
admin
RPC
deleteLogPermanently (DeleteLogPermanentlyRequest) returns (RPCSuccess)
HTTP
POST /LogService/deleteLogPermanently
输入对象:DeleteLogPermanentlyRequest:
输出对象:RPCSuccess:
{ }
批量删除
admin
RPC
deleteLogsPermanently (DeleteLogsPermanentlyRequest) returns (RPCSuccess)
HTTP
POST /LogService/deleteLogsPermanently
输入对象:DeleteLogsPermanentlyRequest:
输出对象:RPCSuccess:
{ }
清理
admin
RPC
cleanLogsPermanently (CleanLogsPermanentlyRequest) returns (RPCSuccess)
HTTP
POST /LogService/cleanLogsPermanently
输入对象:CleanLogsPermanentlyRequest:
输出对象:RPCSuccess:
{ }
计算日志容量大小
admin
RPC
sumLogsSize (SumLogsSizeRequest) returns (SumLogsResponse)
HTTP
POST /LogService/sumLogsSize
输入对象:SumLogsSizeRequest:
{ }
输出对象:SumLogsResponse: