| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace hd\models\lakala;
- use hd\models\BaseForm;
- /**
- * 拉卡拉选项查询表单模型
- */
- class OptionForm extends BaseForm
- {
- public $type;
- public $parentCode;
- public $keyword;
- public function rules()
- {
- return [
- ['type', 'required', 'message' => '请填写选项类型'],
- ['type', 'in', 'range' => ['region', 'bank-region', 'bank'], 'message' => '选项类型错误'],
- [['parentCode', 'keyword'], 'default', 'value' => ''],
- [['parentCode', 'keyword'], 'string', 'max' => 100],
- ];
- }
- public function attributeLabels()
- {
- return [
- 'type' => '选项类型',
- 'parentCode' => '父级编码',
- 'keyword' => '关键字',
- ];
- }
- }
|