94 lines
3.3 KiB
Go
94 lines
3.3 KiB
Go
|
// ==========================================================================
|
|||
|
// GFast自动生成api操作代码。
|
|||
|
// 生成日期:2023-07-29 11:36:04
|
|||
|
// 生成路径: api/v1/system/bus_standing_book.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"
|
|||
|
)
|
|||
|
|
|||
|
// BusStandingBookSearchReq 分页请求参数
|
|||
|
type BusStandingBookSearchReq struct {
|
|||
|
g.Meta `path:"/list" tags:"台账" method:"get" summary:"台账列表"`
|
|||
|
EquipmentMaterialsId string `p:"equipmentMaterialsId" v:"equipmentMaterialsId@integer#材料/设备需为整数"` //材料/设备
|
|||
|
StandingBookType string `p:"standingBookType"` //台账类型
|
|||
|
CreatedAt string `p:"createdAt" v:"createdAt@date#创建时间需为YYYY-MM-DD"` //创建时间
|
|||
|
commonApi.PageReq
|
|||
|
commonApi.Author
|
|||
|
}
|
|||
|
|
|||
|
// BusStandingBookSearchRes 列表返回结果
|
|||
|
type BusStandingBookSearchRes struct {
|
|||
|
g.Meta `mime:"application/json"`
|
|||
|
commonApi.ListRes
|
|||
|
List []*model.BusStandingBookListRes `json:"list"`
|
|||
|
}
|
|||
|
|
|||
|
// BusStandingBookAddReq 添加操作请求参数
|
|||
|
type BusStandingBookAddReq struct {
|
|||
|
g.Meta `path:"/add" tags:"台账" method:"post" summary:"台账添加"`
|
|||
|
commonApi.Author
|
|||
|
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" `
|
|||
|
ProjectId int64 `p:"projectId" `
|
|||
|
StandingBookType string `p:"standingBookType" `
|
|||
|
ApproachTime string `p:"approachTime" `
|
|||
|
Quantity string `p:"quantity" `
|
|||
|
SignerRecipient string `p:"signerRecipient" `
|
|||
|
}
|
|||
|
|
|||
|
// BusStandingBookAddRes 添加操作返回结果
|
|||
|
type BusStandingBookAddRes struct {
|
|||
|
commonApi.EmptyRes
|
|||
|
}
|
|||
|
|
|||
|
// BusStandingBookEditReq 修改操作请求参数
|
|||
|
type BusStandingBookEditReq struct {
|
|||
|
g.Meta `path:"/edit" tags:"台账" method:"put" summary:"台账修改"`
|
|||
|
commonApi.Author
|
|||
|
StandingBookId int64 `p:"standingBookId" v:"required#主键ID不能为空"`
|
|||
|
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" `
|
|||
|
StandingBookType string `p:"standingBookType" `
|
|||
|
ApproachTime string `p:"approachTime" `
|
|||
|
Quantity string `p:"quantity" `
|
|||
|
SignerRecipient string `p:"signerRecipient" `
|
|||
|
Status string `p:"status" `
|
|||
|
}
|
|||
|
|
|||
|
// BusStandingBookEditRes 修改操作返回结果
|
|||
|
type BusStandingBookEditRes struct {
|
|||
|
commonApi.EmptyRes
|
|||
|
}
|
|||
|
|
|||
|
// BusStandingBookGetReq 获取一条数据请求
|
|||
|
type BusStandingBookGetReq struct {
|
|||
|
g.Meta `path:"/get" tags:"台账" method:"get" summary:"获取台账信息"`
|
|||
|
commonApi.Author
|
|||
|
StandingBookId int64 `p:"standingBookId" v:"required#主键必须"` //通过主键获取
|
|||
|
}
|
|||
|
|
|||
|
// BusStandingBookGetRes 获取一条数据结果
|
|||
|
type BusStandingBookGetRes struct {
|
|||
|
g.Meta `mime:"application/json"`
|
|||
|
*model.BusStandingBookInfoRes
|
|||
|
}
|
|||
|
|
|||
|
// BusStandingBookDeleteReq 删除数据请求
|
|||
|
type BusStandingBookDeleteReq struct {
|
|||
|
g.Meta `path:"/delete" tags:"台账" method:"delete" summary:"删除台账"`
|
|||
|
commonApi.Author
|
|||
|
StandingBookIds []int64 `p:"standingBookIds" v:"required#主键必须"` //通过主键删除
|
|||
|
}
|
|||
|
|
|||
|
// BusStandingBookDeleteRes 删除数据返回
|
|||
|
type BusStandingBookDeleteRes struct {
|
|||
|
commonApi.EmptyRes
|
|||
|
}
|