Category.php 528 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: NODELOG
  5. * Date: 2017/3/8
  6. * Time: 下午11:21
  7. */
  8. namespace api\modules\v1\models;
  9. use yii\helpers\ArrayHelper;
  10. class Category extends \common\models\Category
  11. {
  12. /**
  13. * 常规增加字段
  14. * @return array|false
  15. */
  16. public function fields()
  17. {
  18. return ArrayHelper::merge(parent::fields(), [
  19. ]);
  20. }
  21. /**
  22. * 扩展字段
  23. * @return array|false
  24. */
  25. public function extraFields()
  26. {
  27. return [
  28. ];
  29. }
  30. }