初始化项目
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
// CreateReportReq 创建报表请求
|
||||
type CreateReportReq struct {
|
||||
g.Meta `path:"/report/create" method:"post" tags:"广告报表" summary:"创建报表" dc:"创建新的广告报表"`
|
||||
g.Meta `path:"/create" method:"post" tags:"广告报表" summary:"创建报表" dc:"创建新的广告报表"`
|
||||
|
||||
// 报表信息
|
||||
ReportName string `json:"reportName" v:"required"` // 报表名称
|
||||
@@ -31,7 +31,7 @@ type CreateReportRes struct {
|
||||
|
||||
// GetReportReq 获取报表详情请求
|
||||
type GetReportReq struct {
|
||||
g.Meta `path:"/report/one" method:"get" tags:"广告报表" summary:"获取报表详情" dc:"根据ID获取单个报表详情"`
|
||||
g.Meta `path:"/getOne" method:"get" tags:"广告报表" summary:"获取报表详情" dc:"根据ID获取单个报表详情"`
|
||||
Id string `json:"id" v:"required"` // ID
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ type GetReportRes struct {
|
||||
|
||||
// ListReportReq 获取报表列表请求
|
||||
type ListReportReq struct {
|
||||
g.Meta `path:"/report/list" method:"get" tags:"广告报表" summary:"获取报表列表" dc:"分页查询报表列表,支持多条件筛选"`
|
||||
g.Meta `path:"/list" method:"get" tags:"广告报表" summary:"获取报表列表" dc:"分页查询报表列表,支持多条件筛选"`
|
||||
http.Page
|
||||
|
||||
ReportName string `json:"reportName"` // 报表名称模糊查询
|
||||
@@ -58,7 +58,7 @@ type ListReportRes struct {
|
||||
|
||||
// UpdateReportReq 更新报表请求
|
||||
type UpdateReportReq struct {
|
||||
g.Meta `path:"/report/update" method:"post" tags:"广告报表" summary:"更新报表" dc:"更新报表信息"`
|
||||
g.Meta `path:"/update" method:"post" tags:"广告报表" summary:"更新报表" dc:"更新报表信息"`
|
||||
|
||||
Id string `json:"id" v:"required"` // ID
|
||||
|
||||
@@ -78,14 +78,14 @@ type UpdateReportReq struct {
|
||||
|
||||
// DeleteReportReq 删除报表请求
|
||||
type DeleteReportReq struct {
|
||||
g.Meta `path:"/report/delete" method:"post" tags:"广告报表" summary:"删除报表" dc:"删除指定的报表"`
|
||||
g.Meta `path:"/delete" method:"post" tags:"广告报表" summary:"删除报表" dc:"删除指定的报表"`
|
||||
|
||||
Id string `json:"id" v:"required"` // 报表ID
|
||||
}
|
||||
|
||||
// DownloadReportReq 下载报表请求
|
||||
type DownloadReportReq struct {
|
||||
g.Meta `path:"/report/download" method:"get" tags:"广告报表" summary:"下载报表" dc:"下载指定的报表文件"`
|
||||
g.Meta `path:"/download" method:"get" tags:"广告报表" summary:"下载报表" dc:"下载指定的报表文件"`
|
||||
|
||||
Id string `json:"id" v:"required"` // 报表ID
|
||||
}
|
||||
@@ -98,7 +98,7 @@ type DownloadReportRes struct {
|
||||
|
||||
// GenerateReportReq 生成报表请求
|
||||
type GenerateReportReq struct {
|
||||
g.Meta `path:"/report/generate" method:"post" tags:"广告报表" summary:"生成报表" dc:"手动生成报表"`
|
||||
g.Meta `path:"/generate" method:"post" tags:"广告报表" summary:"生成报表" dc:"手动生成报表"`
|
||||
|
||||
Id string `json:"id" v:"required"` // 报表ID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user