101 lines
3.5 KiB
Go
101 lines
3.5 KiB
Go
|
// ==========================================================================
|
|||
|
// GFast自动生成api操作代码。
|
|||
|
// 生成日期:2024-03-20 19:45:19
|
|||
|
// 生成路径: api/v1/system/bus_projectin_progress.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"
|
|||
|
)
|
|||
|
|
|||
|
// BusProjectinProgressSearchReq 分页请求参数
|
|||
|
type BusProjectinProgressSearchReq struct {
|
|||
|
g.Meta `path:"/list" tags:"在建项目" method:"get" summary:"在建项目列表"`
|
|||
|
Id string `p:"id"` //主键ID
|
|||
|
ProjectId string `p:"projectId" v:"projectId@integer#项目ID需为整数"` //项目ID
|
|||
|
ParallelIn string `p:"parallelIn" v:"parallelIn@integer#并网容量需为整数"` //并网容量
|
|||
|
CreatedBy string `p:"createdBy" v:"createdBy@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
|
|||
|
commonApi.PageReq
|
|||
|
commonApi.Author
|
|||
|
}
|
|||
|
|
|||
|
// BusProjectinProgressSearchRes 列表返回结果
|
|||
|
type BusProjectinProgressSearchRes struct {
|
|||
|
g.Meta `mime:"application/json"`
|
|||
|
commonApi.ListRes
|
|||
|
List []*model.BusProjectinProgressListRes `json:"list"`
|
|||
|
}
|
|||
|
|
|||
|
// BusProjectinProgressAddReq 添加操作请求参数
|
|||
|
type BusProjectinProgressAddReq struct {
|
|||
|
g.Meta `path:"/add" tags:"在建项目" method:"post" summary:"在建项目添加"`
|
|||
|
commonApi.Author
|
|||
|
ProjectId int64 `p:"projectId" `
|
|||
|
ParallelIn float64 `p:"parallelIn" `
|
|||
|
CreatedBy uint64
|
|||
|
}
|
|||
|
|
|||
|
// BusProjectinProgressAddRes 添加操作返回结果
|
|||
|
type BusProjectinProgressAddRes struct {
|
|||
|
commonApi.EmptyRes
|
|||
|
}
|
|||
|
|
|||
|
// BusProjectinProgressEditReq 修改操作请求参数
|
|||
|
type BusProjectinProgressEditReq struct {
|
|||
|
g.Meta `path:"/edit" tags:"在建项目" method:"put" summary:"在建项目修改"`
|
|||
|
commonApi.Author
|
|||
|
Id int64 `p:"id" v:"required#主键ID不能为空"`
|
|||
|
ProjectId int64 `p:"projectId" `
|
|||
|
ParallelIn float64 `p:"parallelIn" `
|
|||
|
}
|
|||
|
|
|||
|
// BusProjectinProgressEditRes 修改操作返回结果
|
|||
|
type BusProjectinProgressEditRes struct {
|
|||
|
commonApi.EmptyRes
|
|||
|
}
|
|||
|
|
|||
|
// BusProjectinProgressGetReq 获取一条数据请求
|
|||
|
type BusProjectinProgressGetReq struct {
|
|||
|
g.Meta `path:"/get" tags:"在建项目" method:"get" summary:"获取在建项目信息"`
|
|||
|
commonApi.Author
|
|||
|
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
|
|||
|
}
|
|||
|
|
|||
|
// BusProjectinProgressGetRes 获取一条数据结果
|
|||
|
type BusProjectinProgressGetRes struct {
|
|||
|
g.Meta `mime:"application/json"`
|
|||
|
*model.BusProjectinProgressInfoRes
|
|||
|
}
|
|||
|
|
|||
|
// BusProjectinProgressDeleteReq 删除数据请求
|
|||
|
type BusProjectinProgressDeleteReq struct {
|
|||
|
g.Meta `path:"/delete" tags:"在建项目" method:"delete" summary:"删除在建项目"`
|
|||
|
commonApi.Author
|
|||
|
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
|
|||
|
}
|
|||
|
|
|||
|
// BusProjectinProgressDeleteRes 删除数据返回
|
|||
|
type BusProjectinProgressDeleteRes struct {
|
|||
|
commonApi.EmptyRes
|
|||
|
}
|
|||
|
|
|||
|
type BusProjectinProgressSearchAllReq struct {
|
|||
|
g.Meta `path:"/listAll" tags:"在建项目" method:"get" summary:"GIS在建项目"`
|
|||
|
commonApi.Author
|
|||
|
}
|
|||
|
|
|||
|
type BusProjectinProgressSearchAllRes struct {
|
|||
|
g.Meta `mime:"application/json"`
|
|||
|
SumNum int `p:"ids" dc:"项目总数" `
|
|||
|
WindPower int `p:"windPower" dc:"风电项目" `
|
|||
|
Photovoltaic int `p:"photovoltaic" dc:"光伏项目"`
|
|||
|
ParallelIn float64 `p:"parallelIn" dc:"并网容量"`
|
|||
|
}
|