sync: 同步 v1.0.4 并脱敏配置与镜像
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/response"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// DownloadCenterListReq 下载中心列表
|
||||
type DownloadCenterListReq struct {
|
||||
g.Meta `path:"/downloadCenter/list" method:"get" tags:"下载中心" summary:"获取下载任务列表" x-check-permission:"cpm:common:downloadCenter:list"`
|
||||
model.DownloadCenterListParam
|
||||
}
|
||||
|
||||
type DownloadCenterListRes struct {
|
||||
response.PageResult
|
||||
Items []*model.DownloadCenterListModel `json:"items" dc:"数据列表"`
|
||||
}
|
||||
|
||||
// DownloadCenterRecentReq 右上角全局入口:最近任务与进行中数量
|
||||
type DownloadCenterRecentReq struct {
|
||||
g.Meta `path:"/downloadCenter/recent" method:"get" tags:"下载中心" summary:"获取最近导出任务" x-check-permission:"cpm:common:downloadCenter:list"`
|
||||
model.DownloadCenterRecentParam
|
||||
}
|
||||
|
||||
type DownloadCenterRecentRes struct {
|
||||
*model.DownloadCenterRecentModel
|
||||
}
|
||||
|
||||
// DownloadCenterDownloadReq 下载导出文件(直接返回文件流)
|
||||
type DownloadCenterDownloadReq struct {
|
||||
g.Meta `path:"/downloadCenter/download" method:"get" tags:"下载中心" summary:"下载导出文件" x-check-permission:"cpm:common:downloadCenter:download"`
|
||||
model.DownloadCenterTaskParam
|
||||
}
|
||||
|
||||
type DownloadCenterDownloadRes struct{}
|
||||
|
||||
// DownloadCenterRemoveReq 删除文件并保留导出任务历史
|
||||
type DownloadCenterRemoveReq struct {
|
||||
g.Meta `path:"/downloadCenter/remove" method:"post" tags:"下载中心" summary:"删除导出任务" x-check-permission:"cpm:common:downloadCenter:remove"`
|
||||
model.DownloadCenterTaskParam
|
||||
}
|
||||
|
||||
type DownloadCenterRemoveRes struct{}
|
||||
Reference in New Issue
Block a user