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")); } }