| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | |
| | | |
| | | @Autowired |
| | | private WxMiniUtilService wxMiniUtilService; |
| | | @Autowired |
| | | private DeviceService deviceService; |
| | | |
| | | |
| | |
| | | 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); |
| | | } |
| | | |
| | | } |