123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <?php
- namespace app\api\controller;
- use app\common\constant\ApplyConstant;
- use app\common\constant\CommonConstant;
- use app\common\constant\ContractConstant;
- use app\common\constant\EvectionConstant;
- use app\common\constant\LeaveConstant;
- use app\common\constant\MaintainConstant;
- use app\common\constant\OfferConstant;
- use hg\apidoc\annotation as Apidoc;
- /**
- * @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_degree_list()
- {
- $this->success('缓急程度列表', get_one_two_array(OfferConstant::get_degree_list(), 'id', 'name'));
- }
- /**
- * 采购类型列表
- *
- * @Apidoc\Method("POST")
- */
- public function get_apply_type_list()
- {
- $this->success('采购类型列表', get_one_two_array(ApplyConstant::get_type_list(), 'id', 'name'));
- }
- /**
- * 采购支付方式列表
- *
- * @Apidoc\Method("POST")
- */
- public function get_apply_pay_type_list()
- {
- $this->success('采购支付方式列表', get_one_two_array(ApplyConstant::get_pay_type_list(), 'id', 'name'));
- }
- /**
- * 呈批类型列表
- *
- * @Apidoc\Method("POST")
- */
- public function get_offer_type_list()
- {
- $this->success('呈批类型列表', get_one_two_array(OfferConstant::get_type_list(), 'id', 'name'));
- }
- /**
- * 出差类型列表
- *
- * @Apidoc\Method("POST")
- */
- public function get_evection_type_list()
- {
- $this->success('出差类型列表', get_one_two_array(EvectionConstant::get_type_list(), 'id', 'name'));
- }
- /**
- * 请假类型列表
- *
- * @Apidoc\Method("POST")
- */
- public function get_leave_type_list()
- {
- $this->success('请假类型列表', get_one_two_array(LeaveConstant::get_type_list(), 'id', 'name'));
- }
- /**
- * 维修类型列表
- *
- * @Apidoc\Method("POST")
- */
- public function get_maintain_type_list()
- {
- $this->success('维修类型列表', get_one_two_array(MaintainConstant::get_type_list(), 'id', 'name'));
- }
- /**
- * 合同类型列表
- *
- * @Apidoc\Method("POST")
- */
- public function get_contract_type_list()
- {
- $this->success('合同类型列表', get_one_two_array(ContractConstant::get_type_list(), 'id', 'name'));
- }
- }
|