83 lines
1.9 KiB
Go
83 lines
1.9 KiB
Go
package consts
|
||
|
||
// 内容通用状态
|
||
const (
|
||
StatusEnabled = 1
|
||
StatusDisabled = 0
|
||
)
|
||
|
||
// 节点类型
|
||
const (
|
||
NodeDecision = 1
|
||
NodeFinal = 2
|
||
)
|
||
|
||
// 终局评级
|
||
const (
|
||
ResultNone = 0 // 非终局
|
||
ResultFail = 1 // 失败终局
|
||
ResultGood = 2 // 良好终局
|
||
ResultBest = 3 // 最佳终局
|
||
)
|
||
|
||
// 互动形态(scene_node.interaction_type)
|
||
const (
|
||
InteractionOption = 1 // 选项选择
|
||
InteractionProp = 2 // 道具选择
|
||
InteractionOrder = 3 // 步骤排序
|
||
InteractionAction = 4 // 动作过关(config 配子模式:jump/climb/dodge/run)
|
||
InteractionDrag = 5 // 拖拽放置
|
||
InteractionCatch = 6 // 接取收集
|
||
InteractionFind = 7 // 找线索
|
||
InteractionConnect = 8 // 连线配对
|
||
)
|
||
|
||
// 徽章条件类型(badge.cond_type)
|
||
const (
|
||
BadgeCollect = 1 // 集卡数
|
||
BadgeSignIn = 2 // 连续签到
|
||
BadgeClear = 3 // 通关数
|
||
BadgePoints = 4 // 积分
|
||
BadgePerfect = 5 // 完美关卡数
|
||
BadgeReview = 6 // 复习完成数
|
||
)
|
||
|
||
// 积分流水原因(point_log.reason_type)
|
||
const (
|
||
ReasonLevel = 1 // 闯关结算
|
||
ReasonSignIn = 2 // 每日签到
|
||
ReasonRedeem = 3 // 兑换扣减
|
||
ReasonAdmin = 4 // 管理调整
|
||
ReasonReview = 5 // 章末温故
|
||
ReasonSummary = 6 // 智慧总结
|
||
ReasonTask = 7 // 生活任务
|
||
)
|
||
|
||
// 兑换状态(redemption.status)
|
||
const (
|
||
RedeemPending = 1 // 待领取(虚拟)
|
||
RedeemWaiting = 2 // 待发货(实物)
|
||
RedeemShipped = 3 // 已发货
|
||
RedeemCanceled = 4 // 已取消
|
||
RedeemReceived = 5 // 已领取(家长确认)
|
||
)
|
||
|
||
// 生活任务状态(life_task_log.status)
|
||
const (
|
||
TaskIssued = 1 // 已下发
|
||
TaskConfirming = 2 // 待家长确认
|
||
TaskConfirmed = 3 // 已确认
|
||
)
|
||
|
||
// 年龄段档位(child.age_group / level.age_group)
|
||
const (
|
||
AgeGroup4_6 = "4-6"
|
||
AgeGroup6_8 = "6-8"
|
||
)
|
||
|
||
// 角色(token 鉴权 role)
|
||
const (
|
||
RoleParent = "parent"
|
||
RoleAdmin = "admin"
|
||
)
|