mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-18 15:20:24 +08:00
20 lines
560 B
Go
20 lines
560 B
Go
|
|
package persistence
|
||
|
|
|
||
|
|
import (
|
||
|
|
"mayfly-go/base/model"
|
||
|
|
"mayfly-go/server/sys/domain/entity"
|
||
|
|
"mayfly-go/server/sys/domain/repository"
|
||
|
|
)
|
||
|
|
|
||
|
|
type accountRepo struct{}
|
||
|
|
|
||
|
|
var AccountDao repository.Account = &accountRepo{}
|
||
|
|
|
||
|
|
func (a *accountRepo) GetAccount(condition *entity.Account, cols ...string) error {
|
||
|
|
return model.GetBy(condition, cols...)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (m *accountRepo) GetPageList(condition *entity.Account, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) model.PageResult {
|
||
|
|
return model.GetPage(pageParam, condition, toEntity, orderBy...)
|
||
|
|
}
|