mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 07:50:25 +08:00
20 lines
448 B
Go
20 lines
448 B
Go
package repository
|
|
|
|
import (
|
|
"mayfly-go/internal/sys/domain/entity"
|
|
"mayfly-go/pkg/model"
|
|
)
|
|
|
|
type Account interface {
|
|
// 根据条件获取账号信息
|
|
GetAccount(condition *entity.Account, cols ...string) error
|
|
|
|
GetById(id uint64) *entity.Account
|
|
|
|
GetPageList(condition *entity.Account, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult[any]
|
|
|
|
Insert(account *entity.Account)
|
|
|
|
Update(account *entity.Account)
|
|
}
|