初始
This commit is contained in:
102
api/v1/system/qianqi_guangfuban_ids.go
Normal file
102
api/v1/system/qianqi_guangfuban_ids.go
Normal file
@ -0,0 +1,102 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2023-08-05 16:00:23
|
||||
// 生成路径: api/v1/system/qianqi_guangfuban_ids.go
|
||||
// 生成人:gfast
|
||||
// desc:光伏板模型的id相关参数
|
||||
// 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"
|
||||
)
|
||||
|
||||
// QianqiGuangfubanIdsSearchReq 分页请求参数
|
||||
type QianqiGuangfubanIdsSearchReq struct {
|
||||
g.Meta `path:"/list" tags:"光伏板模型的id" method:"get" summary:"光伏板模型的id列表"`
|
||||
ProjectId string `p:"projectId" v:"required#项目id不能为空"` //项目id
|
||||
Name string `p:"name"` //倾斜模型
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// QianqiGuangfubanIdsSearchRes 列表返回结果
|
||||
type QianqiGuangfubanIdsSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
//List []*model.QianqiGuangfubanIdsListRes `json:"list"`
|
||||
List []*model.Nibianqi `json:"list"`
|
||||
}
|
||||
|
||||
// QianqiGuangfubanIdsAddReq 添加操作请求参数
|
||||
type QianqiGuangfubanIdsAddReq struct {
|
||||
g.Meta `path:"/add" tags:"光伏板模型的id" method:"post" summary:"光伏板模型的id添加"`
|
||||
commonApi.Author
|
||||
Name string `p:"name" v:"required#名称不能为空"`
|
||||
DevId string `p:"devId" `
|
||||
DevType int `p:"devType" `
|
||||
CreateBy string `p:"createBy" `
|
||||
UpdateBy string `p:"updateBy" `
|
||||
SourceType string `p:"sourceType" `
|
||||
SourceId string `p:"sourceId" `
|
||||
ProjectId string `p:"projectId" `
|
||||
}
|
||||
|
||||
// QianqiGuangfubanIdsAddRes 添加操作返回结果
|
||||
type QianqiGuangfubanIdsAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// QianqiGuangfubanIdsEditReq 修改操作请求参数
|
||||
type QianqiGuangfubanIdsEditReq struct {
|
||||
g.Meta `path:"/edit" tags:"光伏板模型的id" method:"put" summary:"光伏板模型的id修改"`
|
||||
commonApi.Author
|
||||
//Id int `p:"id" v:"required#主键ID不能为空"`
|
||||
//Name string `p:"name" v:"required#名称不能为空"`
|
||||
//DevId string `p:"devId" `
|
||||
//DevType int `p:"devType" `
|
||||
//CreateBy string `p:"createBy" `
|
||||
//UpdateBy string `p:"updateBy" `
|
||||
//SourceType string `p:"sourceType" `
|
||||
SourceId string `p:"sourceId" v:"required#资源ID不能为空"`
|
||||
Range string `p:"range" `
|
||||
//ProjectId string `p:"projectId" `
|
||||
}
|
||||
|
||||
// QianqiGuangfubanIdsEditRes 修改操作返回结果
|
||||
type QianqiGuangfubanIdsEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// QianqiGuangfubanIdsGetReq 获取一条数据请求
|
||||
type QianqiGuangfubanIdsGetReq struct {
|
||||
g.Meta `path:"/get" tags:"光伏板模型的id" method:"get" summary:"获取光伏板模型的id信息"`
|
||||
commonApi.Author
|
||||
Id string `p:"id" v:"required#主键必须"` //通过主键获取
|
||||
Total bool `json:"total"`
|
||||
commonApi.PageReq
|
||||
}
|
||||
|
||||
// QianqiGuangfubanIdsGetRes 获取一条数据结果
|
||||
type QianqiGuangfubanIdsGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
//QianqiGuangfubanIdsInfoRes []*model.QianqiGuangfubanIdsInfoRes `json:"list"`
|
||||
commonApi.ListRes
|
||||
List []*model.QianqiGuangfubanIdsInfoRes `json:"list"`
|
||||
}
|
||||
|
||||
// QianqiGuangfubanIdsDeleteReq 删除数据请求
|
||||
type QianqiGuangfubanIdsDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"光伏板模型的id" method:"delete" summary:"删除光伏板模型的id"`
|
||||
commonApi.Author
|
||||
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
|
||||
}
|
||||
|
||||
// QianqiGuangfubanIdsDeleteRes 删除数据返回
|
||||
type QianqiGuangfubanIdsDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
Reference in New Issue
Block a user