初始
This commit is contained in:
108
api/v1/system/qianqi_xiangbian.go
Normal file
108
api/v1/system/qianqi_xiangbian.go
Normal file
@ -0,0 +1,108 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2023-07-31 09:52:13
|
||||
// 生成路径: api/v1/system/qianqi_xiangbian.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"
|
||||
)
|
||||
|
||||
// QianqiXiangbianSearchReq 分页请求参数
|
||||
type QianqiXiangbianSearchReq struct {
|
||||
g.Meta `path:"/list" tags:"箱变" method:"get" summary:"箱变列表"`
|
||||
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
|
||||
// 项目id
|
||||
Name string `p:"name"` // 名称
|
||||
CreatedAt string `p:"createAt" v:"createAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` // 创建时间
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// QianqiXiangbianSearchRes 列表返回结果
|
||||
type QianqiXiangbianSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
// ProjectId string `p:"projectId" v:"required#项目id不能为空"`
|
||||
List []*model.QianqiXiangbianListRes `json:"list"`
|
||||
}
|
||||
|
||||
// QianqiXiangbianAddReq 添加操作请求参数
|
||||
type QianqiXiangbianAddReq struct {
|
||||
g.Meta `path:"/add" tags:"箱变" method:"post" summary:"箱变添加"`
|
||||
commonApi.Author
|
||||
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
|
||||
// 方阵的主键ID
|
||||
//FangzhenName string `p:"fangzhenName" v:"required#方阵id不能为空"`
|
||||
File []*ghttp.UploadFile `p:"file" `
|
||||
}
|
||||
|
||||
// QianqiXiangbianAddRes 添加操作返回结果
|
||||
type QianqiXiangbianAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// QianqiXiangbianEditReq 修改操作请求参数
|
||||
type QianqiXiangbianEditReq 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" `
|
||||
// ModelId string `p:"modelId" `
|
||||
Detail string `p:"detail" `
|
||||
}
|
||||
|
||||
// QianqiXiangbianEditRes 修改操作返回结果
|
||||
type QianqiXiangbianEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
type QianqiXiangbianEditDetailReq struct {
|
||||
g.Meta `path:"/edit_detail" tags:"箱变" method:"put" summary:"箱变修改高程"`
|
||||
commonApi.Author
|
||||
// Id int `p:"id" v:"required#主键ID不能为空"`
|
||||
ProjectId string `p:"projectId" v:"required"`
|
||||
List []NibianqiDetail `json:"list"`
|
||||
// SourceId string `p:"sourceId" `
|
||||
// ModelId string `p:"modelId" `
|
||||
// Xiangbianid string `p:"xiangbianid" `
|
||||
}
|
||||
|
||||
// QianqiNibianqiEditRes 修改操作返回结果
|
||||
type QianqiXiangbianEditDetailRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// QianqiXiangbianGetReq 获取一条数据请求
|
||||
type QianqiXiangbianGetReq struct {
|
||||
g.Meta `path:"/get" tags:"箱变" method:"get" summary:"获取箱变信息"`
|
||||
commonApi.Author
|
||||
Id int `p:"id" v:"required#主键必须"` // 通过主键获取
|
||||
}
|
||||
|
||||
// QianqiXiangbianGetRes 获取一条数据结果
|
||||
type QianqiXiangbianGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*model.QianqiXiangbianInfoRes
|
||||
}
|
||||
|
||||
// QianqiXiangbianDeleteReq 删除数据请求
|
||||
type QianqiXiangbianDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"箱变" method:"delete" summary:"删除箱变"`
|
||||
commonApi.Author
|
||||
Ids []int `p:"ids" v:"required#主键必须"` // 通过主键删除
|
||||
}
|
||||
|
||||
// QianqiXiangbianDeleteRes 删除数据返回
|
||||
type QianqiXiangbianDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
Reference in New Issue
Block a user