mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 19:37:18 +08:00
* Initial plan * feat: add date selector for log viewing - Add date parameter to log list API - Add log dates listing API - Update frontend with date selector in all log views - Add translations for Date field Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com> * refactor: cache regex patterns to avoid recompilation overhead Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com> * refactor: use predefined regex constants instead of sync.Map Simplified the regex caching by using predefined package-level constants for the three log types (app, db, http) instead of sync.Map. Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com> * fix: lint --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: devhaozi <115467771+devhaozi@users.noreply.github.com> Co-authored-by: 耗子 <haozi@loli.email>
14 lines
495 B
Go
14 lines
495 B
Go
package request
|
||
|
||
// LogList 日志列表请求
|
||
type LogList struct {
|
||
Type string `json:"type" form:"type" query:"type" validate:"required|in:app,db,http"`
|
||
Limit int `json:"limit" form:"limit" query:"limit" validate:"min:1|max:1000"`
|
||
Date string `json:"date" form:"date" query:"date"` // 日期,格式为 YYYY-MM-DD,空表示当天
|
||
}
|
||
|
||
// LogDates 日志日期列表请求
|
||
type LogDates struct {
|
||
Type string `json:"type" form:"type" query:"type" validate:"required|in:app,db,http"`
|
||
}
|