xuhy
1 天以前 bc692804cbb38d53199ccc7e3fd9ea3bcfc0ad3b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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));
    }
 
}