gomod引用
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
// GetOrderStatisticsReq 获取订单统计数据请求
|
||||
type GetOrderStatisticsReq struct {
|
||||
g.Meta `path:"/statistics" method:"get" tags:"订单统计" summary:"获取订单统计数据" dc:"根据报表类型和日期获取订单统计数据"`
|
||||
g.Meta `path:"/getStatistics" method:"get" tags:"订单统计" summary:"获取订单统计数据" dc:"根据报表类型和日期获取订单统计数据"`
|
||||
TenantID int64 `v:"required" json:"tenant_id" dc:"租户ID"`
|
||||
ReportType string `v:"required|in:daily,monthly,quarterly,yearly" json:"report_type" dc:"报表类型"`
|
||||
StartDate string `json:"start_date,omitempty" dc:"开始日期"`
|
||||
@@ -62,7 +62,7 @@ type OrderStatisticsDetail struct {
|
||||
|
||||
// GetOrderStatisticsListReq 获取订单统计列表请求
|
||||
type GetOrderStatisticsListReq struct {
|
||||
g.Meta `path:"/statistics/list" method:"get" tags:"订单统计" summary:"获取订单统计列表" dc:"分页获取订单统计列表"`
|
||||
g.Meta `path:"/getStatisticsList" method:"get" tags:"订单统计" summary:"获取订单统计列表" dc:"分页获取订单统计列表"`
|
||||
TenantID int64 `v:"required" json:"tenant_id" dc:"租户ID"`
|
||||
ReportType string `v:"required|in:daily,monthly,quarterly,yearly" json:"report_type" dc:"报表类型"`
|
||||
StartDate string `json:"start_date,omitempty" dc:"开始日期"`
|
||||
@@ -81,7 +81,7 @@ type GetOrderStatisticsListRes struct {
|
||||
|
||||
// GenerateOrderStatisticsReq 生成订单统计数据请求
|
||||
type GenerateOrderStatisticsReq struct {
|
||||
g.Meta `path:"/statistics/generate" method:"post" tags:"订单统计" summary:"生成订单统计数据" dc:"手动触发生成指定日期的统计数据"`
|
||||
g.Meta `path:"/generateStatistics" method:"post" tags:"订单统计" summary:"生成订单统计数据" dc:"手动触发生成指定日期的统计数据"`
|
||||
TenantID int64 `v:"required" json:"tenant_id" dc:"租户ID"`
|
||||
ReportType string `v:"required|in:daily,monthly,quarterly,yearly" json:"report_type" dc:"报表类型"`
|
||||
ReportDate string `json:"report_date,omitempty" dc:"统计日期,格式YYYY-MM-DD"`
|
||||
@@ -96,7 +96,7 @@ type GenerateOrderStatisticsRes struct {
|
||||
|
||||
// GetOrderTrendReq 获取订单趋势数据请求
|
||||
type GetOrderTrendReq struct {
|
||||
g.Meta `path:"/statistics/trend" method:"get" tags:"订单统计" summary:"获取订单趋势数据" dc:"获取指定时间范围内的订单趋势数据"`
|
||||
g.Meta `path:"/getTrend" method:"get" tags:"订单统计" summary:"获取订单趋势数据" dc:"获取指定时间范围内的订单趋势数据"`
|
||||
TenantID int64 `v:"required" json:"tenant_id" dc:"租户ID"`
|
||||
StartDate string `v:"required" json:"start_date" dc:"开始日期,格式YYYY-MM-DD"`
|
||||
EndDate string `v:"required" json:"end_date" dc:"结束日期,格式YYYY-MM-DD"`
|
||||
@@ -117,7 +117,7 @@ type TrendDataPoint struct {
|
||||
|
||||
// GetTopAssetsReq 获取热门资产请求
|
||||
type GetTopAssetsReq struct {
|
||||
g.Meta `path:"/statistics/top-assets" method:"get" tags:"订单统计" summary:"获取热门资产" dc:"获取指定时间范围内的热门资产排行"`
|
||||
g.Meta `path:"/getTopAssets" method:"get" tags:"订单统计" summary:"获取热门资产" dc:"获取指定时间范围内的热门资产排行"`
|
||||
TenantID int64 `v:"required" json:"tenant_id" dc:"租户ID"`
|
||||
StartDate string `v:"required" json:"start_date" dc:"开始日期,格式YYYY-MM-DD"`
|
||||
EndDate string `v:"required" json:"end_date" dc:"结束日期,格式YYYY-MM-DD"`
|
||||
|
||||
Reference in New Issue
Block a user