This commit is contained in:
2025-07-07 20:11:59 +08:00
parent ab0fdbc447
commit 06e3aa2eb3
2009 changed files with 193082 additions and 0 deletions

View File

@ -0,0 +1,111 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2024-03-13 18:17:32
// 生成路径: api/v1/system/project_schedule.go
// 生成人gfast
// desc:项目排期相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// ProjectScheduleSearchReq 分页请求参数
type ProjectScheduleSearchReq struct {
g.Meta `path:"/list" tags:"项目排期" method:"get" summary:"项目排期列表"`
Id string `p:"id"` //
ParentId string `p:"parentId" v:"parentId@integer#设施ID需为整数"` // 设施ID
StartDate string `p:"startDate"` // 开始时间
EndDate string `p:"endDate"` // 结束时间
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
Name string `p:"name"` // 项目名
PlaneNum string `p:"planeNum"` // 计划持有量
commonApi.PageReq
commonApi.Author
}
// ProjectScheduleSearchRes 列表返回结果
type ProjectScheduleSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ProjectScheduleListRes `json:"list"`
}
// ProjectScheduleAddReq 添加操作请求参数
type ProjectScheduleAddReq struct {
g.Meta `path:"/add" tags:"项目排期" method:"post" summary:"项目排期添加"`
commonApi.Author
ParentId int `p:"parentId" `
StartDate string `p:"startDate" `
EndDate string `p:"endDate" `
Name string `p:"name" `
PlaneNum string `p:"planeNum" `
}
// ProjectScheduleAddRes 添加操作返回结果
type ProjectScheduleAddRes struct {
commonApi.EmptyRes
}
// ProjectScheduleEditReq 修改操作请求参数
type ProjectScheduleEditReq struct {
g.Meta `path:"/edit" tags:"项目排期" method:"put" summary:"项目排期修改"`
commonApi.Author
Id uint `p:"id" v:"required#主键ID不能为空"`
ParentId int `p:"parentId" `
StartDate string `p:"startDate" `
EndDate string `p:"endDate" `
Name string `p:"name" `
PlaneNum string `p:"planeNum" `
}
// ProjectScheduleEditRes 修改操作返回结果
type ProjectScheduleEditRes struct {
commonApi.EmptyRes
}
// ProjectScheduleGetReq 获取一条数据请求
type ProjectScheduleGetReq struct {
g.Meta `path:"/get" tags:"项目排期" method:"get" summary:"获取项目排期信息"`
commonApi.Author
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
}
// ProjectScheduleGetRes 获取一条数据结果
type ProjectScheduleGetRes struct {
g.Meta `mime:"application/json"`
*model.ProjectScheduleInfoRes
}
// ProjectScheduleDeleteReq 删除数据请求
type ProjectScheduleDeleteReq struct {
g.Meta `path:"/delete" tags:"项目排期" method:"delete" summary:"删除项目排期"`
commonApi.Author
Ids []uint `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// ProjectScheduleDeleteRes 删除数据返回
type ProjectScheduleDeleteRes struct {
commonApi.EmptyRes
}
// 添加计划
type ProjectScheduleAddPlanReq struct {
g.Meta `path:"/addPlan" tags:"项目排期" method:"post" summary:"项目排期添加计划"`
commonApi.Author
ConstructionId int `p:"construction_Id" v:"required#项目id不能为空"`
StartDate string `p:"startDate" v:"required#开始时间不能为空"`
EndDate string `p:"endDate" v:"required#结束时间不能为空"`
Name string `p:"name"`
PlaneNum string `p:"planeNum" v:"required#计划持有量不能为空"`
Types int `p:"types" dc:"0|1为计划中" v:"required#计划类型不能为空"`
}
type ProjectScheduleAddPlanRes struct {
commonApi.EmptyRes
}