mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-08-26 16:46:14 +08:00
86 lines
2.2 KiB
Go
86 lines
2.2 KiB
Go
// Package curddemo
|
|
// @Link https://github.com/bufanyun/hotgo
|
|
// @Copyright Copyright (c) 2023 HotGo CLI
|
|
// @Author Ms <133814250@qq.com>
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
// @AutoGenerate Version 2.11.5
|
|
package curddemo
|
|
|
|
import (
|
|
"hotgo/internal/model/input/form"
|
|
"hotgo/internal/model/input/sysin"
|
|
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
// ListReq 查询生成演示列表
|
|
type ListReq struct {
|
|
g.Meta `path:"/curdDemo/list" method:"get" tags:"生成演示" summary:"获取生成演示列表"`
|
|
sysin.CurdDemoListInp
|
|
}
|
|
|
|
type ListRes struct {
|
|
form.PageRes
|
|
List []*sysin.CurdDemoListModel `json:"list" dc:"数据列表"`
|
|
}
|
|
|
|
// ExportReq 导出生成演示列表
|
|
type ExportReq struct {
|
|
g.Meta `path:"/curdDemo/export" method:"get" tags:"生成演示" summary:"导出生成演示列表"`
|
|
sysin.CurdDemoListInp
|
|
}
|
|
|
|
type ExportRes struct{}
|
|
|
|
// ViewReq 获取生成演示指定信息
|
|
type ViewReq struct {
|
|
g.Meta `path:"/curdDemo/view" method:"get" tags:"生成演示" summary:"获取生成演示指定信息"`
|
|
sysin.CurdDemoViewInp
|
|
}
|
|
|
|
type ViewRes struct {
|
|
*sysin.CurdDemoViewModel
|
|
}
|
|
|
|
// EditReq 修改/新增生成演示
|
|
type EditReq struct {
|
|
g.Meta `path:"/curdDemo/edit" method:"post" tags:"生成演示" summary:"修改/新增生成演示"`
|
|
sysin.CurdDemoEditInp
|
|
}
|
|
|
|
type EditRes struct{}
|
|
|
|
// DeleteReq 删除生成演示
|
|
type DeleteReq struct {
|
|
g.Meta `path:"/curdDemo/delete" method:"post" tags:"生成演示" summary:"删除生成演示"`
|
|
sysin.CurdDemoDeleteInp
|
|
}
|
|
|
|
type DeleteRes struct{}
|
|
|
|
// MaxSortReq 获取生成演示最大排序
|
|
type MaxSortReq struct {
|
|
g.Meta `path:"/curdDemo/maxSort" method:"get" tags:"生成演示" summary:"获取生成演示最大排序"`
|
|
sysin.CurdDemoMaxSortInp
|
|
}
|
|
|
|
type MaxSortRes struct {
|
|
*sysin.CurdDemoMaxSortModel
|
|
}
|
|
|
|
// StatusReq 更新生成演示状态
|
|
type StatusReq struct {
|
|
g.Meta `path:"/curdDemo/status" method:"post" tags:"生成演示" summary:"更新生成演示状态"`
|
|
sysin.CurdDemoStatusInp
|
|
}
|
|
|
|
type StatusRes struct{}
|
|
|
|
// SwitchReq 更新生成演示开关状态
|
|
type SwitchReq struct {
|
|
g.Meta `path:"/curdDemo/switch" method:"post" tags:"生成演示" summary:"更新生成演示状态"`
|
|
sysin.CurdDemoSwitchInp
|
|
}
|
|
|
|
type SwitchRes struct{}
|