mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-08 18:30:25 +08:00
22 lines
503 B
Go
22 lines
503 B
Go
|
|
package repository
|
||
|
|
|
||
|
|
import (
|
||
|
|
"mayfly-go/server/sys/domain/entity"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Resource interface {
|
||
|
|
// 获取资源列表
|
||
|
|
GetResourceList(condition *entity.Resource, toEntity interface{}, orderBy ...string)
|
||
|
|
|
||
|
|
GetById(id uint64, cols ...string) *entity.Resource
|
||
|
|
|
||
|
|
GetByIdIn(ids []uint64, toEntity interface{}, cols ...string)
|
||
|
|
|
||
|
|
Delete(id uint64)
|
||
|
|
|
||
|
|
GetByCondition(condition *entity.Resource, cols ...string) error
|
||
|
|
|
||
|
|
// 获取账号资源列表
|
||
|
|
GetAccountResources(accountId uint64, toEntity interface{})
|
||
|
|
}
|