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"
|
2021-06-07 17:22:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Resource interface {
|
|
|
|
|
// 获取资源列表
|
2023-06-01 12:31:32 +08:00
|
|
|
GetResourceList(condition *entity.Resource, toEntity any, orderBy ...string)
|
2021-06-07 17:22:07 +08:00
|
|
|
|
|
|
|
|
GetById(id uint64, cols ...string) *entity.Resource
|
|
|
|
|
|
2023-06-01 12:31:32 +08:00
|
|
|
GetByIdIn(ids []uint64, toEntity any, orderBy ...string)
|
2021-06-07 17:22:07 +08:00
|
|
|
|
|
|
|
|
Delete(id uint64)
|
|
|
|
|
|
|
|
|
|
GetByCondition(condition *entity.Resource, cols ...string) error
|
|
|
|
|
|
|
|
|
|
// 获取账号资源列表
|
2023-06-01 12:31:32 +08:00
|
|
|
GetAccountResources(accountId uint64, toEntity any)
|
2021-06-07 17:22:07 +08:00
|
|
|
}
|