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,105 @@
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-10-08 09:38:35
// 生成路径: api/v1/system/master_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"
)
// MasterScheduleSearchReq 分页请求参数
type MasterScheduleSearchReq struct {
g.Meta `path:"/list" tags:"总进度计划" method:"get" summary:"总进度计划列表"`
Id string `p:"id"` //
ProjectId string `p:"projectId" v:"projectId@integer#项目id需为整数"` //项目id
Name string `p:"name"` //工作名称
Start string `p:"start"` //开始时间
End string `p:"end"` //结束时间
Content string `p:"content"` //备注
CreateBy string `p:"createBy"` //创建人
UpdateBy string `p:"updateBy"` //更新人
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
Sequence string `p:"sequence" v:"sequence@integer#顺序编号需为整数"` //顺序编号
commonApi.PageReq
commonApi.Author
commonApi.Paging
}
// MasterScheduleSearchRes 列表返回结果
type MasterScheduleSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.MasterScheduleListRes `json:"list"`
}
// MasterScheduleAddReq 添加操作请求参数
type MasterScheduleAddReq struct {
g.Meta `path:"/add" tags:"总进度计划" method:"post" summary:"总进度计划添加"`
commonApi.Author
ProjectId int `p:"projectId" `
Name string `p:"name" v:"required#工作名称不能为空"`
Start string `p:"start" `
End string `p:"end" `
Content string `p:"content" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
Sequence int `p:"sequence" `
}
// MasterScheduleAddRes 添加操作返回结果
type MasterScheduleAddRes struct {
commonApi.EmptyRes
}
// MasterScheduleEditReq 修改操作请求参数
type MasterScheduleEditReq struct {
g.Meta `path:"/edit" tags:"总进度计划" method:"put" summary:"总进度计划修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
ProjectId int `p:"projectId" `
Name string `p:"name" v:"required#工作名称不能为空"`
Start string `p:"start" `
End string `p:"end" `
Content string `p:"content" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
Sequence int `p:"sequence" `
}
// MasterScheduleEditRes 修改操作返回结果
type MasterScheduleEditRes struct {
commonApi.EmptyRes
}
// MasterScheduleGetReq 获取一条数据请求
type MasterScheduleGetReq struct {
g.Meta `path:"/get" tags:"总进度计划" method:"get" summary:"获取总进度计划信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// MasterScheduleGetRes 获取一条数据结果
type MasterScheduleGetRes struct {
g.Meta `mime:"application/json"`
*model.MasterScheduleInfoRes
}
// MasterScheduleDeleteReq 删除数据请求
type MasterScheduleDeleteReq struct {
g.Meta `path:"/delete" tags:"总进度计划" method:"delete" summary:"删除总进度计划"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// MasterScheduleDeleteRes 删除数据返回
type MasterScheduleDeleteRes struct {
commonApi.EmptyRes
}