You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.5 KiB
41 lines
1.5 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
use think\facade\Route;
|
|
|
|
/**
|
|
* 绩效配置管理路由
|
|
*/
|
|
Route::group('performance_config', function () {
|
|
// 获取所有配置类型
|
|
Route::get('types', 'performance.PerformanceConfig/getConfigTypes');
|
|
|
|
// 获取配置结构定义
|
|
Route::get('structure', 'performance.PerformanceConfig/getConfigStructure');
|
|
|
|
// 获取配置数据
|
|
Route::get('data', 'performance.PerformanceConfig/getConfigData');
|
|
|
|
// 保存配置数据
|
|
Route::post('save', 'performance.PerformanceConfig/saveConfigData');
|
|
|
|
// 重置为默认配置
|
|
Route::post('reset', 'performance.PerformanceConfig/resetToDefault');
|
|
|
|
// 导出配置
|
|
Route::get('export', 'performance.PerformanceConfig/exportConfig');
|
|
|
|
// 导入配置
|
|
Route::post('import', 'performance.PerformanceConfig/importConfig');
|
|
|
|
// 清除缓存
|
|
Route::delete('cache', 'performance.PerformanceConfig/clearCache');
|
|
});
|