123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /**
- * 企业类型
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/11/25
- * Time: 11:51
- */
- namespace Jindouyun\Controller\Common;
- use Exception;
- use Mall\Framework\Core\ErrorCode;
- use Mall\Framework\Factory;
- use JinDouYun\Controller\BaseController;
- use JinDouYun\Model\Enterprise\MEnterpriseCategory;
- class EnterpriseCategory extends BaseController
- {
- private $objMEnterpriseCategory;
- public function __construct($isCheckAcl = false, $isMustLogin = false, $checkToken = false)
- {
- parent::__construct($isCheckAcl, $isMustLogin, $checkToken);
- $this->objMEnterpriseCategory = new MEnterpriseCategory();
- }
- /**
- * 获取所有企业类型
- */
- public function getAllEnterpriseCategory()
- {
- $result = $this->objMEnterpriseCategory->getAllEnterpriseCategory();
- if ($result->isSuccess()) {
- parent::sendOutput($result->getData());
- } else {
- parent::sendOutput($result->getData(), $result->getErrorCode());
- }
- }
- }
|