mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 16:30:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			510 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			510 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package api
 | 
						|
 | 
						|
import (
 | 
						|
	"mayfly-go/internal/sys/application"
 | 
						|
	"mayfly-go/internal/sys/domain/entity"
 | 
						|
	"mayfly-go/pkg/ctx"
 | 
						|
	"mayfly-go/pkg/ginx"
 | 
						|
)
 | 
						|
 | 
						|
type Syslog struct {
 | 
						|
	SyslogApp application.Syslog
 | 
						|
}
 | 
						|
 | 
						|
func (r *Syslog) Syslogs(rc *ctx.ReqCtx) {
 | 
						|
	g := rc.GinCtx
 | 
						|
	condition := &entity.Syslog{
 | 
						|
		Type:      int8(ginx.QueryInt(g, "type", 0)),
 | 
						|
		CreatorId: uint64(ginx.QueryInt(g, "creatorId", 0)),
 | 
						|
	}
 | 
						|
	rc.ResData = r.SyslogApp.GetPageList(condition, ginx.GetPageParam(g), new([]entity.Syslog), "create_time DESC")
 | 
						|
}
 |