gomod引用
This commit is contained in:
@@ -8,17 +8,17 @@ import (
|
|||||||
type CreateApplicationReq struct {
|
type CreateApplicationReq struct {
|
||||||
g.Meta `path:"/createApplication" method:"post" summary:"创建应用"`
|
g.Meta `path:"/createApplication" method:"post" summary:"创建应用"`
|
||||||
|
|
||||||
TenantID int64 `json:"tenantId" v:"required#租户ID不能为空"`
|
TenantID interface{} `json:"tenantId" v:"required#租户ID不能为空"`
|
||||||
Name string `json:"name" v:"required#应用名称不能为空"`
|
Name string `json:"name" v:"required#应用名称不能为空"`
|
||||||
Code string `json:"code" v:"required#应用编码不能为空"`
|
Code string `json:"code" v:"required#应用编码不能为空"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Platform string `json:"platform" v:"required#平台不能为空|in:web,h5,android,ios#平台类型错误"`
|
Platform string `json:"platform" v:"required#平台不能为空|in:web,h5,android,ios#平台类型错误"`
|
||||||
PackageName string `json:"packageName"`
|
PackageName string `json:"packageName"`
|
||||||
AppStoreURL string `json:"appStoreUrl"`
|
AppStoreURL string `json:"appStoreUrl"`
|
||||||
Categories []string `json:"categories"`
|
Categories []string `json:"categories"`
|
||||||
Tags []string `json:"tags"`
|
Tags []string `json:"tags"`
|
||||||
AdTypes []string `json:"adTypes"`
|
AdTypes []string `json:"adTypes"`
|
||||||
CallbackURL string `json:"callbackUrl"`
|
CallbackURL string `json:"callbackUrl"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateApplicationRes 创建应用响应
|
// CreateApplicationRes 创建应用响应
|
||||||
@@ -58,22 +58,22 @@ type GetApplicationReq struct {
|
|||||||
|
|
||||||
// GetApplicationRes 获取应用响应
|
// GetApplicationRes 获取应用响应
|
||||||
type GetApplicationRes struct {
|
type GetApplicationRes struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
TenantID int64 `json:"tenantId"`
|
TenantID interface{} `json:"tenantId"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Platform string `json:"platform"`
|
Platform string `json:"platform"`
|
||||||
PackageName string `json:"packageName"`
|
PackageName string `json:"packageName"`
|
||||||
AppStoreURL string `json:"appStoreUrl"`
|
AppStoreURL string `json:"appStoreUrl"`
|
||||||
Categories []string `json:"categories"`
|
Categories []string `json:"categories"`
|
||||||
Tags []string `json:"tags"`
|
Tags []string `json:"tags"`
|
||||||
AdTypes []string `json:"adTypes"`
|
AdTypes []string `json:"adTypes"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
AppKey string `json:"appKey"`
|
AppKey string `json:"appKey"`
|
||||||
CallbackURL string `json:"callbackUrl"`
|
CallbackURL string `json:"callbackUrl"`
|
||||||
CreatedAt int64 `json:"createdAt"`
|
CreatedAt int64 `json:"createdAt"`
|
||||||
UpdatedAt int64 `json:"updatedAt"`
|
UpdatedAt int64 `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListApplicationsReq 获取应用列表请求
|
// ListApplicationsReq 获取应用列表请求
|
||||||
|
|||||||
@@ -28,23 +28,23 @@ type AdInfo struct {
|
|||||||
|
|
||||||
// GenerateCIDRes 生成CID响应
|
// GenerateCIDRes 生成CID响应
|
||||||
type GenerateCIDRes struct {
|
type GenerateCIDRes struct {
|
||||||
CID string `json:"cid"` // 唯一CID
|
CID string `json:"cid"` // 唯一CID
|
||||||
Ads []*AdInfo `json:"ads"` // 广告列表
|
Ads []*AdInfo `json:"ads"` // 广告列表
|
||||||
TotalAds int `json:"total_ads"` // 总广告数
|
TotalAds int `json:"total_ads"` // 总广告数
|
||||||
TenantId int64 `json:"tenant_id"` // 租户ID
|
TenantId interface{} `json:"tenant_id"` // 租户ID
|
||||||
TenantName string `json:"tenant_name"` // 租户名称
|
TenantName string `json:"tenant_name"` // 租户名称
|
||||||
GeneratedAt string `json:"generated_at"` // 生成时间
|
GeneratedAt string `json:"generated_at"` // 生成时间
|
||||||
}
|
}
|
||||||
|
|
||||||
// CIDRequestHistory CID请求历史记录
|
// CIDRequestHistory CID请求历史记录
|
||||||
type CIDRequestHistory struct {
|
type CIDRequestHistory struct {
|
||||||
Id int64 `json:"id"` // 记录ID
|
Id int64 `json:"id"` // 记录ID
|
||||||
TenantId int64 `json:"tenant_id"` // 租户ID
|
TenantId interface{} `json:"tenant_id"` // 租户ID
|
||||||
UserId int64 `json:"user_id"` // 用户ID
|
UserId int64 `json:"user_id"` // 用户ID
|
||||||
RequestType string `json:"request_type"` // 请求类型
|
RequestType string `json:"request_type"` // 请求类型
|
||||||
Status string `json:"status"` // 状态
|
Status string `json:"status"` // 状态
|
||||||
ProcessTime int `json:"process_time"` // 处理时间(ms)
|
ProcessTime int `json:"process_time"` // 处理时间(ms)
|
||||||
CreatedAt string `json:"created_at"` // 创建时间
|
CreatedAt string `json:"created_at"` // 创建时间
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetCIDHistoryReq 获取CID历史请求
|
// GetCIDHistoryReq 获取CID历史请求
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ type ExportReportReq struct {
|
|||||||
// 报表详情响应
|
// 报表详情响应
|
||||||
type ReportDetailResp struct {
|
type ReportDetailResp struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
TenantID int64 `json:"tenant_id"`
|
TenantID interface{} `json:"tenant_id"`
|
||||||
AppID int64 `json:"app_id"`
|
AppID int64 `json:"app_id"`
|
||||||
ReportType string `json:"report_type"`
|
ReportType string `json:"report_type"`
|
||||||
ReportDate string `json:"report_date"`
|
ReportDate string `json:"report_date"`
|
||||||
@@ -62,12 +62,12 @@ type ReportDetailResp struct {
|
|||||||
|
|
||||||
// 报表DTO
|
// 报表DTO
|
||||||
type ReportDTO struct {
|
type ReportDTO struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
TenantID int64 `json:"tenant_id"`
|
TenantID interface{} `json:"tenant_id"`
|
||||||
AppID int64 `json:"app_id"`
|
AppID int64 `json:"app_id"`
|
||||||
ReportType string `json:"report_type"`
|
ReportType string `json:"report_type"`
|
||||||
ReportDate string `json:"report_date"`
|
ReportDate string `json:"report_date"`
|
||||||
GeneratedAt string `json:"generated_at"`
|
GeneratedAt string `json:"generated_at"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// 统计查询请求
|
// 统计查询请求
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ type CidRequest struct {
|
|||||||
// 请求信息
|
// 请求信息
|
||||||
RequestID string `bson:"requestId" json:"requestId"` // 请求唯一ID
|
RequestID string `bson:"requestId" json:"requestId"` // 请求唯一ID
|
||||||
SessionID string `bson:"sessionId" json:"sessionId"` // 会话ID
|
SessionID string `bson:"sessionId" json:"sessionId"` // 会话ID
|
||||||
UserID string `bson:"userId" json:"userId"` // 用户ID
|
|
||||||
IPAddress string `bson:"ipAddress" json:"ipAddress"` // IP地址
|
IPAddress string `bson:"ipAddress" json:"ipAddress"` // IP地址
|
||||||
UserAgent string `bson:"userAgent" json:"userAgent"` // 用户代理
|
UserAgent string `bson:"userAgent" json:"userAgent"` // 用户代理
|
||||||
Referer string `bson:"referer" json:"referer"` // 来源页面
|
Referer string `bson:"referer" json:"referer"` // 来源页面
|
||||||
|
|||||||
Reference in New Issue
Block a user