1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
| <?php
|
| namespace app\models;
|
| use Yii;
| use app\models\ModelActiveRecord;
|
| /**
| * This is the model class for table "{{%city_service}}".
| *
| * @property int $id
| * @property int $mall_id
| * @property string $name 配送名称
| * @property string $data
| * @property string $platform 所属平台
| * @property string $service_type
| * @property int $distribution_corporation 配送公司 1.顺丰|2.闪送|3.美团配送|4.达达
| * @property string $shop_no 门店编号
| * @property string $created_at
| * @property int $is_delete
| */
| class CityService extends ModelActiveRecord
| {
| /**
| * {@inheritdoc}
| */
| public static function tableName()
| {
| return '{{%city_service}}';
| }
|
| /**
| * {@inheritdoc}
| */
| public function rules()
| {
| return [
| [['mall_id', 'name', 'distribution_corporation', 'platform', 'service_type'], 'required'],
| [['id', 'mall_id', 'distribution_corporation', 'is_delete'], 'integer'],
| [['created_at'], 'safe'],
| [['name', 'shop_no', 'platform', 'service_type'], 'string', 'max' => 255],
| [['data'], 'string'],
| [['id'], 'unique'],
| ];
| }
|
| /**
| * {@inheritdoc}
| */
| public function attributeLabels()
| {
| return [
| 'id' => 'ID',
| 'mall_id' => 'Mall ID',
| 'platform' => '所属平台',
| 'name' => '配送名称',
| 'distribution_corporation' => '配送公司 1.顺丰|2.闪送|3.美团配送|4.达达',
| 'shop_no' => '门店编号',
| 'created_at' => 'Created At',
| 'is_delete' => 'Is Delete',
| ];
| }
| }
|
|