92 lines
3.5 KiB
Go
92 lines
3.5 KiB
Go
// ==========================================================================
|
||
// GFast自动生成api操作代码。
|
||
// 生成日期:2023-08-04 16:29:44
|
||
// 生成路径: api/v1/system/qianqi_jidianxianlu.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"
|
||
)
|
||
|
||
// QianqiJidianxianluSearchReq 分页请求参数
|
||
type QianqiJidianxianluSearchReq struct {
|
||
g.Meta `path:"/list" tags:"集电线路" method:"get" summary:"集电线路列表"`
|
||
Id string `p:"id"` //序号
|
||
ProjectId string `p:"projectId"` //项目id
|
||
Name string `p:"name"` //线路名称
|
||
SourceId string `p:"sourceId"` //资源id
|
||
SourcePath string `p:"sourcePath"` //资源路径
|
||
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"` //资源类型
|
||
commonApi.PageReq
|
||
commonApi.Author
|
||
}
|
||
|
||
// QianqiJidianxianluSearchRes 列表返回结果
|
||
type QianqiJidianxianluSearchRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
commonApi.ListRes
|
||
List []*model.QianqiJidianxianluListRes `json:"list"`
|
||
}
|
||
|
||
// QianqiJidianxianluAddReq 添加操作请求参数
|
||
type QianqiJidianxianluAddReq struct {
|
||
g.Meta `path:"/add" tags:"集电线路" method:"post" summary:"集电线路添加"`
|
||
commonApi.Author
|
||
ProjectId string `p:"projectId" v:"required#项目id不能为空"`
|
||
File []*ghttp.UploadFile `p:"file" `
|
||
}
|
||
|
||
// QianqiJidianxianluAddRes 添加操作返回结果
|
||
type QianqiJidianxianluAddRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// QianqiJidianxianluEditReq 修改操作请求参数
|
||
type QianqiJidianxianluEditReq struct {
|
||
g.Meta `path:"/edit" tags:"集电线路" method:"put" summary:"集电线路修改"`
|
||
commonApi.Author
|
||
Id int `p:"id" v:"required#主键ID不能为空"`
|
||
Name string `p:"name" v:"required#线路名称不能为空"`
|
||
}
|
||
|
||
// QianqiJidianxianluEditRes 修改操作返回结果
|
||
type QianqiJidianxianluEditRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// QianqiJidianxianluGetReq 获取一条数据请求
|
||
type QianqiJidianxianluGetReq struct {
|
||
g.Meta `path:"/get" tags:"集电线路" method:"get" summary:"获取集电线路信息"`
|
||
commonApi.Author
|
||
Id int `p:"id" v:"required#主键必须"` //通过主键获取
|
||
}
|
||
|
||
// QianqiJidianxianluGetRes 获取一条数据结果
|
||
type QianqiJidianxianluGetRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
*model.QianqiJidianxianluInfoRes
|
||
}
|
||
|
||
// QianqiJidianxianluDeleteReq 删除数据请求
|
||
type QianqiJidianxianluDeleteReq struct {
|
||
g.Meta `path:"/delete" tags:"集电线路" method:"delete" summary:"删除集电线路"`
|
||
commonApi.Author
|
||
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
|
||
}
|
||
|
||
// QianqiJidianxianluDeleteRes 删除数据返回
|
||
type QianqiJidianxianluDeleteRes struct {
|
||
commonApi.EmptyRes
|
||
}
|