修改修改公共beans包路径
This commit is contained in:
1
go.mod
1
go.mod
@@ -89,3 +89,4 @@ require (
|
|||||||
google.golang.org/protobuf v1.36.8 // indirect
|
google.golang.org/protobuf v1.36.8 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ package entity
|
|||||||
import (
|
import (
|
||||||
"cid/model/config"
|
"cid/model/config"
|
||||||
|
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const AdCreativeCollection = "ad_creative"
|
const AdCreativeCollection = "ad_creative"
|
||||||
|
|
||||||
// AdCreative 广告创意素材实体
|
// AdCreative 广告创意素材实体
|
||||||
type AdCreative struct {
|
type AdCreative struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
AdvertiserId string `bson:"advertiserId" json:"advertiserId"` // 广告主ID
|
AdvertiserId string `bson:"advertiserId" json:"advertiserId"` // 广告主ID
|
||||||
|
|
||||||
// 基本信息
|
// 基本信息
|
||||||
Name string `bson:"name" json:"name"` // 创意名称
|
Name string `bson:"name" json:"name"` // 创意名称
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ package entity
|
|||||||
import (
|
import (
|
||||||
"cid/model/config"
|
"cid/model/config"
|
||||||
|
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const AdPlatformCollection = "ad_platform"
|
const AdPlatformCollection = "ad_platform"
|
||||||
|
|
||||||
// AdPlatform 广告平台实体
|
// AdPlatform 广告平台实体
|
||||||
type AdPlatform struct {
|
type AdPlatform struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||||||
|
|
||||||
// 平台基本信息
|
// 平台基本信息
|
||||||
Name string `bson:"name" json:"name"` // 平台名称:小红书、抖音、快手、京东、淘宝、百度等
|
Name string `bson:"name" json:"name"` // 平台名称:小红书、抖音、快手、京东、淘宝、百度等
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ package entity
|
|||||||
import (
|
import (
|
||||||
"cid/model/config"
|
"cid/model/config"
|
||||||
|
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const AdPositionCollection = "ad_position"
|
const AdPositionCollection = "ad_position"
|
||||||
|
|
||||||
// AdPosition 广告位实体
|
// AdPosition 广告位实体
|
||||||
type AdPosition struct {
|
type AdPosition struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||||||
|
|
||||||
// 基本信息
|
// 基本信息
|
||||||
Name string `bson:"name" json:"name"` // 广告位名称
|
Name string `bson:"name" json:"name"` // 广告位名称
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ package entity
|
|||||||
import (
|
import (
|
||||||
"cid/model/config"
|
"cid/model/config"
|
||||||
|
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const AdSourceCollection = "ad_source"
|
const AdSourceCollection = "ad_source"
|
||||||
|
|
||||||
// AdSource 广告源实体
|
// AdSource 广告源实体
|
||||||
type AdSource struct {
|
type AdSource struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||||||
|
|
||||||
// 基本信息
|
// 基本信息
|
||||||
Name string `bson:"name" json:"name"` // 广告源名称
|
Name string `bson:"name" json:"name"` // 广告源名称
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
package entity
|
package entity
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const AdTypeCollection = "ad_type"
|
const AdTypeCollection = "ad_type"
|
||||||
|
|
||||||
// AdType 广告类型实体
|
// AdType 广告类型实体
|
||||||
type AdType struct {
|
type AdType struct {
|
||||||
do.MongoBaseDO `bson:",inline"`
|
beans.MongoBaseDO `bson:",inline"`
|
||||||
|
|
||||||
// 广告类型信息
|
// 广告类型信息
|
||||||
Name string `bson:"name" json:"name"` // 广告类型名称
|
Name string `bson:"name" json:"name"` // 广告类型名称
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ package entity
|
|||||||
import (
|
import (
|
||||||
"cid/model/config"
|
"cid/model/config"
|
||||||
|
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const AdvertisementCollection = "advertisement"
|
const AdvertisementCollection = "advertisement"
|
||||||
|
|
||||||
// Advertisement 广告实体
|
// Advertisement 广告实体
|
||||||
type Advertisement struct {
|
type Advertisement struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
AdvertiserId string `bson:"advertiserId" json:"advertiserId"` // 广告主ID
|
AdvertiserId string `bson:"advertiserId" json:"advertiserId"` // 广告主ID
|
||||||
|
|
||||||
// 广告基本信息
|
// 广告基本信息
|
||||||
Title string `bson:"title" json:"title"` // 广告标题
|
Title string `bson:"title" json:"title"` // 广告标题
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
package entity
|
package entity
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const AdvertiserCollection = "advertiser"
|
const AdvertiserCollection = "advertiser"
|
||||||
|
|
||||||
// Advertiser 广告主实体
|
// Advertiser 广告主实体
|
||||||
type Advertiser struct {
|
type Advertiser struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||||||
|
|
||||||
// 基本信息
|
// 基本信息
|
||||||
Name string `bson:"name" json:"name"` // 广告主名称
|
Name string `bson:"name" json:"name"` // 广告主名称
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
package entity
|
package entity
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const AppPlatformConfigCollection = "app_platform_config"
|
const AppPlatformConfigCollection = "app_platform_config"
|
||||||
|
|
||||||
// AppPlatformConfig 应用平台配置实体
|
// AppPlatformConfig 应用平台配置实体
|
||||||
type AppPlatformConfig struct {
|
type AppPlatformConfig struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||||||
|
|
||||||
// 关联信息
|
// 关联信息
|
||||||
AppID string `bson:"appId" json:"appId"` // 应用ID
|
AppID string `bson:"appId" json:"appId"` // 应用ID
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
package entity
|
package entity
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ApplicationCollection = "application"
|
const ApplicationCollection = "application"
|
||||||
|
|
||||||
// Application 应用实体
|
// Application 应用实体
|
||||||
type Application struct {
|
type Application struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||||||
|
|
||||||
// 应用基本信息
|
// 应用基本信息
|
||||||
Name string `bson:"name" json:"name"` // 应用名称
|
Name string `bson:"name" json:"name"` // 应用名称
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
package entity
|
package entity
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const CidRequestCollection = "cid_request"
|
const CidRequestCollection = "cid_request"
|
||||||
|
|
||||||
// CidRequest CID请求实体(合并后的统一版本)
|
// CidRequest CID请求实体(合并后的统一版本)
|
||||||
type CidRequest struct {
|
type CidRequest struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, IsDeleted
|
beans.MongoBaseDO `bson:",inline" json:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, IsDeleted
|
||||||
|
|
||||||
// 请求基础信息
|
// 请求基础信息
|
||||||
RequestID string `bson:"requestId" json:"requestId"` // 请求唯一ID
|
RequestID string `bson:"requestId" json:"requestId"` // 请求唯一ID
|
||||||
|
|||||||
@@ -3,15 +3,15 @@ package entity
|
|||||||
import (
|
import (
|
||||||
"cid/model/config"
|
"cid/model/config"
|
||||||
|
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const PlatformDeliveryRuleCollection = "platform_delivery_rule"
|
const PlatformDeliveryRuleCollection = "platform_delivery_rule"
|
||||||
|
|
||||||
// PlatformDeliveryRule 平台投放规则实体
|
// PlatformDeliveryRule 平台投放规则实体
|
||||||
type PlatformDeliveryRule struct {
|
type PlatformDeliveryRule struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||||||
|
|
||||||
// 关联信息
|
// 关联信息
|
||||||
AppID string `bson:"appId" json:"appId"` // 应用ID
|
AppID string `bson:"appId" json:"appId"` // 应用ID
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
package entity
|
package entity
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitee.com/red-future---jilin-g/common/do"
|
"gitee.com/red-future---jilin-g/common/beans"
|
||||||
)
|
)
|
||||||
|
|
||||||
const StrategyCollection = "strategy"
|
const StrategyCollection = "strategy"
|
||||||
|
|
||||||
// Strategy 匹配策略表
|
// Strategy 匹配策略表
|
||||||
type Strategy struct {
|
type Strategy struct {
|
||||||
do.MongoBaseDO `bson:",inline" json:",inline"`
|
beans.MongoBaseDO `bson:",inline" json:",inline"`
|
||||||
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
Status string `bson:"status" json:"status"` // 状态:active、inactive、maintenance等
|
||||||
|
|
||||||
// 策略基本信息
|
// 策略基本信息
|
||||||
Name string `bson:"name" json:"name"` // 策略名称
|
Name string `bson:"name" json:"name"` // 策略名称
|
||||||
|
|||||||
Reference in New Issue
Block a user