FastMovieAI 二开基线 v1.0 (完整源码)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\user\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class CertificateType extends Enum
|
||||
{
|
||||
const ID_CARD = [
|
||||
'label' => '身份证',
|
||||
'value' => 'idcard',
|
||||
];
|
||||
const PASSPORT = [
|
||||
'label' => '护照',
|
||||
'value' => 'passport',
|
||||
];
|
||||
const HK_MC_PASSPORT = [
|
||||
'label' => '港澳通行证',
|
||||
'value' => 'hk_mc_passport',
|
||||
];
|
||||
const TW_PASSPORT = [
|
||||
'label' => '台湾通行证',
|
||||
'value' => 'tw_passport',
|
||||
];
|
||||
const TW_RETURN_PASSPORT = [
|
||||
'label' => '台胞证',
|
||||
'value' => 'tw_return_passport',
|
||||
];
|
||||
const HK_MC_RETURN_PASSPORT = [
|
||||
'label' => '返乡证',
|
||||
'value' => 'hk_mc_return_passport',
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\user\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class MoneyAction extends Enum
|
||||
{
|
||||
const INCREASE = [
|
||||
'label' => '增加',
|
||||
'value' => 'increase',
|
||||
'props'=>[
|
||||
'type'=>'danger'
|
||||
]
|
||||
];
|
||||
const DECREASE = [
|
||||
'label' => '减少',
|
||||
'value' => 'decrease',
|
||||
'props'=>[
|
||||
'type'=>'success'
|
||||
]
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\user\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class PropsType extends Enum
|
||||
{
|
||||
const NORMAL = [
|
||||
'label' => '无',
|
||||
'value' => 'normal',
|
||||
'props'=>[
|
||||
'type'=>'default'
|
||||
]
|
||||
];
|
||||
const PRIMARY = [
|
||||
'label' => '主要',
|
||||
'value' => 'primary',
|
||||
'props'=>[
|
||||
'type'=>'primary'
|
||||
]
|
||||
];
|
||||
const SUCCESS = [
|
||||
'label' => '成功',
|
||||
'value' => 'success',
|
||||
'props'=>[
|
||||
'type'=>'success'
|
||||
]
|
||||
];
|
||||
const INFO = [
|
||||
'label' => '信息',
|
||||
'value' => 'info',
|
||||
'props'=>[
|
||||
'type'=>'info'
|
||||
]
|
||||
];
|
||||
const WARNING = [
|
||||
'label' => '警告',
|
||||
'value' => 'warning',
|
||||
'props'=>[
|
||||
'type'=>'warning'
|
||||
]
|
||||
];
|
||||
const DANGER = [
|
||||
'label' => '危险',
|
||||
'value' => 'danger',
|
||||
'props'=>[
|
||||
'type'=>'danger'
|
||||
]
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\user\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class TotpApp extends Enum
|
||||
{
|
||||
const ONE_PASSWORD = [
|
||||
'label' => '1Password',
|
||||
'value' => '1password'
|
||||
];
|
||||
const GOOGLE = [
|
||||
'label' => 'Google Authenticator',
|
||||
'value' => 'google'
|
||||
];
|
||||
const MICROSOFT = [
|
||||
'label' => 'Microsoft Authenticator',
|
||||
'value' => 'microsoft'
|
||||
];
|
||||
const AUTHY = [
|
||||
'label' => 'Authy',
|
||||
'value' => 'authy'
|
||||
];
|
||||
const DUO = [
|
||||
'label' => 'Duo Mobile',
|
||||
'value' => 'duo'
|
||||
];
|
||||
const LASTPASS = [
|
||||
'label' => 'LastPass Authenticator',
|
||||
'value' => 'lastpass'
|
||||
];
|
||||
const BITWARDEN = [
|
||||
'label' => 'Bitwarden Authenticator',
|
||||
'value' => 'bitwarden'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\user\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class UserPermission extends Enum
|
||||
{
|
||||
const MOBILE = [
|
||||
'label' => '已绑定手机号',
|
||||
'value' => 'mobile'
|
||||
];
|
||||
const EMAIL = [
|
||||
'label' => '已绑定邮箱',
|
||||
'value' => 'email'
|
||||
];
|
||||
const TWOFA = [
|
||||
'label' => '已开启两步验证',
|
||||
'value' => 'twofa'
|
||||
];
|
||||
const WECHAT = [
|
||||
'label' => '已绑定微信',
|
||||
'value' => 'wechat'
|
||||
];
|
||||
const USERNAME = [
|
||||
'label' => '已设置用户名',
|
||||
'value' => 'username'
|
||||
];
|
||||
const PASSWORD = [
|
||||
'label' => '已设置密码',
|
||||
'value' => 'password'
|
||||
];
|
||||
const REALNAME = [
|
||||
'label' => '已实名认证',
|
||||
'value' => 'realname'
|
||||
];
|
||||
const BUY = [
|
||||
'label' => '可以购买',
|
||||
'value' => 'buy'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\user\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class VcodeScene extends Enum
|
||||
{
|
||||
const LOGIN = [
|
||||
'label' => '登录',
|
||||
'value' => 'login',
|
||||
'variable' => ['code' => '验证码', 'expire' => '过期时间']
|
||||
];
|
||||
const SIGNUP = [
|
||||
'label' => '注册',
|
||||
'value' => 'signup',
|
||||
'variable' => ['code' => '验证码', 'expire' => '过期时间']
|
||||
];
|
||||
const BIND_MOBILE = [
|
||||
'label' => '绑定手机号',
|
||||
'value' => 'bind_mobile',
|
||||
'variable' => ['username' => '用户昵称', 'code' => '验证码', 'expire' => '过期时间']
|
||||
];
|
||||
const BIND_EMAIL = [
|
||||
'label' => '绑定邮箱',
|
||||
'value' => 'bind_email',
|
||||
'variable' => ['username' => '用户昵称', 'code' => '验证码', 'expire' => '过期时间']
|
||||
];
|
||||
const SET_PASSWORD = [
|
||||
'label' => '设置密码',
|
||||
'value' => 'set_password',
|
||||
'variable' => ['username' => '用户昵称', 'code' => '验证码', 'expire' => '过期时间','password' => '密码']
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user