初始
This commit is contained in:
93
api/v1/system/bus_tour.go
Normal file
93
api/v1/system/bus_tour.go
Normal file
@ -0,0 +1,93 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2023-10-10 12:11:05
|
||||
// 生成路径: api/v1/system/bus_tour.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"
|
||||
)
|
||||
|
||||
// BusTourSearchReq 分页请求参数
|
||||
type BusTourSearchReq struct {
|
||||
g.Meta `path:"/list" tags:"煤科巡视-故障记录" method:"get" summary:"煤科巡视-故障记录列表"`
|
||||
ProjectId string `p:"projectId"` //項目id
|
||||
TourCategory string `p:"tourCategory"` //类别字典
|
||||
TourType string `p:"tourType"` //类型字典
|
||||
Describe string `p:"describe"` //故障描述
|
||||
CreatedAt string `p:"createdAt" v:"createdAt@datetime#创建时间需为YYYY-MM-DD hh:mm:ss格式"` //创建时间
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// BusTourSearchRes 列表返回结果
|
||||
type BusTourSearchRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*model.BusTourListRes `json:"list"`
|
||||
}
|
||||
|
||||
// BusTourAddReq 添加操作请求参数
|
||||
type BusTourAddReq struct {
|
||||
g.Meta `path:"/add" tags:"煤科巡视-故障记录" method:"post" summary:"煤科巡视-故障记录添加"`
|
||||
commonApi.Author
|
||||
Id int64 `p:"id" v:"required#主键ID不能为空"`
|
||||
ProjectId int64 `p:"projectId" v:"required#项目ID不能为空"`
|
||||
TourCategory string `p:"tourCategory" `
|
||||
TourType string `p:"tourType" `
|
||||
Picture string `p:"picture" `
|
||||
Describe string `p:"describe"`
|
||||
Num int `p:"describe"`
|
||||
TableName string `p:"tableName"`
|
||||
TableId int64 `p:"tableId"`
|
||||
SxtName interface{} `p:"sxtName"`
|
||||
}
|
||||
|
||||
// BusTourAddRes 添加操作返回结果
|
||||
type BusTourAddRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// BusTourEditReq 修改操作请求参数
|
||||
type BusTourEditReq struct {
|
||||
g.Meta `path:"/edit" tags:"煤科巡视-故障记录" method:"put" summary:"煤科巡视-故障记录修改"`
|
||||
commonApi.Author
|
||||
Id int64 `p:"id" v:"required#主键ID不能为空"`
|
||||
}
|
||||
|
||||
// BusTourEditRes 修改操作返回结果
|
||||
type BusTourEditRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
||||
|
||||
// BusTourGetReq 获取一条数据请求
|
||||
type BusTourGetReq struct {
|
||||
g.Meta `path:"/get" tags:"煤科巡视-故障记录" method:"get" summary:"获取煤科巡视-故障记录信息"`
|
||||
commonApi.Author
|
||||
Id int64 `p:"id" v:"required#主键必须"` //通过主键获取
|
||||
}
|
||||
|
||||
// BusTourGetRes 获取一条数据结果
|
||||
type BusTourGetRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*model.BusTourInfoRes
|
||||
}
|
||||
|
||||
// BusTourDeleteReq 删除数据请求
|
||||
type BusTourDeleteReq struct {
|
||||
g.Meta `path:"/delete" tags:"煤科巡视-故障记录" method:"delete" summary:"删除煤科巡视-故障记录"`
|
||||
commonApi.Author
|
||||
Ids []int64 `p:"ids" v:"required#主键必须"` //通过主键删除
|
||||
}
|
||||
|
||||
// BusTourDeleteRes 删除数据返回
|
||||
type BusTourDeleteRes struct {
|
||||
commonApi.EmptyRes
|
||||
}
|
Reference in New Issue
Block a user