package com.lovenav.controller;

import com.alibaba.fastjson.JSON;
import com.lovenav.entity.CollectIconList;
import com.lovenav.service.QRCService;
import com.lovenav.utils.QRCodeUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collection;

@RestController
@RequestMapping("/qrcode")
public class QRCodeController {
    @Autowired
    private QRCService qrcService;

    @RequestMapping(method = RequestMethod.POST, value = "/qrc_return")
    public String QRCode(@RequestBody CollectIconList collect) throws Exception {
        return qrcService.QR(collect);
    }
}