Files
zmkgC/api/v1/system/bus_equipment_materials.go
2025-07-07 20:11:59 +08:00

199 lines
11 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-29 11:14:16
// 生成路径: api/v1/system/bus_equipment_materials.go
// 生成人gfast
// desc:材料/设备名称相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// BusEquipmentMaterialsSearchReq 分页请求参数
type BusEquipmentMaterialsSearchReq struct {
g.Meta `path:"/list" tags:"材料/设备名称" method:"get" summary:"材料/设备名称列表"`
EquipmentMaterialsName string `p:"equipmentMaterialsName" dc:"材料/设备"`
CompanyId string `p:"companyId" v:"companyId@integer#公司需为整数" dc:"公司"`
ProjectId string `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
commonApi.PageReq
commonApi.Author
}
// BusEquipmentMaterialsSearchRes 列表返回结果
type BusEquipmentMaterialsSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEquipmentMaterialsListRes `json:"list"`
}
// BusEquipmentMaterialsAddReq 添加操作请求参数
type BusEquipmentMaterialsAddReq struct {
g.Meta `path:"/add" tags:"材料/设备名称" method:"post" summary:"材料/设备名称添加"`
commonApi.Author
EquipmentMaterialsName string `p:"equipmentMaterialsName" v:"required#材料/设备不能为空" dc:"材料/设备"`
CompanyId int64 `p:"companyId" v:"required#公司不能为空" dc:"公司ID"`
ProjectId int64 `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
TypeSpecificationName string `p:"typeSpecificationName" v:"required#规格型号不能为空" dc:"规格型号"`
//TypeSpecificationUrl []*comModel.UpFile `p:"typeSpecificationUrl" dc:"规格型号文件" v:"required#规格型号文件不能为空"`
//CertificateConformityName string `p:"certificateConformityName" v:"required#合格证编号不能为空" dc:"合格证编号"`
CertificateConformityUrl []*comModel.UpFile `p:"certificateConformityUrl" dc:"合格证编号文件" `
//QualityName string `p:"qualityName" v:"required#质量说明书编号不能为空" dc:"质量说明书编号"`
QualityUrl []*comModel.UpFile `p:"qualityUrl" dc:"质量说明书编号文件"`
//InspectionReportName string `p:"inspectionReportName" v:"required#检验报告编号不能为空" dc:"检验报告编号"`
InspectionReportUrl []*comModel.UpFile `p:"inspectionReportUrl" dc:"检验报告编号文件" `
//ReexamineReportName string `p:"reexamineReportName" v:"required#复试报告编号不能为空" dc:"复试报告编号"`
ReexamineReportUrl []*comModel.UpFile `p:"reexamineReportUrl" dc:"复试报告编号文件"`
UsePart string `p:"usePart" dc:"使用部位"`
WeightId string `p:"weightId" v:"required#计量单位不能为空" dc:"计量单位"`
Remark string `p:"remark" dc:"备注"`
QuantityCount string `p:"quantityCount" dc:"材料数量"`
//Status string `p:"status" dc:"状态0正常 1停用"`
}
// BusEquipmentMaterialsAddRes 添加操作返回结果
type BusEquipmentMaterialsAddRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsEditReq 修改操作请求参数
type BusEquipmentMaterialsEditReq struct {
g.Meta `path:"/edit" tags:"材料/设备名称" method:"put" summary:"材料/设备名称修改"`
commonApi.Author
EquipmentMaterialsId string `p:"equipmentMaterialsId" v:"required#主键ID不能为空" dc:"ID"`
EquipmentMaterialsName string `p:"equipmentMaterialsName" v:"required#材料/设备不能为空" dc:"材料/设备"`
CompanyId int64 `p:"companyId" v:"required#公司不能为空" dc:"公司ID"`
ProjectId int64 `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
TypeSpecificationName string `p:"typeSpecificationName" v:"required#规格型号不能为空" dc:"规格型号"`
//TypeSpecificationUrl []*comModel.UpFile `p:"typeSpecificationUrl" dc:"规格型号文件"`
//CertificateConformityName string `p:"certificateConformityName" v:"required#合格证编号不能为空" dc:"合格证编号"`
CertificateConformityUrl []*comModel.UpFile `p:"certificateConformityUrl" dc:"合格证编号文件"`
//QualityName string `p:"qualityName" v:"required#质量说明书编号不能为空" dc:"质量说明书编号"`
QualityUrl []*comModel.UpFile `p:"qualityUrl" dc:"质量说明书编号文件"`
//InspectionReportName string `p:"inspectionReportName" v:"required#检验报告编号不能为空" dc:"检验报告编号"`
InspectionReportUrl []*comModel.UpFile `p:"inspectionReportUrl" dc:"检验报告编号文件"`
//ReexamineReportName string `p:"reexamineReportName" v:"required#复试报告编号不能为空" dc:"复试报告编号"`
ReexamineReportUrl []*comModel.UpFile `p:"reexamineReportUrl" dc:"复试报告编号文件"`
UsePart string `p:"usePart" dc:"使用部位"`
WeightId string `p:"weightId" v:"required#计量单位不能为空" dc:"计量单位"`
Remark string `p:"remark" dc:"备注"`
QuantityCount string `p:"quantityCount" dc:"材料数量"`
Status string `p:"status" dc:"状态0正常 1停用"`
}
// BusEquipmentMaterialsEditRes 修改操作返回结果
type BusEquipmentMaterialsEditRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsGetReq 获取一条数据请求
type BusEquipmentMaterialsGetReq struct {
g.Meta `path:"/get" tags:"材料/设备名称" method:"get" summary:"获取材料/设备名称信息"`
commonApi.Author
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" v:"required#主键必须"` //通过主键获取
}
// BusEquipmentMaterialsGetRes 获取一条数据结果
type BusEquipmentMaterialsGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEquipmentMaterialsInfoRes
}
// BusEquipmentMaterialsDeleteReq 删除数据请求
type BusEquipmentMaterialsDeleteReq struct {
g.Meta `path:"/delete" tags:"材料/设备名称" method:"delete" summary:"删除材料/设备名称"`
commonApi.Author
EquipmentMaterialsIds []int64 `p:"equipmentMaterialsIds" v:"required#主键必须"` //通过主键删除
}
// BusEquipmentMaterialsDeleteRes 删除数据返回
type BusEquipmentMaterialsDeleteRes struct {
commonApi.EmptyRes
}
//App
// BusEquipmentMaterialsAppAddReq 添加操作请求参数
type BusEquipmentMaterialsAppAddReq struct {
g.Meta `path:"/appadd" tags:"材料设备App" method:"post" summary:"材料设备App添加"`
commonApi.Author
EquipmentMaterialsName string `p:"equipmentMaterialsName" v:"required#材料/设备不能为空" dc:"材料/设备"`
CompanyId int64 `p:"companyId" v:"required#公司不能为空" dc:"公司ID"`
ProjectId int64 `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
TypeSpecificationName string `p:"typeSpecificationName" v:"required#规格型号不能为空" dc:"规格型号"`
CertificateConformityUrl []*comModel.UpFile `p:"certificateConformityUrl" dc:"合格证编号文件" `
QualityUrl []*comModel.UpFile `p:"qualityUrl" dc:"质量说明书编号文件"`
InspectionReportUrl []*comModel.UpFile `p:"inspectionReportUrl" dc:"检验报告编号文件" `
ReexamineReportUrl []*comModel.UpFile `p:"reexamineReportUrl" dc:"复试报告编号文件"`
UsePart string `p:"usePart" dc:"使用部位"`
WeightId string `p:"weightId" v:"required#计量单位不能为空" dc:"计量单位"`
Remark string `p:"remark" dc:"备注"`
QuantityCount string `p:"quantityCount" dc:"材料数量"`
}
// BusEquipmentMaterialsAppAddRes 添加操作返回结果
type BusEquipmentMaterialsAppAddRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsAppEditReq 修改操作请求参数
type BusEquipmentMaterialsAppEditReq struct {
g.Meta `path:"/appedit" tags:"材料设备App" method:"put" summary:"材料设备App修改"`
commonApi.Author
EquipmentMaterialsId string `p:"equipmentMaterialsId" v:"required#主键ID不能为空" dc:"ID"`
EquipmentMaterialsName string `p:"equipmentMaterialsName" v:"required#材料/设备不能为空" dc:"材料/设备"`
CompanyId int64 `p:"companyId" v:"required#公司不能为空" dc:"公司ID"`
ProjectId int64 `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
TypeSpecificationName string `p:"typeSpecificationName" v:"required#规格型号不能为空" dc:"规格型号"`
CertificateConformityUrl []*comModel.UpFile `p:"certificateConformityUrl" dc:"合格证编号文件"`
QualityUrl []*comModel.UpFile `p:"qualityUrl" dc:"质量说明书编号文件"`
InspectionReportUrl []*comModel.UpFile `p:"inspectionReportUrl" dc:"检验报告编号文件"`
ReexamineReportUrl []*comModel.UpFile `p:"reexamineReportUrl" dc:"复试报告编号文件"`
UsePart string `p:"usePart" dc:"使用部位"`
WeightId string `p:"weightId" v:"required#计量单位不能为空" dc:"计量单位"`
Remark string `p:"remark" dc:"备注"`
QuantityCount string `p:"quantityCount" dc:"材料数量"`
Status string `p:"status" dc:"状态0正常 1停用"`
}
// BusEquipmentMaterialsAppEditRes 修改操作返回结果
type BusEquipmentMaterialsAppEditRes struct {
commonApi.EmptyRes
}
// BusEquipmentMaterialsAppSearchReq 分页请求参数
type BusEquipmentMaterialsAppSearchReq struct {
g.Meta `path:"/applist" tags:"材料设备App" method:"get" summary:"材料设备App列表"`
EquipmentMaterialsName string `p:"equipmentMaterialsName" dc:"材料/设备"`
CompanyId string `p:"companyId" v:"companyId@integer#公司需为整数" dc:"公司"`
ProjectId string `p:"projectId" v:"required#项目不能为空" dc:"项目ID"`
commonApi.PageReq
commonApi.Author
}
// BusEquipmentMaterialsAppSearchRes 列表返回结果
type BusEquipmentMaterialsAppSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.BusEquipmentMaterialsAppListRes `json:"list"`
}
// BusEquipmentMaterialsAppGetReq 获取一条数据请求
type BusEquipmentMaterialsAppGetReq struct {
g.Meta `path:"/appget" tags:"材料设备App" method:"get" summary:"材料设备App信息"`
commonApi.Author
EquipmentMaterialsId int64 `p:"equipmentMaterialsId" v:"required#主键必须"` //通过主键获取
}
// BusEquipmentMaterialsAppGetRes 获取一条数据结果
type BusEquipmentMaterialsAppGetRes struct {
g.Meta `mime:"application/json"`
*model.BusEquipmentMaterialsAppFileInfoRes
}