93 lines
3.1 KiB
Go
93 lines
3.1 KiB
Go
|
// ==========================================================================
|
|||
|
// GFast自动生成api操作代码。
|
|||
|
// 生成日期:2023-07-31 11:44:41
|
|||
|
// 生成路径: api/v1/system/qianqi_bubantu.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"
|
|||
|
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
|||
|
)
|
|||
|
|
|||
|
// QianqiBubantuSearchReq 分页请求参数
|
|||
|
type QianqiBubantuSearchReq struct {
|
|||
|
g.Meta `path:"/list" tags:"布板图" method:"get" summary:"布板图列表"`
|
|||
|
ProjectId string `p:"projectId" v:"required#项目id不能为空"` //项目id
|
|||
|
Name string `p:"name"` //名称
|
|||
|
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
|
|||
|
commonApi.PageReq
|
|||
|
commonApi.Author
|
|||
|
}
|
|||
|
|
|||
|
// QianqiBubantuSearchRes 列表返回结果
|
|||
|
type QianqiBubantuSearchRes struct {
|
|||
|
g.Meta `mime:"application/json"`
|
|||
|
commonApi.ListRes
|
|||
|
List []*model.QianqiBubantuListRes `json:"list"`
|
|||
|
}
|
|||
|
|
|||
|
// QianqiBubantuAddReq 添加操作请求参数
|
|||
|
type QianqiBubantuAddReq struct {
|
|||
|
g.Meta `path:"/add" tags:"布板图" method:"post" summary:"布板图添加"`
|
|||
|
commonApi.Author
|
|||
|
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
|
|||
|
GuangfubanId string `p:"guangfubanId" v:"required#光伏板id不能为空"`
|
|||
|
//Name string `p:"name" v:"required#名称不能为空"`
|
|||
|
//SourceId string `p:"sourceId" `
|
|||
|
//SourcePath string `p:"sourcePath" `
|
|||
|
File []*ghttp.UploadFile `p:"file" `
|
|||
|
}
|
|||
|
|
|||
|
// QianqiBubantuAddRes 添加操作返回结果
|
|||
|
type QianqiBubantuAddRes struct {
|
|||
|
commonApi.EmptyRes
|
|||
|
}
|
|||
|
|
|||
|
// QianqiBubantuEditReq 修改操作请求参数
|
|||
|
type QianqiBubantuEditReq struct {
|
|||
|
g.Meta `path:"/edit" tags:"布板图" method:"put" summary:"布板图修改"`
|
|||
|
commonApi.Author
|
|||
|
Id int `p:"id" v:"required#主键ID不能为空"`
|
|||
|
//ProjectId string `p:"projectId" `
|
|||
|
Name string `p:"name" v:"required#名称不能为空"`
|
|||
|
//SourceId string `p:"sourceId" `
|
|||
|
//SourcePath string `p:"sourcePath" `
|
|||
|
}
|
|||
|
|
|||
|
// QianqiBubantuEditRes 修改操作返回结果
|
|||
|
type QianqiBubantuEditRes struct {
|
|||
|
commonApi.EmptyRes
|
|||
|
}
|
|||
|
|
|||
|
// QianqiBubantuGetReq 获取一条数据请求
|
|||
|
type QianqiBubantuGetReq struct {
|
|||
|
g.Meta `path:"/get" tags:"布板图" method:"get" summary:"获取布板图信息"`
|
|||
|
commonApi.Author
|
|||
|
Id int `p:"id" v:"required#主键必须"` //通过主键获取
|
|||
|
}
|
|||
|
|
|||
|
// QianqiBubantuGetRes 获取一条数据结果
|
|||
|
type QianqiBubantuGetRes struct {
|
|||
|
g.Meta `mime:"application/json"`
|
|||
|
*model.QianqiBubantuInfoRes
|
|||
|
}
|
|||
|
|
|||
|
// QianqiBubantuDeleteReq 删除数据请求
|
|||
|
type QianqiBubantuDeleteReq struct {
|
|||
|
g.Meta `path:"/delete" tags:"布板图" method:"delete" summary:"删除布板图"`
|
|||
|
commonApi.Author
|
|||
|
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
|
|||
|
}
|
|||
|
|
|||
|
// QianqiBubantuDeleteRes 删除数据返回
|
|||
|
type QianqiBubantuDeleteRes struct {
|
|||
|
commonApi.EmptyRes
|
|||
|
}
|