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

102 lines
4.1 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-08-17 10:37:21
// 生成路径: api/v1/system/qianqi_guangfuban_zuchuan.go
// 生成人xyb
// 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"
)
// QianqiGuangfubanZuchuanSearchReq 分页请求参数
type QianqiGuangfubanZuchuanSearchReq struct {
g.Meta `path:"/list" tags:"组串" method:"get" summary:"组串列表"`
Id string `p:"id"` //
CreateBy string `p:"createBy"` //创建人
UpdateBy string `p:"updateBy"` //更新人
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
SourceType string `p:"sourceType"` //
SourceId string `p:"sourceId"` //资源id,为project_id拼接上组串编号
ProjectId string `p:"projectId"` //项目id
ZuchuanId string `p:"zuchuanId"` //组串编号
GuangfubanId string `p:"guangfubanId"` //光伏板模型的id
commonApi.PageReq
commonApi.Author
}
// QianqiGuangfubanZuchuanSearchRes 列表返回结果
type QianqiGuangfubanZuchuanSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.QianqiGuangfubanZuchuanListRes `json:"list"`
}
// QianqiGuangfubanZuchuanAddReq 添加操作请求参数
type QianqiGuangfubanZuchuanAddReq struct {
g.Meta `path:"/add" tags:"组串" method:"post" summary:"组串添加"`
commonApi.Author
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
SourceType string `p:"sourceType" `
SourceId string `p:"sourceId" `
ProjectId string `p:"projectId" `
ZuchuanId string `p:"zuchuanId" v:"required#组串编号不能为空"`
GuangfubanId string `p:"guangfubanId" v:"required#光伏板模型的id不能为空"`
}
// QianqiGuangfubanZuchuanAddRes 添加操作返回结果
type QianqiGuangfubanZuchuanAddRes struct {
commonApi.EmptyRes
}
// QianqiGuangfubanZuchuanEditReq 修改操作请求参数
type QianqiGuangfubanZuchuanEditReq struct {
g.Meta `path:"/edit" tags:"组串" method:"put" summary:"组串修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
CreateBy string `p:"createBy" `
UpdateBy string `p:"updateBy" `
SourceType string `p:"sourceType" `
SourceId string `p:"sourceId" `
ProjectId string `p:"projectId" `
ZuchuanId string `p:"zuchuanId" v:"required#组串编号不能为空"`
GuangfubanId string `p:"guangfubanId" v:"required#光伏板模型的id不能为空"`
}
// QianqiGuangfubanZuchuanEditRes 修改操作返回结果
type QianqiGuangfubanZuchuanEditRes struct {
commonApi.EmptyRes
}
// QianqiGuangfubanZuchuanGetReq 获取一条数据请求
type QianqiGuangfubanZuchuanGetReq struct {
g.Meta `path:"/get" tags:"组串" method:"get" summary:"获取组串信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// QianqiGuangfubanZuchuanGetRes 获取一条数据结果
type QianqiGuangfubanZuchuanGetRes struct {
g.Meta `mime:"application/json"`
*model.QianqiGuangfubanZuchuanInfoRes
}
// QianqiGuangfubanZuchuanDeleteReq 删除数据请求
type QianqiGuangfubanZuchuanDeleteReq struct {
g.Meta `path:"/delete" tags:"组串" method:"delete" summary:"删除组串"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
}
// QianqiGuangfubanZuchuanDeleteRes 删除数据返回
type QianqiGuangfubanZuchuanDeleteRes struct {
commonApi.EmptyRes
}