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"
|
|
|
|
|
"mayfly-go/pkg/model"
|
2021-06-07 17:22:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Account interface {
|
|
|
|
|
// 根据条件获取账号信息
|
|
|
|
|
GetAccount(condition *entity.Account, cols ...string) error
|
|
|
|
|
|
2023-07-24 22:36:07 +08:00
|
|
|
GetById(id uint64) *entity.Account
|
|
|
|
|
|
2023-07-01 14:34:42 +08:00
|
|
|
GetPageList(condition *entity.Account, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult[any]
|
2021-07-28 18:03:19 +08:00
|
|
|
|
|
|
|
|
Insert(account *entity.Account)
|
|
|
|
|
|
|
|
|
|
Update(account *entity.Account)
|
2021-06-07 17:22:07 +08:00
|
|
|
}
|