2022-10-26 20:49:29 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"mayfly-go/internal/machine/domain/entity"
|
|
|
|
|
"mayfly-go/pkg/model"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type MachineTaskConfig interface {
|
2023-06-01 12:31:32 +08:00
|
|
|
GetPageList(condition *entity.MachineTaskConfig, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult
|
2022-10-26 20:49:29 +08:00
|
|
|
|
|
|
|
|
// 根据条件获取
|
|
|
|
|
GetBy(condition *entity.MachineTaskConfig, cols ...string) error
|
|
|
|
|
|
|
|
|
|
// 根据id获取
|
|
|
|
|
GetById(id uint64, cols ...string) *entity.MachineTaskConfig
|
|
|
|
|
|
|
|
|
|
Delete(id uint64)
|
|
|
|
|
|
|
|
|
|
Create(entity *entity.MachineTaskConfig)
|
|
|
|
|
|
|
|
|
|
UpdateById(entity *entity.MachineTaskConfig)
|
|
|
|
|
}
|