修bug
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
package dto
|
||||
|
||||
import "git.huangwc.com/pig/pig-farm-controller/internal/infra/models"
|
||||
import (
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/infra/models"
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/infra/repository"
|
||||
)
|
||||
|
||||
// ListPlansQuery 定义了获取计划列表时的查询参数
|
||||
type ListPlansQuery struct {
|
||||
PlanType string `form:"planType,default=custom"` // 计划类型 (all, custom, system),默认为 custom
|
||||
Page int `form:"page,default=1"` // 页码
|
||||
PageSize int `form:"pageSize,default=10"` // 每页大小
|
||||
PlanType repository.PlanTypeFilter `form:"planType,default=自定义任务"` // 计划类型
|
||||
Page int `form:"page,default=1"` // 页码
|
||||
PageSize int `form:"pageSize,default=10"` // 每页大小
|
||||
}
|
||||
|
||||
// CreatePlanRequest 定义创建计划请求的结构体
|
||||
|
||||
@@ -25,9 +25,9 @@ var (
|
||||
type PlanTypeFilter string
|
||||
|
||||
const (
|
||||
PlanTypeFilterAll PlanTypeFilter = "all"
|
||||
PlanTypeFilterCustom PlanTypeFilter = "custom"
|
||||
PlanTypeFilterSystem PlanTypeFilter = "system"
|
||||
PlanTypeFilterAll PlanTypeFilter = "所有任务"
|
||||
PlanTypeFilterCustom PlanTypeFilter = "自定义任务"
|
||||
PlanTypeFilterSystem PlanTypeFilter = "系统任务"
|
||||
)
|
||||
|
||||
// ListPlansOptions 定义了查询计划时的可选参数
|
||||
|
||||
Reference in New Issue
Block a user