105 lines
4.1 KiB
Go
105 lines
4.1 KiB
Go
// ==========================================================================
|
||
// GFast自动生成api操作代码。
|
||
// 生成日期:2023-08-02 15:28:49
|
||
// 生成路径: api/v1/system/bus_scheduled_weekly.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"
|
||
)
|
||
|
||
// BusScheduledWeeklySearchReq 分页请求参数
|
||
type BusScheduledWeeklySearchReq struct {
|
||
g.Meta `path:"/list" tags:"周报" method:"get" summary:"周报列表"`
|
||
Status string `p:"status"` //施工类型状态
|
||
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
|
||
commonApi.PageReq
|
||
commonApi.Author
|
||
}
|
||
|
||
// BusScheduledWeeklySearchRes 列表返回结果
|
||
type BusScheduledWeeklySearchRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
commonApi.ListRes
|
||
List []*model.BusScheduledWeeklyListRes `json:"list"`
|
||
}
|
||
|
||
// BusScheduledWeeklyAddReq 添加操作请求参数
|
||
type BusScheduledWeeklyAddReq struct {
|
||
g.Meta `path:"/add" tags:"周报" method:"post" summary:"周报添加"`
|
||
commonApi.Author
|
||
PlanPeriodId int64 `p:"planPeriodId" `
|
||
WeeklyPlanName string `p:"weeklyPlanName" v:"required#施工分类下第几周不能为空"`
|
||
WeeklyStartTime string `p:"weeklyStartTime" `
|
||
WeeklyEndTime string `p:"weeklyEndTime" `
|
||
WeeklyPlanFinish string `p:"weeklyPlanFinish" `
|
||
WeeklyRealityFinish string `p:"weeklyRealityFinish" `
|
||
WeekyAccumulativeFinish string `p:"weekyAccumulativeFinish" `
|
||
WeekyAccumulativeTotal string `p:"weekyAccumulativeTotal" `
|
||
CompletionRate string `p:"completionRate" `
|
||
Leader string `p:"leader" `
|
||
Status string `p:"status" v:"required#施工类型状态不能为空"`
|
||
WeeklyDocumentUrl string `p:"weeklyDocumentUrl" `
|
||
}
|
||
|
||
// BusScheduledWeeklyAddRes 添加操作返回结果
|
||
type BusScheduledWeeklyAddRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// BusScheduledWeeklyEditReq 修改操作请求参数
|
||
type BusScheduledWeeklyEditReq struct {
|
||
g.Meta `path:"/edit" tags:"周报" method:"put" summary:"周报修改"`
|
||
commonApi.Author
|
||
PlanWeeklyId int64 `p:"planWeeklyId" v:"required#主键ID不能为空"`
|
||
PlanPeriodId int64 `p:"planPeriodId" `
|
||
WeeklyPlanName string `p:"weeklyPlanName" v:"required#施工分类下第几周不能为空"`
|
||
WeeklyStartTime string `p:"weeklyStartTime" `
|
||
WeeklyEndTime string `p:"weeklyEndTime" `
|
||
WeeklyPlanFinish string `p:"weeklyPlanFinish" `
|
||
WeeklyRealityFinish string `p:"weeklyRealityFinish" `
|
||
WeekyAccumulativeFinish string `p:"weekyAccumulativeFinish" `
|
||
WeekyAccumulativeTotal string `p:"weekyAccumulativeTotal" `
|
||
CompletionRate string `p:"completionRate" `
|
||
Leader string `p:"leader" `
|
||
Status string `p:"status" v:"required#施工类型状态不能为空"`
|
||
WeeklyDocumentUrl string `p:"weeklyDocumentUrl" `
|
||
}
|
||
|
||
// BusScheduledWeeklyEditRes 修改操作返回结果
|
||
type BusScheduledWeeklyEditRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// BusScheduledWeeklyGetReq 获取一条数据请求
|
||
type BusScheduledWeeklyGetReq struct {
|
||
g.Meta `path:"/get" tags:"周报" method:"get" summary:"获取周报信息"`
|
||
commonApi.Author
|
||
PlanWeeklyId int64 `p:"planWeeklyId" v:"required#主键必须"` //通过主键获取
|
||
}
|
||
|
||
// BusScheduledWeeklyGetRes 获取一条数据结果
|
||
type BusScheduledWeeklyGetRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
*model.BusScheduledWeeklyInfoRes
|
||
}
|
||
|
||
// BusScheduledWeeklyDeleteReq 删除数据请求
|
||
type BusScheduledWeeklyDeleteReq struct {
|
||
g.Meta `path:"/delete" tags:"周报" method:"delete" summary:"删除周报"`
|
||
commonApi.Author
|
||
PlanWeeklyIds []int64 `p:"planWeeklyIds" v:"required#主键必须"` //通过主键删除
|
||
}
|
||
|
||
// BusScheduledWeeklyDeleteRes 删除数据返回
|
||
type BusScheduledWeeklyDeleteRes struct {
|
||
commonApi.EmptyRes
|
||
}
|