81 lines
1.7 KiB
PHP
81 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace app\admin\controller;
|
|
|
|
use app\common\config\EnumCfg;
|
|
|
|
/**
|
|
* EnumCfg 读取配置信息的控制器类。
|
|
*
|
|
* This class provides methods for retrieving configuration information related to enumerations.
|
|
*
|
|
* @package app\admin\controller
|
|
*/
|
|
class EnumManager extends Base
|
|
{
|
|
/**
|
|
* 获取报告方向列表
|
|
*
|
|
* This method retrieves a list of report directions.
|
|
*
|
|
* @return array An array containing the report directions.
|
|
*
|
|
* @example
|
|
* ```php
|
|
* $reportDirList = EnumCfg::getReportDirList();
|
|
* ```
|
|
|
|
*/
|
|
public function getReportDirList()
|
|
{
|
|
$res = ( EnumCfg::$reportDir);
|
|
return $this->buildsuccess($res);
|
|
}
|
|
|
|
/**
|
|
* 获取报告类型列表
|
|
*
|
|
* This method retrieves a list of report types.
|
|
*
|
|
* @return array An array containing the report types.
|
|
*
|
|
* @example
|
|
* ```php
|
|
* $reportTypeList = EnumCfg::getReportTypeList();
|
|
* ```
|
|
|
|
*/
|
|
public function getReportObjTypeList()
|
|
{
|
|
$res = ( EnumCfg::reportObjType);
|
|
return $this->buildsuccess($res);
|
|
}
|
|
|
|
/**
|
|
* 获取客户类型列表
|
|
*
|
|
* This method retrieves a list of customer types.
|
|
*
|
|
* @return array An array containing the customer types.
|
|
*
|
|
* $customTypeList = EnumCfg::getCustomTypeList();
|
|
* ```
|
|
*/
|
|
public function getCustomTypeList()
|
|
{
|
|
$res = ( EnumCfg::customType);
|
|
return $this->buildsuccess($res);
|
|
}
|
|
|
|
/**
|
|
* 获取报告类别列表
|
|
*
|
|
*/
|
|
public function getReportClassList()
|
|
{
|
|
$res = ( EnumCfg::reportClass);
|
|
return $this->buildsuccess($res);
|
|
}
|
|
|
|
|
|
} |