|
|
@@ -30,6 +30,9 @@ class CreateHbForm extends BaseForm
|
|
|
/** @var string 备注 */
|
|
|
public $remark;
|
|
|
|
|
|
+ /** @var string 生效时间 */
|
|
|
+ public $effectiveDate;
|
|
|
+
|
|
|
/**
|
|
|
* {@inheritdoc}
|
|
|
*/
|
|
|
@@ -51,7 +54,7 @@ class CreateHbForm extends BaseForm
|
|
|
[['userId', 'customId'], 'integer', 'min' => 1, 'tooSmall' => '{attribute}参数错误'],
|
|
|
[['days'], 'integer', 'min' => 0, 'max' => 3650, 'tooSmall' => '{attribute}必须大于等于0', 'tooBig' => '{attribute}过大'],
|
|
|
[['count'], 'integer', 'min' => 1, 'max' => 1000, 'tooSmall' => '{attribute}必须大于等于1', 'tooBig' => '{attribute}过大'],
|
|
|
- [['remark'], 'string'],
|
|
|
+ [['remark', 'effectiveDate'], 'string'],
|
|
|
[['remark'], 'filter', 'filter' => 'trim'],
|
|
|
];
|
|
|
}
|
|
|
@@ -69,6 +72,7 @@ class CreateHbForm extends BaseForm
|
|
|
'minConsume' => '最低消费',
|
|
|
'days' => '有效时长',
|
|
|
'count' => '红包个数',
|
|
|
+ 'effectiveDate' => '生效时间',
|
|
|
'remark' => '备注信息',
|
|
|
];
|
|
|
}
|