| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace hd\models\lakala;
- use hd\models\BaseForm;
- /**
- * 阿里云 OCR 识别表单模型
- */
- class AliyunOcrForm extends BaseForm
- {
- public $id;
- public $imgType;
- public $imageUrl;
- public function rules()
- {
- return [
- [['id', 'imgType', 'imageUrl'], 'required', 'message' => '请填写{attribute}'],
- ['id', 'integer', 'min' => 1, 'message' => '申请ID格式错误', 'tooSmall' => '申请ID格式错误'],
- ['imgType', 'string', 'max' => 64],
- ['imageUrl', 'string', 'max' => 1024],
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => '申请ID',
- 'imgType' => '图片类型',
- 'imageUrl' => '图片地址',
- ];
- }
- }
|