初始
This commit is contained in:
92
api/v1/system/qianqi_dixing.go
Normal file
92
api/v1/system/qianqi_dixing.go
Normal file
@ -0,0 +1,92 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2023-07-31 11:44:56
|
||||
// 生成路径: api/v1/system/qianqi_dixing.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"
|
||||
)
|
||||
|
||||
// QianqiDixingSearchReq 分页请求参数
|
||||
type QianqiDixingSearchReq 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
|
||||
}
|
||||
|
||||
// QianqiDixingSearchRes 列表返回结果
|
||||
type QianqiDixingSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*model.QianqiDixingListRes `json:"list"`
|
||||
}
|
||||
|
||||
// QianqiDixingAddReq 添加操作请求参数
|
||||
type QianqiDixingAddReq struct {
|
||||
g.Meta `path:"/add" tags:"地形" method:"post" summary:"地形添加"`
|
||||
commonApi.Author
|
||||
ProjectId string `p:"projectId" `
|
||||
//Name string `p:"name" v:"required#名称不能为空"`
|
||||
//SourceId string `p:"sourceId" `
|
||||
//SourcePath string `p:"sourcePath" `
|
||||
File []*ghttp.UploadFile `p:"file" `
|
||||
}
|
||||
|
||||
// QianqiDixingAddRes 添加操作返回结果
|
||||
type QianqiDixingAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// QianqiDixingEditReq 修改操作请求参数
|
||||
type QianqiDixingEditReq 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" `
|
||||
//SourcePath string `p:"sourcePath" `
|
||||
}
|
||||
|
||||
// QianqiDixingEditRes 修改操作返回结果
|
||||
type QianqiDixingEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// QianqiDixingGetReq 获取一条数据请求
|
||||
type QianqiDixingGetReq struct {
|
||||
g.Meta `path:"/get" tags:"地形" method:"get" summary:"获取地形信息"`
|
||||
commonApi.Author
|
||||
Id int `p:"id" v:"required#主键必须"` //通过主键获取
|
||||
}
|
||||
|
||||
// QianqiDixingGetRes 获取一条数据结果
|
||||
type QianqiDixingGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*model.QianqiDixingInfoRes
|
||||
}
|
||||
|
||||
// QianqiDixingDeleteReq 删除数据请求
|
||||
type QianqiDixingDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"地形" method:"delete" summary:"删除地形"`
|
||||
commonApi.Author
|
||||
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
|
||||
}
|
||||
|
||||
// QianqiDixingDeleteRes 删除数据返回
|
||||
type QianqiDixingDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
Reference in New Issue
Block a user