package com.wok.supportbot.controller;
import com.wok.supportbot.entity.SystemConfig;
import com.wok.supportbot.service.SystemConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;
/**
* 系统配置管理接口
*
* 管理后台编辑系统级配置项(SDK 保密声明等),
* 管理接口需要 admin 角色。
*/
@Slf4j
@RestController
@RequestMapping("/system-config")
public class SystemConfigController {
@Autowired
private SystemConfigService systemConfigService;
/**
* 查询所有系统配置列表
*/
@GetMapping("/list")
@PreAuthorize("hasRole('admin')")
public ResponseEntity