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

140 lines
6.2 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操作代码。
// 生成日期2023-09-30 22:37:34
// 生成路径: api/v1/system/qianqi_camera.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/api/v1/common/shp"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
// QianqiCameraSearchReq 分页请求参数
type QianqiCameraSearchReq struct {
g.Meta `path:"/list" tags:"摄像头" method:"get" summary:"摄像头列表"`
Id string `p:"id"` //
CameraName string `p:"cameraName"` // 摄像头名称
CameraCode string `p:"cameraCode"` // 摄像头编码
Detail string `p:"detail"` // 摄像头坐标信息
ProjectId string `p:"projectId"` // 项目id
Status string `p:"status" v:"status@integer#在线情况1、在线0、离线,字典on_line_status需为整数"` // 在线情况1、在线0、离线,字典on_line_status
Poster string `p:"poster"` // 封面图
CreateBy string `p:"createBy"` // 创建人
UpdateBy string `p:"updateBy"` // 更新人
CreateddAt string `p:"createddAt" v:"createddAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` // 创建时间
SourceType string `p:"sourceType"` //
Serial string `p:"serial"` // 国标id
Code string `p:"code"` // 通道号
Flv string `p:"flv"` // flv地址
Hls string `p:"hls"` // hls地址
Share string `p:"share"` // 分享地址
Rtc string `p:"rtc"` // webrtc地址
commonApi.PageReq
commonApi.Author
}
// QianqiCameraSearchRes 列表返回结果
type QianqiCameraSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.QianqiCameraListRes `json:"list"`
}
// QianqiCameraAddReq 添加操作请求参数
type QianqiCameraAddReq struct {
g.Meta `path:"/add" tags:"摄像头" method:"post" summary:"摄像头添加"`
commonApi.Author
CameraName string `p:"cameraName" dc:"摄像头名称" v:"required#摄像头名称不能为空"`
// CameraCode string `p:"cameraCode" dc:"摄像头编码" `
Detail string `p:"detail" dc:"摄像头坐标信息"`
ProjectId string `p:"projectId" dc:"项目id" v:"required#项目ID不能为空"`
Status int `p:"status" dc:"在线情况1、在线0、离线,字典on_line_status不能为空" v:"required#在线情况1、在线0、离线,字典on_line_status不能为空"`
Poster string `p:"poster" dc:"封面图"`
// CreateBy string `p:"createBy" `
// UpdateBy string `p:"updateBy" `
// CreateddAt *gtime.Time `p:"createddAt" `
// SourceType string `p:"sourceType" `
Serial string `p:"serial" dc:"国标号"`
Code string `p:"code" dc:"通道号" `
// Flv string `p:"flv" `
// Hls string `p:"hls" `
// Share string `p:"share" `
// Rtc string `p:"rtc" `
}
// QianqiCameraAddRes 添加操作返回结果
type QianqiCameraAddRes struct {
commonApi.EmptyRes
}
type QianqiCameraEditNameAndDetailReq struct {
g.Meta `path:"/editNameAndDetail" tags:"摄像头" method:"put" summary:"摄像头修改名称和坐标详情数据"`
commonApi.Author
CameraName string `p:"cameraName" v:"required#摄像头名称不能为空"`
CameraCode string `p:"cameraCode" v:"required#摄像头编码不能为空"`
Detail shp.Detail `p:"detail" v:"required#摄像头坐标详情不能为空"`
}
type QianqiCameraEditNameAndDetailRes struct {
commonApi.EmptyRes
}
// QianqiCameraEditReq 视频融合(平移、旋转)
type QianqiCameraEditReq struct {
g.Meta `path:"/edit" tags:"摄像头" method:"put" summary:"视频融合(平移、旋转)"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Degree shp.Degree `p:"degree" dc:"经度、纬度、高度、旋转值"`
}
// QianqiCameraEditRes 视频融合(平移、旋转)
type QianqiCameraEditRes struct {
commonApi.EmptyRes
}
// QianqiCameraGetReq 获取一条数据请求
type QianqiCameraGetReq struct {
g.Meta `path:"/get" tags:"摄像头" method:"get" summary:"获取摄像头信息"`
commonApi.Author
Id int `p:"id" v:"required#主键必须"` // 通过主键获取
}
// QianqiCameraGetRes 获取一条数据结果
type QianqiCameraGetRes struct {
g.Meta `mime:"application/json"`
*model.QianqiCameraInfoRes
}
// QianqiCameraDeleteReq 删除数据请求
type QianqiCameraDeleteReq struct {
g.Meta `path:"/delete" tags:"摄像头" method:"delete" summary:"删除摄像头"`
commonApi.Author
Ids []int `p:"ids" v:"required#主键必须"` // 通过主键删除
}
// QianqiCameraDeleteRes 删除数据返回
type QianqiCameraDeleteRes struct {
commonApi.EmptyRes
}
// EditCameraReq 摄像头修改(名称、国标、通道)
type EditCameraReq struct {
g.Meta `path:"/cameraEdit" tags:"摄像头" method:"put" summary:"摄像头修改(名称、国标、通道)"`
commonApi.Author
Id int64 `p:"id" dc:"主键ID" v:"required#主键ID不能为空"`
CameraName string `p:"cameraName" dc:"摄像头名称" v:"required#摄像头名称必填"`
Serial string `p:"serial" dc:"国标" v:"required#国标必填"`
Code string `p:"code" dc:"通道" v:"required#通道必填"`
}
// EditCameraRes 视频融合(平移、旋转)
type EditCameraRes struct {
commonApi.EmptyRes
}