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

108 lines
3.8 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-27 12:55:26
// 生成路径: api/v1/system/sys_project_value.go
// 生成人xiaoyang
// desc:projectValue相关参数
// 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"
)
// SysProjectValueSearchReq 分页请求参数
type EveryProjectValueSearchReq struct {
g.Meta `path:"/everylist" tags:"项目产值" method:"post" summary:"项目产值首页展示"`
ProId string `p:"proId" dc:"项目id"`
Year string `p:"year" dc:"项目产值年"`
Month string `p:"month" dc:"项目产值月"`
commonApi.PageReq
commonApi.Author
}
type EveryProjectValueSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List *model.TotalProjectValue `json:"list"`
}
// SysProjectValueSearchReq 分页请求参数
type SysProjectValueSearchReq struct {
g.Meta `path:"/list" tags:"项目产值" method:"get" summary:"项目产值列表"`
ProId string `p:"projectId" dc:"项目id"` //前端传值projectId
Year string `p:"year" dc:"项目产值年"`
Month string `p:"month" dc:"项目产值月"`
ProValue string `p:"proValue" dc:"项目产值"` //项目产值
IsShow string `p:"isShow" dc:"显示隐藏1显示 2隐藏"` //项目产值
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
commonApi.PageReq
commonApi.Author
}
// SysProjectValueSearchRes 列表返回结果
type SysProjectValueSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.SysProjectValueListRes `json:"list"`
}
// SysProjectValueAddReq 添加操作请求参数
type SysProjectValueAddReq struct {
g.Meta `path:"/add" tags:"项目产值" method:"post" summary:"项目产值添加"`
commonApi.Author
ProId int64 `p:"proId" dc:"项目id"`
Year string `p:"year" dc:"项目产值年"`
Month string `p:"month" dc:"项目产值月"`
ProValue string `p:"proValue" v:"required#项目产值不能为空" dc:"项目产值"`
}
// SysProjectValueAddRes 添加操作返回结果
type SysProjectValueAddRes struct {
commonApi.EmptyRes
}
// SysProjectValueEditReq 修改操作请求参数
type SysProjectValueEditReq struct {
g.Meta `path:"/edit" tags:"项目产值" method:"put" summary:"项目产值修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
ProId int64 `p:"proId" dc:"项目id"`
Year string `p:"year" dc:"项目产值年"`
Month string `p:"month" dc:"项目产值月"`
ProValue string `p:"proValue" dc:"项目产值"`
}
// SysProjectValueEditRes 修改操作返回结果
type SysProjectValueEditRes struct {
commonApi.EmptyRes
}
// SysProjectValueGetReq 获取一条数据请求
type SysProjectValueGetReq struct {
g.Meta `path:"/get" tags:"项目产值" method:"get" summary:"项目产值get信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// SysProjectValueGetRes 获取一条数据结果
type SysProjectValueGetRes struct {
g.Meta `mime:"application/json"`
*model.SysProjectValueListRes
}
// SysProjectValueDeleteReq 删除数据请求
type SysProjectValueDeleteReq struct {
g.Meta `path:"/delete" tags:"项目产值" method:"delete" summary:"删除项目产值"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// SysProjectValueDeleteRes 删除数据返回
type SysProjectValueDeleteRes struct {
commonApi.EmptyRes
}