mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-06 09:20:25 +08:00
21 lines
495 B
Go
21 lines
495 B
Go
package api
|
|
|
|
import (
|
|
"mayfly-go/internal/sys/application"
|
|
"mayfly-go/internal/sys/domain/entity"
|
|
"mayfly-go/pkg/biz"
|
|
"mayfly-go/pkg/ginx"
|
|
"mayfly-go/pkg/req"
|
|
)
|
|
|
|
type Syslog struct {
|
|
SyslogApp application.Syslog
|
|
}
|
|
|
|
func (r *Syslog) Syslogs(rc *req.Ctx) {
|
|
queryCond, page := ginx.BindQueryAndPage[*entity.SysLogQuery](rc.GinCtx, new(entity.SysLogQuery))
|
|
res, err := r.SyslogApp.GetPageList(queryCond, page, new([]entity.SysLog), "create_time DESC")
|
|
biz.ErrIsNil(err)
|
|
rc.ResData = res
|
|
}
|