mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	refactor: interface{} -> any
feat: 新增外链菜单
This commit is contained in:
		@@ -9,7 +9,7 @@ type Account interface {
 | 
			
		||||
	// 根据条件获取账号信息
 | 
			
		||||
	GetAccount(condition *entity.Account, cols ...string) error
 | 
			
		||||
 | 
			
		||||
	GetPageList(condition *entity.Account, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
 | 
			
		||||
	GetPageList(condition *entity.Account, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult
 | 
			
		||||
 | 
			
		||||
	Insert(account *entity.Account)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Config interface {
 | 
			
		||||
	GetPageList(condition *entity.Config, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
 | 
			
		||||
	GetPageList(condition *entity.Config, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult
 | 
			
		||||
 | 
			
		||||
	Insert(config *entity.Config)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Msg interface {
 | 
			
		||||
	GetPageList(condition *entity.Msg, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
 | 
			
		||||
	GetPageList(condition *entity.Msg, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult
 | 
			
		||||
 | 
			
		||||
	Insert(msg *entity.Msg)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,16 +6,16 @@ import (
 | 
			
		||||
 | 
			
		||||
type Resource interface {
 | 
			
		||||
	// 获取资源列表
 | 
			
		||||
	GetResourceList(condition *entity.Resource, toEntity interface{}, orderBy ...string)
 | 
			
		||||
	GetResourceList(condition *entity.Resource, toEntity any, orderBy ...string)
 | 
			
		||||
 | 
			
		||||
	GetById(id uint64, cols ...string) *entity.Resource
 | 
			
		||||
 | 
			
		||||
	GetByIdIn(ids []uint64, toEntity interface{}, orderBy ...string)
 | 
			
		||||
	GetByIdIn(ids []uint64, toEntity any, orderBy ...string)
 | 
			
		||||
 | 
			
		||||
	Delete(id uint64)
 | 
			
		||||
 | 
			
		||||
	GetByCondition(condition *entity.Resource, cols ...string) error
 | 
			
		||||
 | 
			
		||||
	// 获取账号资源列表
 | 
			
		||||
	GetAccountResources(accountId uint64, toEntity interface{})
 | 
			
		||||
	GetAccountResources(accountId uint64, toEntity any)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,14 +6,14 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Role interface {
 | 
			
		||||
	GetPageList(condition *entity.Role, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
 | 
			
		||||
	GetPageList(condition *entity.Role, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult
 | 
			
		||||
 | 
			
		||||
	Delete(id uint64)
 | 
			
		||||
 | 
			
		||||
	// 获取角色拥有的资源id数组,从role_resource表获取
 | 
			
		||||
	GetRoleResourceIds(roleId uint64) []uint64
 | 
			
		||||
 | 
			
		||||
	GetRoleResources(roleId uint64, toEntity interface{})
 | 
			
		||||
	GetRoleResources(roleId uint64, toEntity any)
 | 
			
		||||
 | 
			
		||||
	SaveRoleResource(rr *entity.RoleResource)
 | 
			
		||||
 | 
			
		||||
@@ -27,5 +27,5 @@ type Role interface {
 | 
			
		||||
	DeleteAccountRole(accountId, roleId uint64)
 | 
			
		||||
 | 
			
		||||
	// 获取账号角色信息列表
 | 
			
		||||
	GetAccountRoles(accountId uint64, toEntity interface{})
 | 
			
		||||
	GetAccountRoles(accountId uint64, toEntity any)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type Syslog interface {
 | 
			
		||||
	GetPageList(condition *entity.Syslog, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
 | 
			
		||||
	GetPageList(condition *entity.Syslog, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult
 | 
			
		||||
 | 
			
		||||
	Insert(log *entity.Syslog)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user