初始
This commit is contained in:
106
api/v1/system/bus_camera_channel.go
Normal file
106
api/v1/system/bus_camera_channel.go
Normal file
@ -0,0 +1,106 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2023-09-20 14:55:42
|
||||
// 生成路径: api/v1/system/bus_camera_channel.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"
|
||||
)
|
||||
|
||||
// BusCameraChannelSearchReq 分页请求参数
|
||||
type BusCameraChannelSearchReq struct {
|
||||
g.Meta `path:"/list" tags:"摄像头(国标通道)" method:"get" summary:"摄像头(国标通道)列表"`
|
||||
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
|
||||
CountryId string `p:"countryId"` //国标ID
|
||||
ChannelNumber string `p:"channelNumber"` //国标通道号
|
||||
ChannelName string `p:"channelName"` //通道名称
|
||||
ChannelFormat string `p:"channelFormat"` //视频格式(字典)
|
||||
ChannelState string `p:"channelState"` //在线状态(字典)
|
||||
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// BusCameraChannelSearchRes 列表返回结果
|
||||
type BusCameraChannelSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*model.BusCameraChannelListRes `json:"list"`
|
||||
}
|
||||
|
||||
// BusCameraChannelAddReq 添加操作请求参数
|
||||
type BusCameraChannelAddReq struct {
|
||||
g.Meta `path:"/add" tags:"摄像头(国标通道)" method:"post" summary:"摄像头(国标通道)添加"`
|
||||
commonApi.Author
|
||||
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
|
||||
CountryId int64 `p:"countryId" v:"required#摄像头ID不能为空"`
|
||||
ChannelNumber string `p:"channelNumber" v:"required#国标通道号不能为空"`
|
||||
ChannelName string `p:"channelName" v:"required#通道名称不能为空"`
|
||||
ChannelPath string `p:"channelPath" `
|
||||
ChannelFormat string `p:"channelFormat" `
|
||||
ChannelState string `p:"channelState" `
|
||||
Remark string `p:"remark" `
|
||||
Imei string `p:"imei" dc:"识别码"`
|
||||
Iccid string `p:"iccid" dc:"序列号"`
|
||||
}
|
||||
|
||||
// BusCameraChannelAddRes 添加操作返回结果
|
||||
type BusCameraChannelAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// BusCameraChannelEditReq 修改操作请求参数
|
||||
type BusCameraChannelEditReq struct {
|
||||
g.Meta `path:"/edit" tags:"摄像头(国标通道)" method:"put" summary:"摄像头(国标通道)修改"`
|
||||
commonApi.Author
|
||||
Id int64 `p:"id" v:"required#主键ID不能为空"`
|
||||
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
|
||||
CountryId int64 `p:"countryId" v:"required#摄像头ID不能为空"`
|
||||
ChannelNumber string `p:"channelNumber" v:"required#国标通道号不能为空"`
|
||||
ChannelName string `p:"channelName" v:"required#通道名称不能为空"`
|
||||
ChannelPath string `p:"channelPath" `
|
||||
ChannelFormat string `p:"channelFormat" `
|
||||
ChannelState string `p:"channelState" `
|
||||
Remark string `p:"remark" `
|
||||
Detail string `p:"detail" `
|
||||
Imei string `p:"imei" dc:"识别码"`
|
||||
Iccid string `p:"iccid" dc:"序列号"`
|
||||
}
|
||||
|
||||
// BusCameraChannelEditRes 修改操作返回结果
|
||||
type BusCameraChannelEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// BusCameraChannelGetReq 获取一条数据请求
|
||||
type BusCameraChannelGetReq struct {
|
||||
g.Meta `path:"/get" tags:"摄像头(国标通道)" method:"get" summary:"获取摄像头(国标通道)信息"`
|
||||
commonApi.Author
|
||||
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
|
||||
}
|
||||
|
||||
// BusCameraChannelGetRes 获取一条数据结果
|
||||
type BusCameraChannelGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*model.BusCameraChannelInfoRes
|
||||
}
|
||||
|
||||
// BusCameraChannelDeleteReq 删除数据请求
|
||||
type BusCameraChannelDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"摄像头(国标通道)" method:"delete" summary:"删除摄像头(国标通道)"`
|
||||
commonApi.Author
|
||||
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
|
||||
}
|
||||
|
||||
// BusCameraChannelDeleteRes 删除数据返回
|
||||
type BusCameraChannelDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
Reference in New Issue
Block a user