104 lines
4.3 KiB
Go
104 lines
4.3 KiB
Go
// ==========================================================================
|
||
// GFast自动生成api操作代码。
|
||
// 生成日期:2024-04-09 15:40:16
|
||
// 生成路径: api/v1/system/bus_design_audit.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"
|
||
)
|
||
|
||
// BusDesignAuditSearchReq 分页请求参数
|
||
type BusDesignAuditSearchReq struct {
|
||
g.Meta `path:"/list" tags:"设计审核(竣工、施工、可研)" method:"get" summary:"设计审核(竣工、施工、可研)列表"`
|
||
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
|
||
TableType string `p:"tableType" dc:"表类型(1竣工 2施工 3可研)" v:"between:1,3#范围值为1~3"`
|
||
Status string `p:"status" dc:"审核状态(1未读 2拒绝 3通过)" v:"between:1,3#范围值为1~3"`
|
||
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
|
||
commonApi.PageReq
|
||
commonApi.Author
|
||
}
|
||
|
||
// BusDesignAuditSearchRes 列表返回结果
|
||
type BusDesignAuditSearchRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
commonApi.ListRes
|
||
List []*model.CoryAuditListRes `json:"list"`
|
||
}
|
||
|
||
// BusDesignAuditAddReq 添加操作请求参数
|
||
type BusDesignAuditAddReq struct {
|
||
g.Meta `path:"/add" tags:"设计审核(竣工、施工、可研)" method:"post" summary:"设计审核(竣工、施工、可研)添加"`
|
||
commonApi.Author
|
||
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
|
||
TableName string `p:"tableName" v:"required#表名不能为空"`
|
||
TableId int64 `p:"tableId" v:"required#表ID不能为空"`
|
||
}
|
||
|
||
// BusDesignAuditAddRes 添加操作返回结果
|
||
type BusDesignAuditAddRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// BusDesignAuditEditReq 修改操作请求参数
|
||
type BusDesignAuditEditReq struct {
|
||
g.Meta `path:"/edit" tags:"设计审核(竣工、施工、可研)" method:"put" summary:"设计审核(竣工、施工、可研)修改"`
|
||
commonApi.Author
|
||
Id int64 `p:"id" dc:"主键ID" v:"required#主键ID不能为空"`
|
||
Status string `p:"status" dc:"审核状态" v:"required#审核状态(2拒绝 3通过)不能为空" v:"between:2,3#取值范围为2~3"`
|
||
Cause string `p:"cause" dc:"拒绝原因(status为2必填)" v:"required-if:status,2#status未拒绝状态必填cause|max-length:300#最大输入字数为300"`
|
||
}
|
||
|
||
// BusDesignAuditEditRes 修改操作返回结果
|
||
type BusDesignAuditEditRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// BusDesignAuditGetReq 获取一条数据请求
|
||
type BusDesignAuditGetReq struct {
|
||
g.Meta `path:"/get" tags:"设计审核(竣工、施工、可研)" method:"get" summary:"获取设计审核(竣工、施工、可研)信息"`
|
||
commonApi.Author
|
||
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
|
||
}
|
||
|
||
// BusDesignAuditGetRes 获取一条数据结果
|
||
type BusDesignAuditGetRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
*model.BusDesignAuditInfoRes
|
||
}
|
||
|
||
// BusDesignAuditDeleteReq 删除数据请求
|
||
type BusDesignAuditDeleteReq struct {
|
||
g.Meta `path:"/delete" tags:"设计审核(竣工、施工、可研)" method:"delete" summary:"删除设计审核(竣工、施工、可研)"`
|
||
commonApi.Author
|
||
Id int64 `p:"id" dc:"审核主键ID" v:"required#主键必须"`
|
||
}
|
||
|
||
// BusDesignAuditDeleteRes 删除数据返回
|
||
type BusDesignAuditDeleteRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// DesignAuditFileDownloadReq 单文件下载
|
||
type DesignAuditFileDownloadReq struct {
|
||
g.Meta `path:"/designAuditFileDownload" tags:"设计审核(竣工、施工、可研)" method:"get" summary:"单文件下载"`
|
||
ProjectId int64 `p:"projectId" dc:"项目ID" v:"required#projectId不能为空"`
|
||
TableName string `p:"tableName" dc:"表名称" v:"required#tableName不能为空"`
|
||
TableId int64 `p:"tableId" dc:"对应TableName的主键ID" v:"required#tableId不能为空"`
|
||
Type string `p:"type" dc:"1文件下载 2文件夹下载" v:"required#type不能为空"`
|
||
commonApi.Author
|
||
}
|
||
|
||
// DesignAuditFileDownloadRes 单文件下载
|
||
type DesignAuditFileDownloadRes struct {
|
||
commonApi.EmptyRes
|
||
Path string `p:"path" dc:"文件夹压缩包下载路径"`
|
||
}
|