feat: 系统日志支持按描述搜索

This commit is contained in:
meilin.huang
2023-07-04 14:13:47 +08:00
parent fa58f6d2de
commit e3f4c298b0
5 changed files with 62 additions and 27 deletions

View File

@@ -14,8 +14,9 @@ type Syslog struct {
func (r *Syslog) Syslogs(rc *req.Ctx) {
g := rc.GinCtx
condition := &entity.Syslog{
Type: int8(ginx.QueryInt(g, "type", 0)),
CreatorId: uint64(ginx.QueryInt(g, "creatorId", 0)),
Type: int8(ginx.QueryInt(g, "type", 0)),
CreatorId: uint64(ginx.QueryInt(g, "creatorId", 0)),
Description: ginx.Query(g, "description", ""),
}
rc.ResData = r.SyslogApp.GetPageList(condition, ginx.GetPageParam(g), new([]entity.Syslog), "create_time DESC")
}