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

143 lines
6.4 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-10-07 16:08:09
// 生成路径: api/v1/system/xiangmuhuafenbiao.go
// 生成人gfast
// desc:项目划分相关参数
// company:云南奇讯科技有限公司
// ==========================================================================
package system
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
"github.com/gogf/gf/v2/os/gtime"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// XiangmuhuafenbiaoSearchReq 分页请求参数
type XiangmuhuafenbiaoSearchReq struct {
g.Meta `path:"/list" tags:"项目划分" method:"get" summary:"项目划分列表"`
Id string `p:"id"` //
Danweigongcheng string `p:"danweigongcheng"` //单位 工程
Zidanweigongcheng string `p:"zidanweigongcheng"` //子单位工程
Fenbugongcheng string `p:"fenbugongcheng"` //分部 工程
Zifenbugongcheng string `p:"zifenbugongcheng"` //子分部工程
Fenxianggongcheng string `p:"fenxianggongcheng"` //分项 工程
Jianyanpi string `p:"jianyanpi"` //检验批
Name string `p:"name"` //工 程 项 目 名 称
Zhixingbiaohao string `p:"zhixingbiaohao"` //执行表号
Json string `p:"json"` //json数据文件路径
PrintStatus string `p:"printStatus" v:"printStatus@integer#打印状态需为整数"` //打印状态
ProjectId string `p:"projectId" v:"required"` //项目id
CreateBy string `p:"createBy"` //创建人
UpdateBy string `p:"updateBy"` //更新人
CreateddAt string `p:"createddAt" v:"createddAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
//commonApi.Author
}
// XiangmuhuafenbiaoSearchRes 列表返回结果
type XiangmuhuafenbiaoSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.XiangmuhuafenbiaoListRes `json:"list"`
}
// XiangmuhuafenbiaoAddReq 添加操作请求参数
type XiangmuhuafenbiaoAddReq struct {
g.Meta `path:"/add" tags:"项目划分" method:"post" summary:"项目划分添加"`
//commonApi.Author
File *ghttp.UploadFile `p:"file" `
ProjectId string `p:"projectId" `
}
// XiangmuhuafenbiaoAddRes 添加操作返回结果
type XiangmuhuafenbiaoAddRes struct {
commonApi.EmptyRes
}
// XiangmuhuafenbiaoEditReq 修改操作请求参数
type XiangmuhuafenbiaoEditReq struct {
g.Meta `path:"/edit" tags:"项目划分" method:"put" summary:"项目划分修改"`
//commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
Danweigongcheng string `p:"danweigongcheng" `
Zidanweigongcheng string `p:"zidanweigongcheng" `
Fenbugongcheng string `p:"fenbugongcheng" `
Zifenbugongcheng string `p:"zifenbugongcheng" `
Fenxianggongcheng string `p:"fenxianggongcheng" `
Jianyanpi string `p:"jianyanpi" `
Name string `p:"name" `
Zhixingbiaohao string `p:"zhixingbiaohao" `
Json string `p:"json" `
PrintStatus int `p:"printStatus" `
ProjectId int `p:"projectId" `
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
CreateddAt *gtime.Time `p:"createddAt" `
}
// EditExcelFuncReq 修改excel数据
type EditExcelFuncReq struct {
g.Meta `path:"/editExcel" tags:"项目划分" method:"put" summary:"修改excel数据"`
//commonApi.Author
Id int `p:"id" dc:"项目划分表id" v:"required#项目划分表的主键ID不能为空"`
FileName string `p:"fileName" dc:"母版表fileName" v:"required#母版表的fileName不能为空"`
Json string `p:"json" dc:"json数据" v:"required#json数据不能为空"`
}
// XiangmuhuafenbiaoEditRes 修改操作返回结果
type XiangmuhuafenbiaoEditRes struct {
commonApi.EmptyRes
}
// XiangmuhuafenbiaoGetReq 获取一条数据请求
type XiangmuhuafenbiaoGetReq struct {
g.Meta `path:"/get" tags:"项目划分" method:"get" summary:"获取项目划分信息"`
//commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// XiangmuhuafenbiaoGetRes 获取一条数据结果
type XiangmuhuafenbiaoGetRes struct {
g.Meta `mime:"application/json"`
*model.XiangmuhuafenbiaoInfoRes
}
// XiangmuhuafenbiaoDeleteReq 删除数据请求
type XiangmuhuafenbiaoDeleteReq struct {
g.Meta `path:"/delete" tags:"项目划分" method:"delete" summary:"删除项目划分"`
//commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// XiangmuhuafenbiaoDeleteRes 删除数据返回
type XiangmuhuafenbiaoDeleteRes struct {
commonApi.EmptyRes
}
// MultipleProjectsListFuncReq 返回当前项目下所有相同zhixingbiaohao的excel数据 请求参数
type MultipleProjectsListFuncReq struct {
g.Meta `path:"/multipleProjectsList" tags:"项目划分" method:"get" summary:"同一执行表号列表"`
ExecutionTableNumber string `p:"executionTableNumber" dc:"执行表号" v:"required#执行表号不能为空"`
ProjectId int64 `p:"projectId" dc:"项目id" v:"required#项目id不能为空"`
//commonApi.Author
}
// MultipleProjectsListFuncRes 返回当前项目下所有相同zhixingbiaohao的excel数据 返回结果
type MultipleProjectsListFuncRes struct {
g.Meta `mime:"application/json"`
List []*MultipleProjectsListFuncOne `json:"list"`
}
type MultipleProjectsListFuncOne struct {
Id int64 `json:"id" dc:"项目划分表主键ID"`
Json string `json:"json" dc:"excel json数据"`
FilenPath string `json:"filenPath" dc:"excel母版地址"`
Name string `json:"name" dc:"工程项目名称"`
Zhixingbiaohao string `json:"zhixingbiaohao" dc:"执行表号"`
}