// ========================================================================== // GFast自动生成api操作代码。 // 生成日期:2023-07-31 11:09:26 // 生成路径: api/v1/system/qianqi_moxing.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" ) // QianqiMoxingSearchReq 分页请求参数 type QianqiMoxingSearchReq 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 } // QianqiMoxingSearchRes 列表返回结果 type QianqiMoxingSearchRes struct { g.Meta `mime:"application/json"` commonApi.ListRes List []*model.QianqiMoxingListRes `json:"list"` } // QianqiMoxingAddReq 添加操作请求参数 v:"required#倾斜模型不能为空" type QianqiMoxingAddReq struct { g.Meta `path:"/add" tags:"倾斜模型" method:"post" summary:"倾斜模型添加"` commonApi.Author ProjectId string `p:"projectId" ` Name string `p:"name"` SourcePath string `p:"sourcePath" ` //Detail string `p:"detail" ` //SourceId string `p:"sourceId" ` //File *ghttp.UploadFile `p:"file" ` } // QianqiMoxingAddRes 添加操作返回结果 type QianqiMoxingAddRes struct { commonApi.EmptyRes } // QianqiMoxingEditReq 修改操作请求参数 type QianqiMoxingEditReq 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#倾斜模型名称不能为空"` //SourcePath string `p:"sourcePath" ` Detail string `p:"detail" ` //SourceId string `p:"sourceId" ` } // QianqiMoxingEditRes 修改操作返回结果 type QianqiMoxingEditRes struct { commonApi.EmptyRes } // QianqiMoxingGetReq 获取一条数据请求 type QianqiMoxingGetReq struct { g.Meta `path:"/get" tags:"倾斜模型" method:"get" summary:"获取倾斜模型信息"` commonApi.Author Id int `p:"id" v:"required#主键必须"` //通过主键获取 } // QianqiMoxingGetRes 获取一条数据结果 type QianqiMoxingGetRes struct { g.Meta `mime:"application/json"` *model.QianqiMoxingInfoRes } // QianqiMoxingDeleteReq 删除数据请求 type QianqiMoxingDeleteReq struct { g.Meta `path:"/delete" tags:"倾斜模型" method:"delete" summary:"删除倾斜模型"` commonApi.Author Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除 } // QianqiMoxingDeleteRes 删除数据返回 type QianqiMoxingDeleteRes struct { commonApi.EmptyRes } // UploadFileReq 文件上传 type UploadFileReq struct { g.Meta `path:"/mxUploadFile" tags:"倾斜模型" method:"post" summary:"上传文件(tileset)"` commonApi.Author File *ghttp.UploadFile `p:"file" ` } type UploadFileRes struct { commonApi.EmptyRes FileName string `p:"fileName" ` FilePath string `p:"filePath" ` }