初始
This commit is contained in:
86
api/v1/system/manage_task_result.go
Normal file
86
api/v1/system/manage_task_result.go
Normal file
@ -0,0 +1,86 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2024-10-21 11:29:13
|
||||
// 生成路径: api/v1/system/manage_task_result.go
|
||||
// 生成人:gfast
|
||||
// desc:AI识别到的数据相关参数
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package system
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||||
)
|
||||
|
||||
// ManageTaskResultSearchReq 分页请求参数
|
||||
type ManageTaskResultSearchReq struct {
|
||||
g.Meta `path:"/list" tags:"AI识别到的数据" method:"get" summary:"AI识别到的数据列表"`
|
||||
Id string `p:"id"` //
|
||||
TaskId string `p:"taskId" v:"taskId@integer#航线任务ID需为整数"` // 航线任务ID
|
||||
PvId string `p:"pvId" v:"pvId@integer#pv_module 的主键需为整数"` // pv_module 的主键
|
||||
CreatedAt string `p:"createdAt" v:"createdAt@datetime#需为YYYY-MM-DD hh:mm:ss格式"` //
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// ManageTaskResultSearchRes 列表返回结果
|
||||
type ManageTaskResultSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*model.ManageTaskResultListRes `json:"list"`
|
||||
}
|
||||
|
||||
// ManageTaskResultAddReq 添加操作请求参数
|
||||
type ManageTaskResultAddReq struct {
|
||||
g.Meta `path:"/add" tags:"AI识别到的数据" method:"post" summary:"AI识别到的数据添加"`
|
||||
commonApi.Author
|
||||
TaskId int `p:"taskId" `
|
||||
PvId []int `p:"pvIds" `
|
||||
}
|
||||
|
||||
// ManageTaskResultAddRes 添加操作返回结果
|
||||
type ManageTaskResultAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// ManageTaskResultEditReq 修改操作请求参数
|
||||
type ManageTaskResultEditReq struct {
|
||||
g.Meta `path:"/edit" tags:"AI识别到的数据" method:"put" summary:"AI识别到的数据修改"`
|
||||
commonApi.Author
|
||||
Id uint `p:"id" v:"required#主键ID不能为空"`
|
||||
TaskId int `p:"taskId" `
|
||||
PvId int `p:"pvId" `
|
||||
}
|
||||
|
||||
// ManageTaskResultEditRes 修改操作返回结果
|
||||
type ManageTaskResultEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// ManageTaskResultGetReq 获取一条数据请求
|
||||
type ManageTaskResultGetReq struct {
|
||||
g.Meta `path:"/get" tags:"AI识别到的数据" method:"get" summary:"获取AI识别到的数据信息"`
|
||||
commonApi.Author
|
||||
Id uint `p:"id" v:"required#主键必须"` // 通过主键获取
|
||||
}
|
||||
|
||||
// ManageTaskResultGetRes 获取一条数据结果
|
||||
type ManageTaskResultGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*model.ManageTaskResultInfoRes
|
||||
}
|
||||
|
||||
// ManageTaskResultDeleteReq 删除数据请求
|
||||
type ManageTaskResultDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"AI识别到的数据" method:"delete" summary:"删除AI识别到的数据"`
|
||||
commonApi.Author
|
||||
Ids []uint `p:"ids" v:"required#主键必须"` // 通过主键删除
|
||||
}
|
||||
|
||||
// ManageTaskResultDeleteRes 删除数据返回
|
||||
type ManageTaskResultDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
Reference in New Issue
Block a user