Files
zmkgC/api/v1/system/ys7devices_img.go
2025-07-07 20:11:59 +08:00

90 lines
3.7 KiB
Go
Raw 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操作代码。
// 生成日期2024-08-19 11:51:53
// 生成路径: api/v1/system/ys7devices_img.go
// 生成人gfast
// desc:摄像头所拍摄到的所有图片(每月会定时清除)相关参数
// 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"
)
// Ys7DevicesImgSearchReq 分页请求参数
type Ys7DevicesImgSearchReq struct {
g.Meta `path:"/list" tags:"摄像头所拍摄到的所有图片(每月会定时清除)" method:"get" summary:"摄像头所拍摄到的所有图片(每月会定时清除)列表"`
Id string `p:"id"` //主键ID
FatherId string `p:"fatherId" v:"fatherId@integer#父id需为整数"` //父id
Name string `p:"name"` //摄像头名称
Path string `p:"path"` //图片路径
CreatedAt string `p:"createdAt" v:"createdAt@datetime#拍摄时间需为YYYY-MM-DD hh:mm:ss格式"` //拍摄时间
commonApi.PageReq
commonApi.Author
}
// Ys7DevicesImgSearchRes 列表返回结果
type Ys7DevicesImgSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.Ys7DevicesImgListRes `json:"list"`
}
// Ys7DevicesImgAddReq 添加操作请求参数
type Ys7DevicesImgAddReq struct {
g.Meta `path:"/add" tags:"摄像头所拍摄到的所有图片(每月会定时清除)" method:"post" summary:"摄像头所拍摄到的所有图片(每月会定时清除)添加"`
commonApi.Author
FatherId uint64 `p:"fatherId" v:"required#父id不能为空"`
Name string `p:"name" v:"required#摄像头名称不能为空"`
Path string `p:"path" `
}
// Ys7DevicesImgAddRes 添加操作返回结果
type Ys7DevicesImgAddRes struct {
commonApi.EmptyRes
}
// Ys7DevicesImgEditReq 修改操作请求参数
type Ys7DevicesImgEditReq struct {
g.Meta `path:"/edit" tags:"摄像头所拍摄到的所有图片(每月会定时清除)" method:"put" summary:"摄像头所拍摄到的所有图片(每月会定时清除)修改"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键ID不能为空"`
FatherId uint64 `p:"fatherId" v:"required#父id不能为空"`
Name string `p:"name" v:"required#摄像头名称不能为空"`
Path string `p:"path" `
}
// Ys7DevicesImgEditRes 修改操作返回结果
type Ys7DevicesImgEditRes struct {
commonApi.EmptyRes
}
// Ys7DevicesImgGetReq 获取一条数据请求
type Ys7DevicesImgGetReq struct {
g.Meta `path:"/get" tags:"摄像头所拍摄到的所有图片(每月会定时清除)" method:"get" summary:"获取摄像头所拍摄到的所有图片(每月会定时清除)信息"`
commonApi.Author
Id uint64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// Ys7DevicesImgGetRes 获取一条数据结果
type Ys7DevicesImgGetRes struct {
g.Meta `mime:"application/json"`
*model.Ys7DevicesImgInfoRes
}
// Ys7DevicesImgDeleteReq 删除数据请求
type Ys7DevicesImgDeleteReq struct {
g.Meta `path:"/delete" tags:"摄像头所拍摄到的所有图片(每月会定时清除)" method:"delete" summary:"删除摄像头所拍摄到的所有图片(每月会定时清除)"`
commonApi.Author
Ids []uint64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// Ys7DevicesImgDeleteRes 删除数据返回
type Ys7DevicesImgDeleteRes struct {
commonApi.EmptyRes
}