bug
jiangping
2023-11-08 d82554bc50065657fd01e29b5aa3b6daf70d0d0a
server/platform/src/main/java/com/doumee/api/common/TestController.java
@@ -5,8 +5,11 @@
import com.doumee.biz.system.SystemDictDataBiz;
import com.doumee.core.annotation.trace.Trace;
import com.doumee.core.constants.Constants;
import com.doumee.core.model.ApiResponse;
import com.doumee.core.utils.DateUtil;
import com.doumee.core.utils.aliyun.ALiYunUtil;
import com.doumee.core.wx.WxMiniUtilService;
import com.doumee.dao.business.model.Locks;
import com.doumee.service.business.DeviceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
@@ -15,10 +18,7 @@
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
@@ -46,6 +46,8 @@
    @Autowired
    private WxMiniUtilService wxMiniUtilService;
    @Autowired
    private DeviceService deviceService;
@@ -59,4 +61,15 @@
        deviceService.testPush(topic,json);
    }
    @ApiOperation(value = "测试生成二维码", notes = "小程序端")
    @GetMapping("/getCode")
    public ApiResponse<Locks> generateWXMiniCode() {
        Locks locks = new Locks();
        locks.setCode(12);
        locks.setSiteId("1005");
        wxMiniUtilService.generateWXMiniCode(locks);
        return  ApiResponse.success("操作成功",locks);
    }
}