初始
This commit is contained in:
94
api/v1/system/bus_construction_log.go
Normal file
94
api/v1/system/bus_construction_log.go
Normal file
@ -0,0 +1,94 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2024-03-22 16:27:43
|
||||
// 生成路径: api/v1/system/bus_construction_log.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"
|
||||
)
|
||||
|
||||
// BusConstructionLogSearchReq 分页请求参数
|
||||
type BusConstructionLogSearchReq struct {
|
||||
g.Meta `path:"/list" tags:"施工日志" method:"get" summary:"施工日志列表"`
|
||||
//Id string `p:"id"`
|
||||
//ProjectName string `p:"projectName"`
|
||||
ProjectId int64 `p:"projectId" dc:"项目id"`
|
||||
DateOfOccurrence string `p:"dateOfOccurrence" dc:"发生日期筛选" v:"date-format:Y-m-d#时间格式错误!"`
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// BusConstructionLogSearchRes 列表返回结果
|
||||
type BusConstructionLogSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*model.AppletDetails `json:"list"`
|
||||
}
|
||||
|
||||
// BusConstructionLogAddReq 添加操作请求参数
|
||||
type BusConstructionLogAddReq struct {
|
||||
g.Meta `path:"/add" tags:"施工日志" method:"post" summary:"施工日志添加"`
|
||||
commonApi.Author
|
||||
ProjectId int64 `p:"projectId" `
|
||||
DateOfOccurrence string `p:"dateOfOccurrence" `
|
||||
Condition string `p:"condition" `
|
||||
TechnologyQuality string `p:"technologyQuality" `
|
||||
Remark string `p:"remark" `
|
||||
Path string `p:"path" `
|
||||
CreatedBy uint64
|
||||
}
|
||||
|
||||
// BusConstructionLogAddRes 添加操作返回结果
|
||||
type BusConstructionLogAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// BusConstructionLogEditReq 修改操作请求参数
|
||||
type BusConstructionLogEditReq struct {
|
||||
g.Meta `path:"/edit" tags:"施工日志" method:"put" summary:"施工日志修改"`
|
||||
commonApi.Author
|
||||
Id int64 `p:"id" v:"required#主键ID不能为空"`
|
||||
DateOfOccurrence string `p:"dateOfOccurrence" `
|
||||
Condition string `p:"condition" `
|
||||
TechnologyQuality string `p:"technologyQuality" `
|
||||
Remark string `p:"remark" `
|
||||
UpdatedBy uint64
|
||||
}
|
||||
|
||||
// BusConstructionLogEditRes 修改操作返回结果
|
||||
type BusConstructionLogEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// BusConstructionLogGetReq 获取一条数据请求
|
||||
type BusConstructionLogGetReq struct {
|
||||
g.Meta `path:"/get" tags:"施工日志" method:"get" summary:"获取施工日志信息"`
|
||||
commonApi.Author
|
||||
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
|
||||
}
|
||||
|
||||
// BusConstructionLogGetRes 获取一条数据结果
|
||||
type BusConstructionLogGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
DataEntity *model.AppletDetails `json:"dataEntity"`
|
||||
}
|
||||
|
||||
// BusConstructionLogDeleteReq 删除数据请求
|
||||
type BusConstructionLogDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"施工日志" method:"delete" summary:"删除施工日志"`
|
||||
commonApi.Author
|
||||
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
|
||||
}
|
||||
|
||||
// BusConstructionLogDeleteRes 删除数据返回
|
||||
type BusConstructionLogDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
Reference in New Issue
Block a user