OcrResultForm.php 742 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace ghs\models\lakala;
  3. use ghs\models\BaseForm;
  4. /**
  5. * 拉卡拉 OCR 结果查询表单模型
  6. */
  7. class OcrResultForm extends BaseForm
  8. {
  9. public $id;
  10. public $batchNo;
  11. public $imgType;
  12. public function rules()
  13. {
  14. return [
  15. [['id', 'batchNo', 'imgType'], 'required', 'message' => '请填写{attribute}'],
  16. ['id', 'integer', 'min' => 1, 'message' => '申请ID格式错误', 'tooSmall' => '申请ID格式错误'],
  17. [['batchNo', 'imgType'], 'string', 'max' => 64],
  18. ];
  19. }
  20. public function attributeLabels()
  21. {
  22. return [
  23. 'id' => '申请ID',
  24. 'batchNo' => '批次号',
  25. 'imgType' => '图片类型',
  26. ];
  27. }
  28. }