mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
24 lines
582 B
Go
24 lines
582 B
Go
package repository
|
|
|
|
import (
|
|
"mayfly-go/internal/devops/domain/entity"
|
|
"mayfly-go/pkg/model"
|
|
)
|
|
|
|
type MachineScript interface {
|
|
// 分页获取机器脚本信息列表
|
|
GetPageList(condition *entity.MachineScript, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
|
|
|
|
// 根据条件获取
|
|
GetMachineScript(condition *entity.MachineScript, cols ...string) error
|
|
|
|
// 根据id获取
|
|
GetById(id uint64, cols ...string) *entity.MachineScript
|
|
|
|
Delete(id uint64)
|
|
|
|
Create(entity *entity.MachineScript)
|
|
|
|
UpdateById(entity *entity.MachineScript)
|
|
}
|