package cast

import "fonchain-fiee/api/cast"

const (
	WorkStatusPending          = 1 // 待提交
	WorkStatusReviewing        = 2 // 审核中
	WorkStatusReviewFailed     = 3 // 审核失败
	WorkStatusArtistConfirming = 4 // 待艺人确认
	WorkStatusArtistRejected   = 5 // 艺人驳回
	WorkStatusPublishSuccess   = 6 // 发布成功
	WorkStatusPublishFailed    = 7 // 发布失败
)

const (
	AutoConfirmQueueKey      = "auto_confirm:queue"
	AutoConfirmLockKey       = "auto_confirm:lock:%s"
	WorkPublishQueueKey      = "work:publish:queue"
	ScheduledPublishQueueKey = "scheduled:publish:queue" // 定时发布队列

	AutoConfirmAnalysisQueueKey = "auto_confirm:analysis:queue"
	AutoConfirmAnalysisLockKey  = "auto_confirm:analysis:lock:%s"

	AutoConfirmReportQueueKey = "auto_confirm:report:queue"
	AutoConfirmReportLockKey  = "auto_confirm:report:lock:%s"
	// AyrshareMetricsCollectorLockKey Ayrshare 指标采集任务锁
	AyrshareMetricsCollectorLockKey = "ayrshare:metrics:collector:lock"
)

var WorkCategoryMM = map[int]string{
	1: "图文",
	2: "视频",
}
var PublishSourceMM = map[int]string{
	1: "手动发布",
	2: "定时任务",
	3: "手动发布",
}

var PublishStatusMM = map[int]string{
	1: "进行中",
	2: "发布成功",
	3: "发布失败",
	4: "发布异常",
}

var WorkCostTypeMM = map[int]string{
	1: "套餐",
	2: "增值",
}

var PlatformPublishStatusMM = map[cast.PublishStatusENUM]string{
	cast.PublishStatusENUM_PublishMediaStatus_ING:       "正常",
	cast.PublishStatusENUM_PublishMediaStatus_DONE:      "正常",
	cast.PublishStatusENUM_PublishMediaStatus_NO:        "异常",
	cast.PublishStatusENUM_PublishMediaStatus_FAIL:      "异常",
	cast.PublishStatusENUM_PublishMediaStatus_EXCEPTION: "异常",
}

var WorkStatusMM = map[int]string{
	1: "草稿",
	2: "审核中",
	3: "审核失败",
	4: "待艺人确认",
	5: "艺人驳回",
	6: "发布成功",
	7: "发布失败",
	8: "未知",
	9: "验证确认",
}
var ConfirmTypeMM = map[int]string{
	1: "艺人确认",
	2: "系统确认",
}

type DMPost struct {
	ID        string `json:"id"`
	Title     string `json:"title"`
	Url       string `json:"url"`
	Published bool   `json:"published"`
	Error     interface{}
}
