修改签名头
Build docker and publish / build (20.15.1) (push) Successful in 7m44s

This commit is contained in:
2026-03-05 23:31:45 -08:00
parent d575df9529
commit 6e13e67dc8
9 changed files with 416 additions and 159 deletions
+57
View File
@@ -190,6 +190,55 @@ type (
AutoClear *bool `json:"auto_clear"`
ClearDays int64 `json:"clear_days"`
}
GetErrorLogMessageListRequest {
Page int `form:"page"`
Size int `form:"size"`
Platform string `form:"platform,optional"`
Level uint8 `form:"level,optional"`
UserId int64 `form:"user_id,optional"`
DeviceId string `form:"device_id,optional"`
ErrorCode string `form:"error_code,optional"`
Keyword string `form:"keyword,optional"`
Start int64 `form:"start,optional"`
End int64 `form:"end,optional"`
}
ErrorLogMessage {
Id int64 `json:"id"`
Platform string `json:"platform"`
AppVersion string `json:"app_version"`
OsName string `json:"os_name"`
OsVersion string `json:"os_version"`
DeviceId string `json:"device_id"`
UserId int64 `json:"user_id"`
SessionId string `json:"session_id"`
Level uint8 `json:"level"`
ErrorCode string `json:"error_code"`
Message string `json:"message"`
CreatedAt int64 `json:"created_at"`
}
GetErrorLogMessageListResponse {
Total int64 `json:"total"`
List []ErrorLogMessage `json:"list"`
}
GetErrorLogMessageDetailResponse {
Id int64 `json:"id"`
Platform string `json:"platform"`
AppVersion string `json:"app_version"`
OsName string `json:"os_name"`
OsVersion string `json:"os_version"`
DeviceId string `json:"device_id"`
UserId int64 `json:"user_id"`
SessionId string `json:"session_id"`
Level uint8 `json:"level"`
ErrorCode string `json:"error_code"`
Message string `json:"message"`
Stack string `json:"stack"`
ClientIP string `json:"client_ip"`
UserAgent string `json:"user_agent"`
Locale string `json:"locale"`
OccurredAt int64 `json:"occurred_at"`
CreatedAt int64 `json:"created_at"`
}
)
@server (
@@ -257,5 +306,13 @@ service ppanel {
@doc "Update log setting"
@handler UpdateLogSetting
post /setting (LogSetting)
@doc "Get error log message list"
@handler GetErrorLogMessageList
get /error_message/list (GetErrorLogMessageListRequest) returns (GetErrorLogMessageListResponse)
@doc "Get error log message detail"
@handler GetErrorLogMessageDetail
get /error_message/detail returns (GetErrorLogMessageDetailResponse)
}