zky_mandate/api/v1/businesses/hostBotany.go

80 lines
2.3 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// GFast自动生成api操作代码。
// 生成日期2025-08-11 09:34:44
// 生成路径: api/v1/businesses/host_botany.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"
)
// HostBotanySearchReq 分页请求参数
type HostBotanySearchReq struct {
g.Meta `path:"/list" tags:"寄主植物" method:"get" summary:"寄主植物列表"`
commonApi.Author
model.HostBotanySearchReq
}
// HostBotanySearchRes 列表返回结果
type HostBotanySearchRes struct {
g.Meta `mime:"application/json"`
*model.HostBotanySearchRes
}
// HostBotanyAddReq 添加操作请求参数
type HostBotanyAddReq struct {
g.Meta `path:"/add" tags:"寄主植物" method:"post" summary:"寄主植物添加"`
commonApi.Author
*model.HostBotanyAddReq
}
// HostBotanyAddRes 添加操作返回结果
type HostBotanyAddRes struct {
commonApi.EmptyRes
}
// HostBotanyEditReq 修改操作请求参数
type HostBotanyEditReq struct {
g.Meta `path:"/edit" tags:"寄主植物" method:"put" summary:"寄主植物修改"`
commonApi.Author
*model.HostBotanyEditReq
}
// HostBotanyEditRes 修改操作返回结果
type HostBotanyEditRes struct {
commonApi.EmptyRes
}
// HostBotanyGetReq 获取一条数据请求
type HostBotanyGetReq struct {
g.Meta `path:"/get" tags:"寄主植物" method:"get" summary:"获取寄主植物信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` //通过主键获取
}
// HostBotanyGetRes 获取一条数据结果
type HostBotanyGetRes struct {
g.Meta `mime:"application/json"`
*model.HostBotanyInfoRes
}
// HostBotanyDeleteReq 删除数据请求
type HostBotanyDeleteReq struct {
g.Meta `path:"/delete" tags:"寄主植物" method:"delete" summary:"删除寄主植物"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
Version []int `p:"version"`
}
// HostBotanyDeleteRes 删除数据返回
type HostBotanyDeleteRes struct {
commonApi.EmptyRes
}