2021-06-07 17:22:07 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
|
|
import (
|
2022-06-02 17:41:11 +08:00
|
|
|
"mayfly-go/internal/sys/domain/entity"
|
2023-10-26 17:15:49 +08:00
|
|
|
"mayfly-go/pkg/base"
|
2021-06-07 17:22:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Resource interface {
|
2023-10-26 17:15:49 +08:00
|
|
|
base.Repo[*entity.Resource]
|
2021-06-07 17:22:07 +08:00
|
|
|
|
|
|
|
|
// 获取账号资源列表
|
2023-10-26 17:15:49 +08:00
|
|
|
GetAccountResources(accountId uint64, toEntity any) error
|
2023-06-15 19:18:29 +08:00
|
|
|
|
|
|
|
|
// 获取所有子节点id
|
|
|
|
|
GetChildren(uiPath string) []entity.Resource
|
|
|
|
|
|
|
|
|
|
// 根据uiPath右匹配更新所有相关类资源
|
2023-10-26 17:15:49 +08:00
|
|
|
UpdateByUiPathLike(resource *entity.Resource) error
|
2021-06-07 17:22:07 +08:00
|
|
|
}
|