constant

package
v0.0.0-...-0ee1bbb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigLevelMember = 1
	ConfigLevelPlus   = 2
)
View Source
const (
	ConfigMidjourneyListenModelBot     = 0
	ConfigMidjourneyListenModelUserWss = 1
)
View Source
const (
	ConfigMidjourneyCreateModelFast  = "fast"
	ConfigMidjourneyCreateModelRelax = "relax"
	ConfigMidjourneyCreateModelTurbo = "turbo"
)
View Source
const (
	ActionTypeGenerate = 1 // 生图
	ActionTypeUpscale  = 2 // Upscale
	ActionTypeVariate  = 3 // Variate
	ActionTypeReRoll   = 4 // ReRoll
	ActionTypeVary     = 5 // Vary
	ActionTypeZoomOut  = 6 // ZoomOut
	ActionTypePan      = 7 // Pan
)
View Source
const (
	DashboardStatisticIntervalDaily   = "daily"
	DashboardStatisticIntervalWeekly  = "weekly"
	DashboardStatisticIntervalMonthly = "monthly"
)
View Source
const (
	PayStatusInit    = 0
	PayStatusPaid    = 1
	PayStatusFailed  = 2
	PayStatusExpired = 3
)
View Source
const (
	QueueMidjourneyStatusInit       = 0
	QueueMidjourneyStatusProceeding = 1
	QueueMidjourneyStatusEnded      = 2
	QueueMidjourneyStatusError      = 3
)
View Source
const (
	QueueMidjourneyEventInsertQueue         = "insertQueue"
	QueueMidjourneyEventInteractionCreate   = "interactionCreate"
	QueueMidjourneyEventInteractionSuccess  = "interactionSuccess"
	QueueMidjourneyEventWriteMessageContent = "writeMessageContent"
	QueueMidjourneyEventEnded               = "ended"
	QueueMidjourneyEventProgress            = "progress"
	QueueMidjourneyEventContinue            = "continue"
	QueueMidjourneyEventVerifyHuman         = "verifyHuman"
	QueueMidjourneyEventError               = "error"
)
View Source
const (
	ShopGoodsBuyTypeLevel      = 1 // 购买级别
	ShopGoodsBuyTypeBalance    = 2 // 购买balance
	ShopGoodsBuyTypeGpt3       = 3 // 购买gpt3
	ShopGoodsBuyTypeGpt4       = 4 // 购买gpt4
	ShopGoodsBuyTypeMidjourney = 5 // 购买midjourney
)
View Source
const (
	ShopOrderStatusInit     = 0 // 订单创建
	ShopOrderStatusPaid     = 1 // 已支付
	ShopOrderStatusShipped  = 2 // 已发货
	ShopOrderStatusReceived = 3 // 已收货
	ShopOrderStatusFinish   = 4 // 已完成
	ShopOrderStatusCancel   = 9 // 已取消
)
View Source
const (
	ShopGoodsActiveExpireTypeNone  = 0 // 激活类型无
	ShopGoodsActiveExpireTypeDay   = 1 // 激活类型天
	ShopGoodsActiveExpireTypeMonth = 2 // 激活类型月
	ShopGoodsActiveExpireTypeYear  = 3 // 激活类型年
)
View Source
const (
	TopicTypeOpenaiGPT3 = 1 // openai3.5
	TopicTypeOpenaiGPT4 = 2 // openai4
	TopicTypeMidjourney = 3 // midjourney
)
View Source
const (
	WalletTypeBalance    = "balance"    // WalletTypeBalance 余额
	WalletTypeGpt3       = "gpt3"       // WalletTypeGpt3 GPT3提问次数
	WalletTypeGpt4       = "gpt4"       // WalletTypeGpt4 GPT4提问次数
	WalletTypeMidjourney = "midjourney" // WalletTypeMidjourney Midjourney提问次数
)

钱包类型

View Source
const (
	WalletChangeTargetTypeAddUser                = "addUser"        // WalletChangeTargetTypeAddUser 会员新增
	WalletChangeTargetTypeShopOrderGoods         = "shopOrderGoods" // WalletChangeTargetTypeShopOrderGoods 商商品购买
	WalletChangeTargetTypeConversationGpt3       = "gpt3"           // WalletChangeTargetTypeConversationGpt3 对话类型
	WalletChangeTargetTypeConversationGpt4       = "gpt4"           // WalletChangeTargetTypeConversationGpt4 对话类型
	WalletChangeTargetTypeConversationMidjourney = "midjourney"     // WalletChangeTargetTypeConversationMidjourney Midjourney类型
	WalletChangeTargetTypeBackend                = "backend"        // WalletChangeTargetTypeBackend 后台处理
	WalletChangeTargetTypeLevelMonth             = "levelMonth"     // WalletChangeTargetTypeLevelMonth 每月会员级别
)
View Source
const (
	WSMsgResponseTypeError  = "response_error"
	WSMsgResponseTypeIgnore = "response_ignore"

	WSMsgResponseTypeMidjourneyInsertQueue = "response_mj_insert_queue"
	WSMsgResponseTypeMidjourneyCreate      = "response_mj_create"
	WSMsgResponseTypeMidjourneyEnd         = "response_mj_end"
	WSMsgResponseTypeMidjourneyError       = "response_mj_error"
	WSMsgResponseTypeMidjourneyProgress    = "response_mj_progress"
)
View Source
const (
	PayConfigVmq = 1 // 支付方式 微免签
)

支付方式

View Source
const (
	PayFlowTypeShopOrder = 1
)
View Source
const (
	WSMsgRequestTypeExample = "request_example"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL