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

88 lines
3.1 KiB
Go
Raw Permalink 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-12-08 14:21:01
// 生成路径: api/v1/system/template_data.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"
)
// TemplateDataSearchReq 分页请求参数
type TemplateDataSearchReq struct {
g.Meta `path:"/list" tags:"废弃-工程资料>资料" method:"get" summary:"工程资料>资料列表"`
ProjectId string `p:"projectId" dc:"项目id"` //项目id
DataName string `p:"dataName" dc:"名称"` //名称
DataType string `p:"dataType" dc:"1编写 2存储"` //1编写 2存储
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// TemplateDataSearchRes 列表返回结果
type TemplateDataSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.TemplateDataListRes `json:"list"`
}
// TemplateDataAddReq 添加操作请求参数
type TemplateDataAddReq struct {
g.Meta `path:"/add" tags:"废弃-工程资料>资料" method:"post" summary:"工程资料>资料添加"`
commonApi.Author
ProjectId string `p:"projectId" dc:"项目id"`
DataName string `p:"dataName" dc:"名称" v:"required#名称不能为空"`
DataType string `p:"dataType" dc:"1编写 2存储"`
}
// TemplateDataAddRes 添加操作返回结果
type TemplateDataAddRes struct {
commonApi.EmptyRes
}
// TemplateDataEditReq 修改操作请求参数
type TemplateDataEditReq struct {
g.Meta `path:"/edit" tags:"废弃-工程资料>资料" method:"put" summary:"工程资料>资料修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
DataName string `p:"dataName" v:"required#名称不能为空"`
DataType string `p:"dataType" `
}
// TemplateDataEditRes 修改操作返回结果
type TemplateDataEditRes struct {
commonApi.EmptyRes
}
// TemplateDataGetReq 获取一条数据请求
type TemplateDataGetReq struct {
g.Meta `path:"/get" tags:"废弃-工程资料>资料" method:"get" summary:"获取工程资料>资料信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// TemplateDataGetRes 获取一条数据结果
type TemplateDataGetRes struct {
g.Meta `mime:"application/json"`
*model.TemplateDataInfoRes
}
// TemplateDataDeleteReq 删除数据请求
type TemplateDataDeleteReq struct {
g.Meta `path:"/delete" tags:"废弃-工程资料>资料" method:"delete" summary:"删除工程资料>资料"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// TemplateDataDeleteRes 删除数据返回
type TemplateDataDeleteRes struct {
commonApi.EmptyRes
}