commit | author | age
|
2207d6
|
1 |
<?php |
W |
2 |
|
|
3 |
namespace app\models; |
|
4 |
|
|
5 |
use Yii; |
|
6 |
|
|
7 |
/** |
|
8 |
* This is the model class for table "{{%mail_setting}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property int $mall_id |
|
12 |
* @property int $mch_id |
|
13 |
* @property string $send_mail 发件人邮箱 |
|
14 |
* @property string $send_pwd 授权码 |
|
15 |
* @property string $send_name 发件人名称 |
|
16 |
* @property string $receive_mail 收件人邮箱 多个用英文逗号隔开 |
|
17 |
* @property int $status 是否开启邮件通知 0--关闭 1--开启 |
|
18 |
* @property int $is_delete |
|
19 |
* @property string $created_at |
|
20 |
* @property string $updated_at |
|
21 |
* @property string $deleted_at |
|
22 |
* @property string $show_type |
|
23 |
*/ |
|
24 |
class MailSetting extends ModelActiveRecord |
|
25 |
{ |
|
26 |
/** |
|
27 |
* {@inheritdoc} |
|
28 |
*/ |
|
29 |
public static function tableName() |
|
30 |
{ |
|
31 |
return '{{%mail_setting}}'; |
|
32 |
} |
|
33 |
|
|
34 |
/** |
|
35 |
* {@inheritdoc} |
|
36 |
*/ |
|
37 |
public function rules() |
|
38 |
{ |
|
39 |
return [ |
|
40 |
[['mall_id', 'status', 'is_delete', 'mch_id'], 'integer'], |
|
41 |
[['send_mail', 'receive_mail', 'show_type'], 'string'], |
|
42 |
[['created_at', 'updated_at', 'deleted_at'], 'required'], |
|
43 |
[['created_at', 'updated_at', 'deleted_at'], 'safe'], |
|
44 |
[['send_pwd', 'send_name'], 'string', 'max' => 255], |
|
45 |
]; |
|
46 |
} |
|
47 |
|
|
48 |
/** |
|
49 |
* {@inheritdoc} |
|
50 |
*/ |
|
51 |
public function attributeLabels() |
|
52 |
{ |
|
53 |
return [ |
|
54 |
'id' => 'ID', |
|
55 |
'mall_id' => 'Mall ID', |
|
56 |
'mch_id' => 'Mch ID', |
|
57 |
'send_mail' => 'Send Mail', |
|
58 |
'send_pwd' => 'Send Pwd', |
|
59 |
'send_name' => 'Send Name', |
|
60 |
'receive_mail' => 'Receive Mail', |
|
61 |
'status' => 'Status', |
|
62 |
'is_delete' => 'Is Delete', |
|
63 |
'created_at' => 'Created At', |
|
64 |
'updated_at' => 'Updated At', |
|
65 |
'deleted_at' => 'Deleted At', |
|
66 |
'show_type' => 'attr 规格 goods_no 货号 form_data 下单表单', |
|
67 |
]; |
|
68 |
} |
|
69 |
} |