// ========================================================================== // GFast自动生成api操作代码。 // 生成日期:2023-09-26 14:31:07 // 生成路径: api/v1/system/plan_daily.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" ) // PlanDailySearchReq 分页请求参数 type PlanDailySearchReq struct { g.Meta `path:"/list" tags:"日报" method:"get" summary:"日报列表"` ProjectId string `p:"projectId"` //项目id SourceId string `p:"sourceId"` //资源id Name string `p:"name"` //资源名称 CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` // commonApi.PageReq commonApi.Author } // PlanDailySearchRes 列表返回结果 type PlanDailySearchRes struct { g.Meta `mime:"application/json"` commonApi.ListRes List []*model.PlanDailyListRes `json:"list"` } // PlanDailyAddReq 添加操作请求参数 type PlanDailyAddReq struct { g.Meta `path:"/add" tags:"日报" method:"post" summary:"日报添加"` commonApi.Author ProjectId string `p:"projectId" ` SourceId string `p:"sourceId" ` Name string `p:"name" ` SourceType string `p:"sourceType" ` Cnt int `p:"cnt" ` DataTime string `p:"dataTime" ` Status int `p:"status" ` } // PlanDailyAddRes 添加操作返回结果 type PlanDailyAddRes struct { commonApi.EmptyRes } // PlanDailyEditReq 修改操作请求参数 type PlanDailyEditReq struct { g.Meta `path:"/edit" tags:"日报" method:"put" summary:"日报修改"` commonApi.Author Id int64 `p:"id" v:"required#主键ID不能为空"` ProjectId string `p:"projectId" ` SourceId string `p:"sourceId" ` Name string `p:"name" ` SourceType string `p:"sourceType" ` Cnt int `p:"cnt" ` DataTime string `p:"dataTime" ` Status int `p:"status" ` } // PlanDailyEditRes 修改操作返回结果 type PlanDailyEditRes struct { commonApi.EmptyRes } // PlanDailyGetReq 获取一条数据请求 type PlanDailyGetReq struct { g.Meta `path:"/get" tags:"日报" method:"get" summary:"获取日报信息"` commonApi.Author Id int64 `p:"id" v:"required#主键必须"` //通过主键获取 } // PlanDailyGetRes 获取一条数据结果 type PlanDailyGetRes struct { g.Meta `mime:"application/json"` *model.PlanDailyInfoRes } // PlanDailyDeleteReq 删除数据请求 type PlanDailyDeleteReq struct { g.Meta `path:"/delete" tags:"日报" method:"delete" summary:"删除日报"` commonApi.Author Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除 } // PlanDailyDeleteRes 删除数据返回 type PlanDailyDeleteRes struct { commonApi.EmptyRes }