// ========================================================================== // GFast自动生成api操作代码。 // 生成日期:2025-08-11 10:08:28 // 生成路径: api/v1/businesses/natural_enemy_insect.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" ) // NaturalEnemyInsectSearchReq 分页请求参数 type NaturalEnemyInsectSearchReq struct { g.Meta `path:"/list" tags:"天敌昆虫" method:"get" summary:"天敌昆虫列表"` commonApi.Author model.NaturalEnemyInsectSearchReq } // NaturalEnemyInsectSearchRes 列表返回结果 type NaturalEnemyInsectSearchRes struct { g.Meta `mime:"application/json"` *model.NaturalEnemyInsectSearchRes } // NaturalEnemyInsectAddReq 添加操作请求参数 type NaturalEnemyInsectAddReq struct { g.Meta `path:"/add" tags:"天敌昆虫" method:"post" summary:"天敌昆虫添加"` commonApi.Author *model.NaturalEnemyInsectAddReq } // NaturalEnemyInsectAddRes 添加操作返回结果 type NaturalEnemyInsectAddRes struct { commonApi.EmptyRes } // NaturalEnemyInsectEditReq 修改操作请求参数 type NaturalEnemyInsectEditReq struct { g.Meta `path:"/edit" tags:"天敌昆虫" method:"put" summary:"天敌昆虫修改"` commonApi.Author *model.NaturalEnemyInsectEditReq } // NaturalEnemyInsectEditRes 修改操作返回结果 type NaturalEnemyInsectEditRes struct { commonApi.EmptyRes } // NaturalEnemyInsectGetReq 获取一条数据请求 type NaturalEnemyInsectGetReq struct { g.Meta `path:"/get" tags:"天敌昆虫" method:"get" summary:"获取天敌昆虫信息"` commonApi.Author Id int `p:"id" v:"required#主键必须"` //通过主键获取 } // NaturalEnemyInsectGetRes 获取一条数据结果 type NaturalEnemyInsectGetRes struct { g.Meta `mime:"application/json"` *model.NaturalEnemyInsectInfoRes } // NaturalEnemyInsectDeleteReq 删除数据请求 type NaturalEnemyInsectDeleteReq struct { g.Meta `path:"/delete" tags:"天敌昆虫" method:"delete" summary:"删除天敌昆虫"` commonApi.Author Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除 Version []int `p:"version"` } // NaturalEnemyInsectDeleteRes 删除数据返回 type NaturalEnemyInsectDeleteRes struct { commonApi.EmptyRes }