package com.njzscloud.supervisory.biz.controller;

import com.njzscloud.common.core.utils.R;
import com.njzscloud.supervisory.biz.pojo.param.QRCodeParam;
import com.njzscloud.supervisory.biz.service.QRCodeService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 获取二维码
 *
 * @author ljw
 */
@Slf4j
@RestController
@RequestMapping("/qr")
@RequiredArgsConstructor
public class QRCodeController {

    private final QRCodeService qrCodeService;


    /**
     * 获取二维码
     */
    @GetMapping("/getCode")
    public R<?> getCode(QRCodeParam codeParam) {
        return R.success(qrCodeService.getCode(codeParam));
    }

}
