feat: config

This commit is contained in:
2025-01-17 16:16:07 +08:00
parent 17c8276322
commit 140df31a71
2 changed files with 16 additions and 2 deletions

View File

@@ -21,18 +21,30 @@ use RedisException;
])]
class ConfigController extends AbstractController
{
/**
* 获取配置模块
* @return array
*/
#[RequestMapping(path: "module", methods: "GET")]
public function getConfigModule()
{
return (new ConfigService)->getConfigModule();
}
/**
* 获取配置数据
* @return array
*/
#[RequestMapping(path: "form", methods: "GET")]
public function getConfigForm()
{
return (new ConfigService)->getConfigForm();
}
/**
* 修改配置
* @return array
*/
#[RequestMapping(path: "update", methods: "POST")]
public function updateConfig()
{