80 lines
2.4 KiB
Go
80 lines
2.4 KiB
Go
// ==========================================================================
|
||
// GFast自动生成api操作代码。
|
||
// 生成日期:2025-08-08 15:18:02
|
||
// 生成路径: api/v1/businesses/characteristic.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"
|
||
)
|
||
|
||
// CharacteristicSearchReq 分页请求参数
|
||
type CharacteristicSearchReq struct {
|
||
g.Meta `path:"/list" tags:"识别特征" method:"get" summary:"识别特征列表"`
|
||
commonApi.Author
|
||
model.CharacteristicSearchReq
|
||
}
|
||
|
||
// CharacteristicSearchRes 列表返回结果
|
||
type CharacteristicSearchRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
*model.CharacteristicSearchRes
|
||
}
|
||
|
||
// CharacteristicAddReq 添加操作请求参数
|
||
type CharacteristicAddReq struct {
|
||
g.Meta `path:"/add" tags:"识别特征" method:"post" summary:"识别特征添加"`
|
||
commonApi.Author
|
||
*model.CharacteristicAddReq
|
||
}
|
||
|
||
// CharacteristicAddRes 添加操作返回结果
|
||
type CharacteristicAddRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// CharacteristicEditReq 修改操作请求参数
|
||
type CharacteristicEditReq struct {
|
||
g.Meta `path:"/edit" tags:"识别特征" method:"put" summary:"识别特征修改"`
|
||
commonApi.Author
|
||
*model.CharacteristicEditReq
|
||
}
|
||
|
||
// CharacteristicEditRes 修改操作返回结果
|
||
type CharacteristicEditRes struct {
|
||
commonApi.EmptyRes
|
||
}
|
||
|
||
// CharacteristicGetReq 获取一条数据请求
|
||
type CharacteristicGetReq struct {
|
||
g.Meta `path:"/get" tags:"识别特征" method:"get" summary:"获取识别特征信息"`
|
||
commonApi.Author
|
||
Id int `p:"id" v:"required#主键必须"` //通过主键获取
|
||
}
|
||
|
||
// CharacteristicGetRes 获取一条数据结果
|
||
type CharacteristicGetRes struct {
|
||
g.Meta `mime:"application/json"`
|
||
*model.CharacteristicInfoRes
|
||
}
|
||
|
||
// CharacteristicDeleteReq 删除数据请求
|
||
type CharacteristicDeleteReq struct {
|
||
g.Meta `path:"/delete" tags:"识别特征" method:"delete" summary:"删除识别特征"`
|
||
commonApi.Author
|
||
Ids []int `p:"ids" v:"required#主键必须"` //通过主键删除
|
||
Version []int `p:"version"`
|
||
}
|
||
|
||
// CharacteristicDeleteRes 删除数据返回
|
||
type CharacteristicDeleteRes struct {
|
||
commonApi.EmptyRes
|
||
}
|