1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace app\api\controller;
- use app\common\constant\CommonConstant;
- use app\common\constant\EvectionConstant;
- use app\common\service\ApproveService;
- use hg\apidoc\annotation as Apidoc;
- use think\Db;
- use think\Exception;
- /**
- * @Apidoc\Title("公用")
- * @Apidoc\Group("api")
- * @Apidoc\Sort("0")
- */
- class Common extends Base
- {
- public function initialize()
- {
- parent::initialize();
- }
- /**
- * 模块列表
- *
- * @Apidoc\Method("POST")
- */
- public function get_module_list()
- {
- $this->success('模块列表', get_one_two_array(CommonConstant::get_module_list(), 'id', 'name'));
- }
- /**
- * 出差类型列表
- *
- * @Apidoc\Method("POST")
- */
- public function get_evection_list()
- {
- $this->success('出差类型列表', get_one_two_array(EvectionConstant::get_type_list(), 'id', 'name'));
- }
- }
|