mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	refactor: 后端路由定义方式&请求参数绑定重构
This commit is contained in:
		
							
								
								
									
										7
									
								
								server/internal/sys/domain/entity/query.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								server/internal/sys/domain/entity/query.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
package entity
 | 
			
		||||
 | 
			
		||||
type SysLogQuery struct {
 | 
			
		||||
	CreatorId   uint64 `json:"creatorId" form:"creatorId"`
 | 
			
		||||
	Type        int8   `json:"type" form:"type"`
 | 
			
		||||
	Description string `json:"description" form:"description"`
 | 
			
		||||
}
 | 
			
		||||
@@ -3,7 +3,7 @@ package entity
 | 
			
		||||
import "time"
 | 
			
		||||
 | 
			
		||||
// 系统操作日志
 | 
			
		||||
type Syslog struct {
 | 
			
		||||
type SysLog struct {
 | 
			
		||||
	Id         uint64    `json:"id"`
 | 
			
		||||
	CreateTime time.Time `json:"createTime"`
 | 
			
		||||
	CreatorId  uint64    `json:"creatorId"`
 | 
			
		||||
@@ -15,7 +15,7 @@ type Syslog struct {
 | 
			
		||||
	Resp        string `json:"resp"`     // 响应结构
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (a *Syslog) TableName() string {
 | 
			
		||||
func (a *SysLog) TableName() string {
 | 
			
		||||
	return "t_sys_log"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user