Files
zmkgC/api/v1/system/qianqi_guangfuban.go

159 lines
5.7 KiB
Go
Raw Normal View History

2025-07-07 20:11:59 +08:00
// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2023-07-31 11:31:49
// 生成路径: api/v1/system/qianqi_guangfuban.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"
)
// QianqiGuangfubanSearchReq 分页请求参数
type QianqiGuangfubanSearchReq 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
}
// QianqiGuangfubanSearchRes 列表返回结果
type QianqiGuangfubanSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.QianqiGuangfubanListRes `json:"list"`
}
// QianqiGuangfubanAddReq 添加操作请求参数
type QianqiGuangfubanAddReq struct {
g.Meta `path:"/add" tags:"光伏板模型" method:"post" summary:"光伏板模型添加"`
commonApi.Author
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
//Name string `p:"name" v:"required#倾斜模型不能为空"`
//SourcePath string `p:"sourcePath" `
//SourceId string `p:"sourceId" `
Detail string `p:"detail" `
File *ghttp.UploadFile `p:"file" `
}
// QianqiGuangfubanAddRes 添加操作返回结果
type QianqiGuangfubanAddRes struct {
commonApi.EmptyRes
}
// QianqiGuangfubanEditReq 修改操作请求参数
type QianqiGuangfubanEditReq struct {
g.Meta `path:"/edit" tags:"光伏板模型" method:"put" summary:"光伏板模型修改"`
commonApi.Author
Id int `p:"id" v:"required#主键ID不能为空"`
Name string `p:"name" v:"required#倾斜模型不能为空"`
Detail string `p:"detail" `
}
// QianqiGuangfubanEditRes 修改操作返回结果
type QianqiGuangfubanEditRes struct {
commonApi.EmptyRes
}
// QianqiGuangfubanGetReq 获取一条数据请求
type QianqiGuangfubanGetReq struct {
g.Meta `path:"/get" tags:"光伏板模型" method:"get" summary:"获取光伏板模型信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// QianqiGuangfubanGetRes 获取一条数据结果
type QianqiGuangfubanGetRes struct {
g.Meta `mime:"application/json"`
*model.QianqiGuangfubanInfoRes
}
// QianqiGuangfubanDeleteReq 删除数据请求
type QianqiGuangfubanDeleteReq struct {
g.Meta `path:"/delete" tags:"光伏板模型" method:"delete" summary:"删除光伏板模型"`
commonApi.Author
//Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
SourceIDs []string `p:"sourceIDs" v:"required"` //通过主键删除
}
// QianqiGuangfubanDeleteRes 删除数据返回
type QianqiGuangfubanDeleteRes struct {
commonApi.EmptyRes
}
// // UploadFileBimReq 文件上传
//
// type UploadFileBimReq struct {
// g.Meta `path:"/gfbUploadFile" tags:"光伏板模型" method:"post" summary:"上传文件"`
// commonApi.Author
// File *ghttp.UploadFile `p:"file" `
// }
//
// type UploadFileBimRes struct {
// commonApi.EmptyRes
// FileName string `p:"fileName" `
// FilePath string `p:"filePath" `
// }
//
// QianqiGuangfubanImportZuchuanReq 添加操作请求参数
type QianqiGuangfubanImportZuchuanReq struct {
g.Meta `path:"/zuchuan/import" tags:"光伏板模型" method:"post" summary:"给光伏板模型导入对应的组串数据shp文件"`
commonApi.Author
SourceId string `p:"sourceId" v:"required#资源id不能为空" `
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
File []*ghttp.UploadFile `p:"file" `
}
// QianqiGuangfubanImportZuchuanRes 添加操作返回结果
type QianqiGuangfubanImportZuchuanRes struct {
commonApi.EmptyRes
}
// QianqiGuangfubanAddReq 添加操作请求参数
type QianqiGuangfubanCalZuchuanReq struct {
g.Meta `path:"/zuchuan/caculate" tags:"光伏板模型" method:"post" summary:"根据光伏板内部的scenetree.json中的数据和组串shp进行计算每个光伏板对应的组串编号"`
commonApi.Author
SourceId string `p:"sourceId" v:"required#资源id不能为空" `
}
// QianqiGuangfubanAddRes 添加操作返回结果
type QianqiGuangfubanCalZuchuanRes struct {
commonApi.EmptyRes
}
// CorrectFuncReq 光伏板数据纠正
type CorrectFuncReq struct {
g.Meta `path:"/correct" tags:"光伏板模型" method:"post" summary:"光伏板数据纠正"`
commonApi.Author
GuangfubanSourceId string `p:"guangfubanSourceId" dc:"光伏板资源id" v:"required#光伏板资源id不能为空"`
GuangfubanData string `p:"guangfubanData" dc:"光伏板数据"`
}
// CorrectFuncRes 修改操作返回结果
type CorrectFuncRes struct {
commonApi.EmptyRes
}
// CorrectQueryFuncReq 光伏板数据纠正查询
type CorrectQueryFuncReq struct {
g.Meta `path:"/correctQuery" tags:"光伏板模型" method:"post" summary:"光伏板数据纠正查询"`
commonApi.Author
GuangfubanSourceId string `p:"guangfubanSourceId" dc:"光伏板资源ID" v:"required#光伏板资源id不能为空"`
}
// CorrectQueryFuncRes 光伏板数据纠正查询操作返回结果
type CorrectQueryFuncRes struct {
commonApi.EmptyRes
GuangfubanSourceId string `json:"guangfubanSourceId" dc:"光伏板资源ID"`
GuangfubanData string `json:"guangfubanData" dc:"光伏板数据纠正"`
}