// ========================================================================== // GFast自动生成api操作代码。 // 生成日期:2025-08-11 10:15:42 // 生成路径: api/v1/businesses/prevention.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" ) // PreventionSearchReq 分页请求参数 type PreventionSearchReq struct { g.Meta `path:"/list" tags:"防控措施" method:"get" summary:"防控措施列表"` commonApi.Author model.PreventionSearchReq } // PreventionSearchRes 列表返回结果 type PreventionSearchRes struct { g.Meta `mime:"application/json"` *model.PreventionSearchRes } // PreventionAddReq 添加操作请求参数 type PreventionAddReq struct { g.Meta `path:"/add" tags:"防控措施" method:"post" summary:"防控措施添加"` commonApi.Author *model.PreventionAddReq } // PreventionAddRes 添加操作返回结果 type PreventionAddRes struct { commonApi.EmptyRes } // PreventionEditReq 修改操作请求参数 type PreventionEditReq struct { g.Meta `path:"/edit" tags:"防控措施" method:"put" summary:"防控措施修改"` commonApi.Author *model.PreventionEditReq } // PreventionEditRes 修改操作返回结果 type PreventionEditRes struct { commonApi.EmptyRes } // PreventionGetReq 获取一条数据请求 type PreventionGetReq struct { g.Meta `path:"/get" tags:"防控措施" method:"get" summary:"获取防控措施信息"` commonApi.Author Id int `p:"id" v:"required#主键必须"` //通过主键获取 } // PreventionGetRes 获取一条数据结果 type PreventionGetRes struct { g.Meta `mime:"application/json"` *model.PreventionInfoRes } // PreventionDeleteReq 删除数据请求 type PreventionDeleteReq struct { g.Meta `path:"/delete" tags:"防控措施" method:"delete" summary:"删除防控措施"` commonApi.Author Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除 Version []int `p:"version"` } // PreventionDeleteRes 删除数据返回 type PreventionDeleteRes struct { commonApi.EmptyRes }