ZQN
2024-08-14 f6a1bf1d9b19dd8b3750034048f3876d086db1f1
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
package com.project.admin.controller.tool;
 
import com.project.common.core.domain.AjaxResult;
import com.project.common.utils.file.ImageUtils;
import com.project.system.service.ISysConfigService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
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;
 
/**
 * 功能描述:
 *
 * @author ZQN
 * @version 1.0 2024年07月17日
 */
 
@Api(value = "二维码", tags = {"二维码"})
@RequiredArgsConstructor(onConstructor_ = @Autowired)
@RestController
@RequestMapping("/tool/qrcode")
public class QrcodeController
{
 
    private final ISysConfigService configService;
 
 
    @PostMapping("/createQrcode")
    public AjaxResult createQrcode()
    {
        String content = configService.selectConfigByKey("sys.trans.qrcode.url");
        return AjaxResult.success(ImageUtils.createQrcode("abssdf1asdfasdfasdfasdsa","沈丘县华顺农业建设工程有限公司沈丘分公司","2"));
    }
 
}