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

121 lines
5.0 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操作代码。
// 生成日期2024-03-21 15:23:58
// 生成路径: api/v1/system/bus_inspection_ticket.go
// 生成人gfast
// desc:质量工单相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
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"
)
type UpdataCorrectorReq struct {
g.Meta `path:"/updataCorrector" tags:"质量工单" method:"put" summary:"质量工单变更整改人"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Corrector string `p:"corrector" dc:"整改人"`
}
type UpdataCorrectorRes struct {
commonApi.EmptyRes
}
// BusInspectionTicketSearchReq 分页请求参数
type BusInspectionTicketSearchReq struct {
g.Meta `path:"/list" tags:"质量工单" method:"get" summary:"质量工单列表"`
ProjectId string `p:"projectId" dc:"项目ID" v:"required#项目id不能为空"` //项目ID
InspectionType string `p:"inspectionType" dc:"巡检类型"` //巡检类型(关联字典)
Status string `p:"工单状态1通知 2整改 3验证" dc:"工单状态"` //巡检类型(关联字典)
CreatedAt string `p:"createdAt" dc:"填报时间" v:"createdAt@date#创建时间需为YYYY-MM-DD格式"` //填报时间
commonApi.PageReq
commonApi.Author
}
// BusInspectionTicketSearchRes 列表返回结果
type BusInspectionTicketSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.PcListRes `json:"list"`
}
// BusInspectionTicketAddReq 添加操作请求参数
type BusInspectionTicketAddReq struct {
g.Meta `path:"/add" tags:"质量工单" method:"post" summary:"质量工单添加"`
commonApi.Author
ProjectId int64 `p:"projectId" dc:"项目id" v:"required#项目ID不能为空"`
InspectionType string `p:"inspectionType" dc:"巡检类型" v:"required#巡检类型不能为空"`
InspectionHeadline string `p:"inspectionHeadline" dc:"巡检标题" v:"required#巡检标题不能为空"`
InspectionResult string `p:"inspectionResult" dc:"巡检结果" v:"required#巡检结果不能为空"`
IsReply string `p:"isReply" dc:"是否回复1回复 2不回复" `
ReplyDate string `p:"replyDate" dc:"回复日期" `
Corrector string `p:"corrector" dc:"整改人"`
CreatedBy int64 `p:"createdBy" dc:"填报人"`
HseManagementAdd int `p:"hseManagementAdd" dc:"0使用file 1使用fileTwo"`
File []*ghttp.UploadFile `p:"file" dc:"附件"`
FileTwo []*comModel.UpFile `p:"fileTwo" dc:"附件"`
}
// BusInspectionTicketAddRes 添加操作返回结果
type BusInspectionTicketAddRes struct {
commonApi.EmptyRes
}
// BusInspectionTicketAbarbeitungReq 整改操作请求参数
type BusInspectionTicketAbarbeitungReq struct {
g.Meta `path:"/editAbarbeitung" tags:"质量工单" method:"put" summary:"质量工单整改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
File []*ghttp.UploadFile `p:"file" dc:"附件"`
}
// BusInspectionTicketAbarbeitungRes 整改操作返回结果
type BusInspectionTicketAbarbeitungRes struct {
commonApi.EmptyRes
}
// BusInspectionTicketVerificationReq 验证操作请求参数
type BusInspectionTicketVerificationReq struct {
g.Meta `path:"/editVerification" tags:"质量工单" method:"put" summary:"质量工单验证"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
VerificationType string `p:"verificationType" dc:"验证状态1通过 2未通过"`
VerificationResult string `p:"verificationResult" dc:"结论"`
}
// BusInspectionTicketVerificationRes 验证操作返回结果
type BusInspectionTicketVerificationRes struct {
commonApi.EmptyRes
}
// BusInspectionTicketGetReq 获取一条数据请求
type BusInspectionTicketGetReq struct {
g.Meta `path:"/get" tags:"质量工单" method:"get" summary:"获取质量工单信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// BusInspectionTicketGetRes 获取一条数据结果
type BusInspectionTicketGetRes struct {
g.Meta `mime:"application/json"`
Details *model.AppletDetailsRes `json:"details"`
}
// BusInspectionTicketDeleteReq 删除数据请求
type BusInspectionTicketDeleteReq struct {
g.Meta `path:"/delete" tags:"质量工单" method:"delete" summary:"删除质量工单"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// BusInspectionTicketDeleteRes 删除数据返回
type BusInspectionTicketDeleteRes struct {
commonApi.EmptyRes
}