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

95 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-06-21 15:23:29
// 生成路径: api/v1/system/manage_operation_log.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"
)
// ManageOperationLogSearchReq 分页请求参数
type ManageOperationLogSearchReq struct {
g.Meta `path:"/list" tags:"无人机指令日志" method:"get" summary:"无人机指令日志列表"`
Id string `p:"id"` //主键ID
Sn string `p:"sn"` //sn
Method string `p:"method"` //方法名
Direction string `p:"direction"` //上发/下发命令
Code string `p:"code" v:"code@integer#状态码需为整数"` //状态码
Operator string `p:"operator" v:"operator@integer#操作人ID默认为0表示系统操作需为整数"` //操作人ID默认为0表示系统操作
commonApi.PageReq
commonApi.Author
}
// ManageOperationLogSearchRes 列表返回结果
type ManageOperationLogSearchRes struct {
g.Meta `mime:"application/json"`
commonApi.ListRes
List []*model.ManageOperationLogListRes `json:"list"`
}
// ManageOperationLogAddReq 添加操作请求参数
type ManageOperationLogAddReq struct {
g.Meta `path:"/add" tags:"无人机指令日志" method:"post" summary:"无人机指令日志添加"`
commonApi.Author
Sn string `p:"sn" v:"required#sn不能为空"`
Method string `p:"method" v:"required#方法名不能为空"`
Direction string `p:"direction" v:"required#上发/下发命令不能为空"`
Code int `p:"code" `
Operator int64 `p:"operator" `
}
// ManageOperationLogAddRes 添加操作返回结果
type ManageOperationLogAddRes struct {
commonApi.EmptyRes
}
// ManageOperationLogEditReq 修改操作请求参数
type ManageOperationLogEditReq struct {
g.Meta `path:"/edit" tags:"无人机指令日志" method:"put" summary:"无人机指令日志修改"`
commonApi.Author
Id int64 `p:"id" v:"required#主键ID不能为空"`
Sn string `p:"sn" v:"required#sn不能为空"`
Method string `p:"method" v:"required#方法名不能为空"`
Direction string `p:"direction" v:"required#上发/下发命令不能为空"`
Code int `p:"code" `
Operator int64 `p:"operator" `
}
// ManageOperationLogEditRes 修改操作返回结果
type ManageOperationLogEditRes struct {
commonApi.EmptyRes
}
// ManageOperationLogGetReq 获取一条数据请求
type ManageOperationLogGetReq struct {
g.Meta `path:"/get" tags:"无人机指令日志" method:"get" summary:"获取无人机指令日志信息"`
commonApi.Author
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
}
// ManageOperationLogGetRes 获取一条数据结果
type ManageOperationLogGetRes struct {
g.Meta `mime:"application/json"`
*model.ManageOperationLogInfoRes
}
// ManageOperationLogDeleteReq 删除数据请求
type ManageOperationLogDeleteReq struct {
g.Meta `path:"/delete" tags:"无人机指令日志" method:"delete" summary:"删除无人机指令日志"`
commonApi.Author
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
}
// ManageOperationLogDeleteRes 删除数据返回
type ManageOperationLogDeleteRes struct {
commonApi.EmptyRes
}