瀏覽代碼

upadte

master
dengbiao 5 天之前
父節點
當前提交
9ba1ab4607
共有 3 個文件被更改,包括 43 次插入31 次删除
  1. +38
    -22
      enum/sys_cfg.go
  2. +1
    -1
      go.mod
  3. +4
    -8
      go.sum

+ 38
- 22
enum/sys_cfg.go 查看文件

@@ -1,7 +1,43 @@
package enum

// PriceSetting 价格设置枚举类
const PriceSetting = "price_setting"
type SysCfg string

const (
AppInviteType = "app_invite_type"
AppInviteLength = "app_invite_length"
)

func (gt SysCfg) String() string {
switch gt {
case AppInviteType:
return "App邀请码设置(1数字;2数字+字母)"
case AppInviteLength:
return "App邀请码长度"

default:
return "未知"
}
}

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

const (
VideoRewardUnitPrice = "video_reward_unit_price"
VideoRewardECPM = "video_reward_ecpm"
)

func (gt VideoReward) String() string {
switch gt {
case VideoRewardUnitPrice:
return "激励视频单价"
case VideoRewardECPM:
return "激励视屏ecpm值"

default:
return "未知"
}
}

// AliyunOss 阿里云对象存储枚举类
type AliyunOss int32
@@ -34,23 +70,3 @@ func (gt AliyunOss) String() string {
return "未知"
}
}

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

const (
VideoRewardUnitPrice = "video_reward_unit_price"
VideoRewardECPM = "video_reward_ecpm"
)

func (gt VideoReward) String() string {
switch gt {
case VideoRewardUnitPrice:
return "激励视频单价"
case VideoRewardECPM:
return "激励视屏ecpm值"

default:
return "未知"
}
}

+ 1
- 1
go.mod 查看文件

@@ -25,7 +25,7 @@ require (
)

require (
code.fnuoos.com/EggPlanet/egg_models.git v0.2.0
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119093836-37be936b83fc
github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/json-iterator/go v1.1.12 // indirect


+ 4
- 8
go.sum 查看文件

@@ -1,12 +1,9 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
code.fnuoos.com/EggPlanet/egg_models.git v0.0.1 h1:lvpFnimk6Ikldg+Ub27oEp0BL0Zau0Y0XJ5g6QyNvbM=
code.fnuoos.com/EggPlanet/egg_models.git v0.0.1/go.mod h1:TPnXGn1gfhH1MRT0WsmSLlKr7Z7hXG9+yPEHXu97hHY=
code.fnuoos.com/EggPlanet/egg_models.git v0.2.0/go.mod h1:TPnXGn1gfhH1MRT0WsmSLlKr7Z7hXG9+yPEHXu97hHY=
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241118081439-70519d0b030c h1:7tGw6nQTw0c9qZYqSwtLGQZI+f5ajcu5ZBAsxPPA28U=
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241118081439-70519d0b030c/go.mod h1:k31pGms+r3WXkQm11QobqWKisfcSJ0W2JtW7edGOPbo=
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119072710-bbf44c7edfcf h1:3kqG+2gsVR6vtxb5cg262G1n4M3fMPrcdOFooYCJx3c=
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119072710-bbf44c7edfcf/go.mod h1:k31pGms+r3WXkQm11QobqWKisfcSJ0W2JtW7edGOPbo=
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119093558-a3dd3d4a9dc0 h1:TFcshe1ed/2bUHuFRxrbpupVi2cRTjqbKxUHPxiABdU=
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119093558-a3dd3d4a9dc0/go.mod h1:+bDK4gfBq4LEkhh6K/A46+0urH/sgxDxnjIjlxb9HI8=
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119093836-37be936b83fc h1:ZCnxqXjf4WDPUk55yWTixpt05zLqqnxS3D6DEs2L730=
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241119093836-37be936b83fc/go.mod h1:+bDK4gfBq4LEkhh6K/A46+0urH/sgxDxnjIjlxb9HI8=
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 h1:dqvWJqlJi0WXCwTxbWPLvSOsKPjP+iEDBVgLcAl9nOE=
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5/go.mod h1:TTcCnFn/LhBGapnutpezlW+GXkLRNPMWkziOoCsXQqY=
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
@@ -117,7 +114,6 @@ github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/gomodule/redigo v1.9.2 h1:HrutZBLhSIU8abiSfW8pj8mPhOyMYjZT/wcA4/L9L9s=
github.com/gomodule/redigo v1.9.2/go.mod h1:KsU3hiK/Ay8U42qpaJk+kuNa3C+spxapWpM+ywhcgtw=
github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=


Loading…
取消
儲存