mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	feat: redis支持flushdb、菜单资源支持拖拽排序、禁用等
This commit is contained in:
		@@ -231,3 +231,7 @@ func GetListBySql(sql string, params ...any) []map[string]any {
 | 
			
		||||
func GetListBySql2Model(sql string, toEntity any, params ...any) error {
 | 
			
		||||
	return global.Db.Raw(sql, params...).Find(toEntity).Error
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func ExecSql(sql string, params ...any) {
 | 
			
		||||
	global.Db.Exec(sql, params...)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user