Files
zmkgC/api/v1/system/plan_week_reality.go
2025-07-07 20:11:59 +08:00

128 lines
5.2 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-08-17 17:23:07
// 生成路径: api/v1/system/plan_week_reality.go
// 生成人xyb
// desc:实际完成的周计划相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
type PlanWeekRealityCompareReq struct {
g.Meta `path:"/compare" tags:"实际完成的周计划" method:"get" summary:"实际完成的和计划的周计划对比"`
PlanID string `p:"plan_id" v:"required"` //
commonApi.Author
}
type PlanWeekRealityCompareRes struct {
g.Meta `mime:"application/json"`
PlanList []model.Task `json:"plan_list"`
RealityList []model.Task `json:"reality_list"`
}
// PlanWeekRealitySearchReq 分页请求参数
type PlanWeekRealitySearchReq struct {
g.Meta `path:"/list" tags:"实际完成的周计划" method:"get" summary:"实际完成的周计划列表"`
Id string `p:"id"` //
ProjectId string `p:"projectId" v:"required#项目id不能为空"` //项目id
DateRange []string `p:"dateRange" dc:"时间范围格式为2023-08-08"` //日期范围
//SourceId string `p:"sourceId"` //资源id
//Name string `p:"name"` //资源名称
//Start string `p:"start"` //开始时间
//End string `p:"end"` //结束时间
//PlanName string `p:"planName"` //计划名称
//PlanId string `p:"planId"` //周id
//CreateBy string `p:"createBy"` //
//UpdateBy string `p:"updateBy"` //
//CreateAt string `p:"createAt" v:"createAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
//UpdateAt string `p:"updateAt" v:"updateAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
//Table string `p:"table"` //source_id的数据对应的数据表
//Status string `p:"status" v:"status@integer#工作状态0未开始1进行中2已完成需为整数"` //工作状态0未开始1进行中2已完成
//SourceType string `p:"sourceType"` //资源类型
//commonApi.PageReq
commonApi.Author
}
// PlanWeekRealitySearchRes 列表返回结果
type PlanWeekRealitySearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.PlanWeekRealityListRes `json:"list"`
}
// PlanWeekRealityAddReq 添加操作请求参数
type PlanWeekRealityAddReq struct {
g.Meta `path:"/add" tags:"实际完成的周计划" method:"post" summary:"实际完成的周计划添加"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
PlanID string `p:"planId" v:"required#计划id"`
Start string `p:"start" v:"required#开始时间不能为空"`
End string `p:"end" v:"required#结束时间不能为空"`
PlanName string `p:"planName" v:"required#计划名称不能为空"`
Tasks []task `p:"tasks" `
}
// PlanWeekRealityAddRes 添加操作返回结果
type PlanWeekRealityAddRes struct {
commonApi.EmptyRes
}
// PlanWeekRealityEditReq 修改操作请求参数
type PlanWeekRealityEditReq struct {
g.Meta `path:"/edit" tags:"实际完成的周计划" method:"put" summary:"实际完成的周计划修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
SourceId string `p:"sourceId" v:"required#资源id不能为空"`
Name string `p:"name" v:"required#资源名称不能为空"`
Start string `p:"start" v:"required#开始时间不能为空"`
End string `p:"end" v:"required#结束时间不能为空"`
PlanName string `p:"planName" v:"required#计划名称不能为空"`
PlanId string `p:"planId" v:"required#周id不能为空"`
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
CreateAt *gtime.Time `p:"createAt" `
UpdateAt *gtime.Time `p:"updateAt" `
Table string `p:"table" `
Status int `p:"status" v:"required#工作状态0未开始1进行中2已完成不能为空"`
SourceType string `p:"sourceType" `
}
// PlanWeekRealityEditRes 修改操作返回结果
type PlanWeekRealityEditRes struct {
commonApi.EmptyRes
}
// PlanWeekRealityGetReq 获取一条数据请求
type PlanWeekRealityGetReq struct {
g.Meta `path:"/get" tags:"实际完成的周计划" method:"get" summary:"获取实际完成的周计划信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// PlanWeekRealityGetRes 获取一条数据结果
type PlanWeekRealityGetRes struct {
g.Meta `mime:"application/json"`
*model.PlanWeekRealityInfoRes
}
// PlanWeekRealityDeleteReq 删除数据请求
type PlanWeekRealityDeleteReq struct {
g.Meta `path:"/delete" tags:"实际完成的周计划" method:"delete" summary:"删除实际完成的周计划"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// PlanWeekRealityDeleteRes 删除数据返回
type PlanWeekRealityDeleteRes struct {
commonApi.EmptyRes
}