初始化项目
This commit is contained in:
@@ -4,7 +4,7 @@ import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// 报表生成请求
|
||||
type ReportGenerateReq struct {
|
||||
g.Meta `path:"/report/generate" method:"post"`
|
||||
g.Meta `path:"/generateReport" method:"post"`
|
||||
TenantID int64 `json:"tenant_id" v:"required"`
|
||||
AppID int64 `json:"app_id"`
|
||||
ReportType string `json:"report_type" v:"required|in:daily,monthly,quarterly,yearly"`
|
||||
@@ -21,7 +21,7 @@ type ReportGenerateResp struct {
|
||||
|
||||
// 报表列表请求
|
||||
type ReportListReq struct {
|
||||
g.Meta `path:"/report/list" method:"get"`
|
||||
g.Meta `path:"/getReportList" method:"get"`
|
||||
TenantID int64 `json:"tenant_id"`
|
||||
AppID int64 `json:"app_id"`
|
||||
ReportType string `json:"report_type"`
|
||||
@@ -41,7 +41,7 @@ type ReportListResp struct {
|
||||
|
||||
// 报表详情请求
|
||||
type ReportDetailReq struct {
|
||||
g.Meta `path:"/report/detail" method:"get"`
|
||||
g.Meta `path:"/getReportDetail" method:"get"`
|
||||
ReportID int64 `json:"report_id" v:"required"`
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ type ReportDTO struct {
|
||||
|
||||
// 统计查询请求
|
||||
type StatQueryReq struct {
|
||||
g.Meta `path:"/stat/query" method:"get"`
|
||||
g.Meta `path:"/queryStats" method:"get"`
|
||||
TenantID int64 `json:"tenant_id" v:"required"`
|
||||
AppID int64 `json:"app_id"`
|
||||
AdType string `json:"ad_type"`
|
||||
@@ -115,7 +115,7 @@ type GrowthRate struct {
|
||||
|
||||
// 实时统计请求
|
||||
type RealTimeStatReq struct {
|
||||
g.Meta `path:"/stat/realtime" method:"get"`
|
||||
g.Meta `path:"/realTimeStats" method:"get"`
|
||||
TenantID int64 `json:"tenant_id" v:"required"`
|
||||
AppID int64 `json:"app_id"`
|
||||
Hours int `json:"hours" d:"24"` // 过去多少小时的统计
|
||||
|
||||
Reference in New Issue
Block a user