2021-05-08 18:00:33 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
|
|
import (
|
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 MachineFile interface {
|
|
|
|
|
// 分页获取机器脚本信息列表
|
2023-10-26 17:15:49 +08:00
|
|
|
GetPageList(condition *entity.MachineFile, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error)
|
2021-05-08 18:00:33 +08:00
|
|
|
|
|
|
|
|
// 根据条件获取
|
|
|
|
|
GetMachineFile(condition *entity.MachineFile, cols ...string) error
|
|
|
|
|
|
|
|
|
|
// 根据id获取
|
|
|
|
|
GetById(id uint64, cols ...string) *entity.MachineFile
|
|
|
|
|
|
2023-10-26 17:15:49 +08:00
|
|
|
Delete(id uint64) error
|
2021-05-08 18:00:33 +08:00
|
|
|
|
2023-10-26 17:15:49 +08:00
|
|
|
Create(entity *entity.MachineFile) error
|
2021-05-08 18:00:33 +08:00
|
|
|
|
2023-10-26 17:15:49 +08:00
|
|
|
UpdateById(entity *entity.MachineFile) error
|
2021-05-08 18:00:33 +08:00
|
|
|
}
|