service/api/consts/option.go

130 lines
3.3 KiB
Go

package consts
const (
ImageAuditTaskUpdate_Pass = 0
ImageAuditTaskUpdate_Rollback = 1
ImageAuditTaskUpdate_Success = 2
ImageAuditTaskUpdate_Reject = 3
)
const (
TextAuditTaskUpdate_Pass = 0
TextAuditTaskUpdate_Rollback = 1
TextAuditTaskUpdate_Success = 2
TextAuditTaskUpdate_Reject = 3
)
const (
VideoModerationTaskUpdate_Pass = 0
VideoModerationTaskUpdate_Rollback = 1
VideoModerationTaskUpdate_Success = 2
VideoModerationTaskUpdate_Reject = 3
)
const (
AccountPunishment_BlockFromCreatingMoment = 0 // 禁止发贴
AccountPunishment_BlockFromCreatingFreeZoneMoment = 1 // 禁止发免费空间贴
AccountPunishment_BlockFromCreatingPaidZoneMoment = 2 // 禁止发付费空间贴
AccountPunishment_BlockFromCreatingZoneMoment = 3 // 禁止发空间贴
AccountPunishment_BlockFromBeingSearched = 4 // 禁止被搜索到
AccountPunishment_BlockFromBeingDiscovered = 5 // 禁止在推荐被发现
AccountPunishment_BlockFromBeingSeenAtMoment = 6 // 禁止在广场被发现
AccountPunishment_BlockFromPaying = 7 // 禁止付款
)
var AccountPunishmentMap = map[int64]string{
AccountPunishment_BlockFromCreatingMoment: "发贴",
AccountPunishment_BlockFromCreatingFreeZoneMoment: "发免费空间贴",
AccountPunishment_BlockFromCreatingPaidZoneMoment: "发付费空间贴",
AccountPunishment_BlockFromCreatingZoneMoment: "发空间贴",
AccountPunishment_BlockFromBeingSearched: "从搜索中被发现",
AccountPunishment_BlockFromBeingDiscovered: "在推荐页面被发现",
AccountPunishment_BlockFromBeingSeenAtMoment: "在广场页面被发现",
AccountPunishment_BlockFromPaying: "付款",
}
const (
Recomm_Down = 0
Recomm_Up = 1
Recomm_Init = 2
)
const (
MomentManuallyReview_Pass = 0
MomentManuallyReview_Reject = 1
)
const (
ZoneMomentManuallyReview_Pass = 0
ZoneMomentManuallyReview_Reject = 1
)
const (
ImageAuditManuallyReview_Pass = 0
ImageAuditManuallyReview_Reject = 1
)
const (
TextAuditManuallyReview_Pass = 0
TextAuditManuallyReview_Reject = 1
)
const (
VideoModerationManuallyReview_Pass = 0
VideoModerationManuallyReview_Reject = 1
)
const (
MediaTypeImg = 1 // 图片
MediaTypeVideo = 2 // 视频
)
var MTypeDescMap = map[int64]string{
MediaTypeImg: "图片",
MediaTypeVideo: "视频",
}
const (
ZoneMomentHead_Head = 1
ZoneMomentHead_UnHead = 0
)
const (
ZoneMomentPriorityInZone_Increment = 2000000000
ZoneMomentPriorityInZone_Decrement = -2000000000
)
const (
AppConfigReflect_Current = 1 // 符合当前版本的version做映射
AppConfigReflect_LessThan = 2 // 小于当前版本的version做映射
)
const (
StreamerAcct_MatchPhraseLen = 3
)
const (
BankCard = 10 //银行卡
Alipay = 20 //支付宝
Weixin = 30 //微信
MerchantWeixin = 40 //商户方微信
CPAccount = 51 //中金支付电子账户
)
const (
StreamerAuthApproval_OneOffVersion = 0
StreamerAuthApproval_SeparateVersion = 1
)
const ZoneAdmissionPrice_NoZone = int64(-999999)
const (
Notification_ObjType_AllStreamer = 0
Notification_ObjType_AllUser = 1
Notification_ObjType_AllStreamerAndUser = 2
Notification_ObjType_Customized = 3
)
const (
Notification_PushTime_Instant = 0 // 即时推送
)