dengbiao 1 주 전
부모
커밋
3dd4ff29b4
2개의 변경된 파일78개의 추가작업 그리고 0개의 파일을 삭제
  1. +52
    -0
      enum/sys_cfg.go
  2. +26
    -0
      rule/egg_energy/enum/platform_revenue_data.go

+ 52
- 0
enum/sys_cfg.go 파일 보기

@@ -1 +1,53 @@
package enum

// AliyunOss 阿里云对象存储枚举类
type AliyunOss int32

const (
AliyunOssEndpoint = 1
AliyunOssBucketName = 2
AliyunOssBucketScheme = 3
AliyunOssAccessKeyID = 4
AliyunOssAccessKeySecret = 5
AliyunOssDomain = 6
)

func (gt AliyunOss) String() string {
switch gt {
case AliyunOssEndpoint:
return "oss_endpoint"
case AliyunOssBucketName:
return "oss_bucket_name"
case AliyunOssBucketScheme:
return "oss_bucket_scheme"
case AliyunOssAccessKeyID:
return "oss_access_key_id"
case AliyunOssAccessKeySecret:
return "oss_access_key_secret"
case AliyunOssDomain:
return "oss_domain"

default:
return "未知"
}
}

// VideoReward 视频激励设置
type VideoReward int32

const (
VideoRewardUnitPrice = 1
VideoRewardECMP = 2
)

func (gt VideoReward) String() string {
switch gt {
case VideoRewardUnitPrice:
return "video_reward_unit_price"
case VideoRewardECMP:
return "video_reward_ecmp"

default:
return "未知"
}
}

+ 26
- 0
rule/egg_energy/enum/platform_revenue_data.go 파일 보기

@@ -0,0 +1,26 @@
package enum

// PlatformRevenueDataKind 平台营收-其他广告-种类
type PlatformRevenueDataKind int

const (
AppOpenAds PlatformRevenueDataKind = iota + 1
BannerAds
InFeedAds
InterstitialAds
)

func (kind PlatformRevenueDataKind) String() string {
switch kind {
case AppOpenAds:
return "开屏广告"
case BannerAds:
return "banner 广告"
case InFeedAds:
return "信息流广告"
case InterstitialAds:
return "插屏广告"
default:
return "未知状态"
}
}

불러오는 중...
취소
저장