package com.ruoyi.web.controller.api;
|
|
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.system.model.TSecretConfig;
|
import com.ruoyi.system.service.TSecretConfigService;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* <p>
|
* 密钥 前端控制器
|
* </p>
|
*
|
* @author xiaochen
|
* @since 2025-10-13
|
*/
|
@RestController
|
@RequestMapping("")
|
public class TSecretConfigController {
|
|
private final TSecretConfigService secretConfigService;
|
|
@Autowired
|
public TSecretConfigController(TSecretConfigService secretConfigService) {
|
this.secretConfigService = secretConfigService;
|
}
|
|
@ApiOperation(value = "密钥", response = TSecretConfig.class)
|
@PostMapping(value = "/api/system/getEncryptionKey")
|
public R<TSecretConfig> pageList() {
|
return R.ok(secretConfigService.getById(12879));
|
}
|
|
}
|