// ========================================================================== // GFast自动生成api操作代码。 // 生成日期:2025-08-11 16:49:09 // 生成路径: api/v1/businesses/species_imgs.go // 生成人:gfast // desc:相关参数 // company:云南奇讯科技有限公司 // ========================================================================== package businesses import ( "github.com/gogf/gf/v2/frame/g" commonApi "github.com/tiger1103/gfast/v3/api/v1/common" "github.com/tiger1103/gfast/v3/internal/app/businesses/model" ) // SpeciesImgsSearchReq 分页请求参数 type SpeciesImgsSearchReq struct { g.Meta `path:"/list" tags:"" method:"get" summary:"列表"` commonApi.Author model.SpeciesImgsSearchReq } // SpeciesImgsSearchRes 列表返回结果 type SpeciesImgsSearchRes struct { g.Meta `mime:"application/json"` *model.SpeciesImgsSearchRes } // SpeciesImgsAddReq 添加操作请求参数 type SpeciesImgsAddReq struct { g.Meta `path:"/add" tags:"" method:"post" summary:"添加"` commonApi.Author *model.SpeciesImgsAddReq } // SpeciesImgsAddRes 添加操作返回结果 type SpeciesImgsAddRes struct { commonApi.EmptyRes } // SpeciesImgsEditReq 修改操作请求参数 type SpeciesImgsEditReq struct { g.Meta `path:"/edit" tags:"" method:"put" summary:"修改"` commonApi.Author *model.SpeciesImgsEditReq } // SpeciesImgsEditRes 修改操作返回结果 type SpeciesImgsEditRes struct { commonApi.EmptyRes } // SpeciesImgsGetReq 获取一条数据请求 type SpeciesImgsGetReq struct { g.Meta `path:"/get" tags:"" method:"get" summary:"获取信息"` commonApi.Author Int int `p:"int" v:"required#主键必须"` //通过主键获取 } // SpeciesImgsGetRes 获取一条数据结果 type SpeciesImgsGetRes struct { g.Meta `mime:"application/json"` *model.SpeciesImgsInfoRes } // SpeciesImgsDeleteReq 删除数据请求 type SpeciesImgsDeleteReq struct { g.Meta `path:"/delete" tags:"" method:"delete" summary:"删除"` commonApi.Author Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除 Version []int `p:"version"` } // SpeciesImgsDeleteRes 删除数据返回 type SpeciesImgsDeleteRes struct { commonApi.EmptyRes }