FastMovieAI 二开基线 v1.0 (完整源码)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\marketing\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class BillingCycle extends Enum
|
||||
{
|
||||
const MONTH = [
|
||||
'label' => '按月',
|
||||
'value' => 'month'
|
||||
];
|
||||
const YEAR = [
|
||||
'label' => '按年',
|
||||
'value' => 'year'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\marketing\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class CouponRule extends Enum
|
||||
{
|
||||
const FULL_PRICE = [
|
||||
'label' => '满减券',
|
||||
'value' => 'full_price'
|
||||
];
|
||||
const DISCOUNT = [
|
||||
'label' => '打折券',
|
||||
'value' => 'discount'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\marketing\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class PlanKey extends Enum
|
||||
{
|
||||
const BASIC = [
|
||||
'label' => '基础版',
|
||||
'value' => 'basic'
|
||||
];
|
||||
const PRO = [
|
||||
'label' => '专业版',
|
||||
'value' => 'pro'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\marketing\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class ReceiveType extends Enum
|
||||
{
|
||||
const REPEAT_DAY = [
|
||||
'label' => '每日可领',
|
||||
'value' => 'repeat_day',
|
||||
'props' => [
|
||||
'type' => 'primary'
|
||||
]
|
||||
];
|
||||
const REPEAT_WEEK= [
|
||||
'label' => '每周可领',
|
||||
'value' => 'repeat_week',
|
||||
'props' => [
|
||||
'type' => 'primary'
|
||||
]
|
||||
];
|
||||
const REPEAT_MONTH = [
|
||||
'label' => '每月可领',
|
||||
'value' => 'repeat_month',
|
||||
'props' => [
|
||||
'type' => 'primary'
|
||||
]
|
||||
];
|
||||
const USER_ONLY = [
|
||||
'label' => '账户唯一',
|
||||
'value' => 'user_only',
|
||||
'props' => [
|
||||
'type' => 'success'
|
||||
]
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\marketing\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class UseState extends Enum
|
||||
{
|
||||
const ON= [
|
||||
'label' => '可用',
|
||||
'value' => 0,
|
||||
'props' => [
|
||||
'type' => 'success'
|
||||
]
|
||||
];
|
||||
const USED = [
|
||||
'label' => '已使用',
|
||||
'value' => 10,
|
||||
'props' => [
|
||||
'type' => 'info'
|
||||
]
|
||||
];
|
||||
const EXPIRE= [
|
||||
'label' => '过期',
|
||||
'value' => 99,
|
||||
'props' => [
|
||||
'type' => 'danger'
|
||||
]
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\marketing\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class UseType extends Enum
|
||||
{
|
||||
const UNLIMITED= [
|
||||
'label' => '无限制',
|
||||
'value' => 'unlimited',
|
||||
'props' => [
|
||||
'type' => 'danger'
|
||||
]
|
||||
];
|
||||
const FIRST_ORDER = [
|
||||
'label' => '首单可用',
|
||||
'value' => 'first_order',
|
||||
'props' => [
|
||||
'type' => 'success'
|
||||
]
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user