gomod引用

This commit is contained in:
2025-12-12 16:20:48 +08:00
parent ddf02adaa6
commit 7f1f096fa5
4 changed files with 47 additions and 48 deletions

View File

@@ -8,7 +8,7 @@ import (
type CreateApplicationReq struct {
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#应用名称不能为空"`
Code string `json:"code" v:"required#应用编码不能为空"`
Description string `json:"description"`
@@ -59,7 +59,7 @@ type GetApplicationReq struct {
// GetApplicationRes 获取应用响应
type GetApplicationRes struct {
ID int64 `json:"id"`
TenantID int64 `json:"tenantId"`
TenantID interface{} `json:"tenantId"`
Name string `json:"name"`
Code string `json:"code"`
Description string `json:"description"`

View File

@@ -31,7 +31,7 @@ type GenerateCIDRes struct {
CID string `json:"cid"` // 唯一CID
Ads []*AdInfo `json:"ads"` // 广告列表
TotalAds int `json:"total_ads"` // 总广告数
TenantId int64 `json:"tenant_id"` // 租户ID
TenantId interface{} `json:"tenant_id"` // 租户ID
TenantName string `json:"tenant_name"` // 租户名称
GeneratedAt string `json:"generated_at"` // 生成时间
}
@@ -39,7 +39,7 @@ type GenerateCIDRes struct {
// CIDRequestHistory CID请求历史记录
type CIDRequestHistory struct {
Id int64 `json:"id"` // 记录ID
TenantId int64 `json:"tenant_id"` // 租户ID
TenantId interface{} `json:"tenant_id"` // 租户ID
UserId int64 `json:"user_id"` // 用户ID
RequestType string `json:"request_type"` // 请求类型
Status string `json:"status"` // 状态

View File

@@ -52,7 +52,7 @@ type ExportReportReq struct {
// 报表详情响应
type ReportDetailResp struct {
ID int64 `json:"id"`
TenantID int64 `json:"tenant_id"`
TenantID interface{} `json:"tenant_id"`
AppID int64 `json:"app_id"`
ReportType string `json:"report_type"`
ReportDate string `json:"report_date"`
@@ -63,7 +63,7 @@ type ReportDetailResp struct {
// 报表DTO
type ReportDTO struct {
ID int64 `json:"id"`
TenantID int64 `json:"tenant_id"`
TenantID interface{} `json:"tenant_id"`
AppID int64 `json:"app_id"`
ReportType string `json:"report_type"`
ReportDate string `json:"report_date"`

View File

@@ -13,7 +13,6 @@ type CidRequest struct {
// 请求信息
RequestID string `bson:"requestId" json:"requestId"` // 请求唯一ID
SessionID string `bson:"sessionId" json:"sessionId"` // 会话ID
UserID string `bson:"userId" json:"userId"` // 用户ID
IPAddress string `bson:"ipAddress" json:"ipAddress"` // IP地址
UserAgent string `bson:"userAgent" json:"userAgent"` // 用户代理
Referer string `bson:"referer" json:"referer"` // 来源页面