mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-15 21:53:48 +08:00
tt
This commit is contained in:
47
hotgo-server/app/form/adminForm/log_form.go
Normal file
47
hotgo-server/app/form/adminForm/log_form.go
Normal file
@@ -0,0 +1,47 @@
|
||||
package adminForm
|
||||
|
||||
import (
|
||||
"github.com/bufanyun/hotgo/app/form"
|
||||
"github.com/bufanyun/hotgo/app/form/input"
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// 清空日志
|
||||
type LogClearReq struct {
|
||||
g.Meta `path:"/log/clear" method:"post" tags:"日志" summary:"清空日志"`
|
||||
}
|
||||
type LogClearRes struct{}
|
||||
|
||||
// 导出
|
||||
type LogExportReq struct {
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
Module string `json:"module" description:"应用端口"`
|
||||
MemberId int `json:"member_id" description:"用户ID"`
|
||||
TakeUpTime int `json:"take_up_time" description:"请求耗时"`
|
||||
Method string `json:"method" description:"请求方式"`
|
||||
Url string `json:"url" description:"请求路径"`
|
||||
Ip string `json:"ip" description:"访问IP"`
|
||||
ErrorCode string `json:"error_code" description:"状态码"`
|
||||
g.Meta `path:"/log/export" method:"get" tags:"日志" summary:"导出日志"`
|
||||
}
|
||||
type LogExportRes struct{}
|
||||
|
||||
// 获取菜单列表
|
||||
type LogListReq struct {
|
||||
form.PageReq
|
||||
form.RangeDateReq
|
||||
Module string `json:"module" description:"应用端口"`
|
||||
MemberId int `json:"member_id" description:"用户ID"`
|
||||
TakeUpTime int `json:"take_up_time" description:"请求耗时"`
|
||||
Method string `json:"method" description:"请求方式"`
|
||||
Url string `json:"url" description:"请求路径"`
|
||||
Ip string `json:"ip" description:"访问IP"`
|
||||
ErrorCode string `json:"error_code" description:"状态码"`
|
||||
g.Meta `path:"/log/list" method:"get" tags:"日志" summary:"获取日志列表"`
|
||||
}
|
||||
|
||||
type LogListRes struct {
|
||||
List []*input.LogListModel `json:"list" description:"数据列表"`
|
||||
form.PageRes
|
||||
}
|
||||
Reference in New Issue
Block a user