PreviewForm.php 663 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace addons\Wechat\merchant\forms;
  3. use Yii;
  4. use yii\base\Model;
  5. /**
  6. * Class PreviewForm
  7. * @package merchant\modules\wechat\models
  8. * @author jianyan74 <751393839@qq.com>
  9. */
  10. class PreviewForm extends Model
  11. {
  12. /**
  13. * @var int
  14. */
  15. public $type = 1;
  16. /**
  17. * @var
  18. */
  19. public $content;
  20. /**
  21. * @inheritdoc
  22. */
  23. public function rules()
  24. {
  25. return [
  26. [['content'], 'required'],
  27. [['type'], 'integer'],
  28. ];
  29. }
  30. public function attributeLabels()
  31. {
  32. return [
  33. 'type' => '类别',
  34. 'content' => '微信号/openid',
  35. ];
  36. }
  37. }
粤ICP备19079148号