// ========================================================================== // GFast自动生成api操作代码。 // 生成日期:2025-08-08 11:21:24 // 生成路径: api/v1/businesses/geography.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" ) // GeographySearchReq 分页请求参数 type GeographySearchReq struct { g.Meta `path:"/list" tags:"地理分布" method:"get" summary:"地理分布列表"` commonApi.Author model.GeographySearchReq } // GeographySearchRes 列表返回结果 type GeographySearchRes struct { g.Meta `mime:"application/json"` *model.GeographySearchRes } // GeographyAddReq 添加操作请求参数 type GeographyAddReq struct { g.Meta `path:"/add" tags:"地理分布" method:"post" summary:"地理分布添加"` commonApi.Author *model.GeographyAddReq } // GeographyAddRes 添加操作返回结果 type GeographyAddRes struct { commonApi.EmptyRes } // GeographyEditReq 修改操作请求参数 type GeographyEditReq struct { g.Meta `path:"/edit" tags:"地理分布" method:"put" summary:"地理分布修改"` commonApi.Author *model.GeographyEditReq } // GeographyEditRes 修改操作返回结果 type GeographyEditRes struct { commonApi.EmptyRes } // GeographyGetReq 获取一条数据请求 type GeographyGetReq struct { g.Meta `path:"/get" tags:"地理分布" method:"get" summary:"获取地理分布信息"` commonApi.Author Id int `p:"id" v:"required#主键必须"` //通过主键获取 } // GeographyGetRes 获取一条数据结果 type GeographyGetRes struct { g.Meta `mime:"application/json"` *model.GeographyInfoRes } // GeographyDeleteReq 删除数据请求 type GeographyDeleteReq struct { g.Meta `path:"/delete" tags:"地理分布" method:"delete" summary:"删除地理分布"` commonApi.Author Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除 Version []int `p:"version"` } // GeographyDeleteRes 删除数据返回 type GeographyDeleteRes struct { commonApi.EmptyRes }