2021-05-08 18:00:33 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
|
|
import (
|
2023-07-01 14:34:42 +08:00
|
|
|
"mayfly-go/internal/machine/api/vo"
|
2022-09-09 18:26:08 +08:00
|
|
|
"mayfly-go/internal/machine/domain/entity"
|
2022-06-02 17:41:11 +08:00
|
|
|
"mayfly-go/pkg/model"
|
2021-05-08 18:00:33 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Machine interface {
|
|
|
|
|
// 分页获取机器信息列表
|
2023-07-01 21:24:07 +08:00
|
|
|
GetMachineList(condition *entity.MachineQuery, pageParam *model.PageParam, toEntity *[]*vo.MachineVO, orderBy ...string) *model.PageResult[*[]*vo.MachineVO]
|
2021-05-08 18:00:33 +08:00
|
|
|
|
2022-10-26 20:49:29 +08:00
|
|
|
Count(condition *entity.MachineQuery) int64
|
2021-09-11 14:04:09 +08:00
|
|
|
|
2021-05-08 18:00:33 +08:00
|
|
|
// 根据条件获取账号信息
|
|
|
|
|
GetMachine(condition *entity.Machine, cols ...string) error
|
|
|
|
|
|
|
|
|
|
// 根据id获取
|
|
|
|
|
GetById(id uint64, cols ...string) *entity.Machine
|
|
|
|
|
|
|
|
|
|
Create(entity *entity.Machine)
|
|
|
|
|
|
|
|
|
|
UpdateById(entity *entity.Machine)
|
|
|
|
|
}
|