| | |
| | | import com.ruoyi.system.api.service.RemoteShopService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | * @author zhibing.pu |
| | | * @Date 2025/5/8 18:13 |
| | | */ |
| | | @Slf4j |
| | | @Api(value = "商户端商户相关接口", tags = "商户端商户相关接口", description = "商户端商户相关接口") |
| | | @RestController |
| | | @RequestMapping("/mer/lotteryEvent") |
| | |
| | | lotteryEvent.setId(IdUtils.simpleUUID()); |
| | | String weiXinQrCode = remoteMemberService.getWeiXinQrCode("id=" + lotteryEvent.getId() + "&activityType=" + lotteryEvent.getActivityType(), "/pages/turntable/index"); |
| | | lotteryEvent.setWxMiniProgramQrCode(weiXinQrCode); |
| | | lotteryEvent.setCreateTime(LocalDateTime.now()); |
| | | lotteryEvent.setCreateUserId(lotteryEvent.getCreateUserId()); |
| | | } |
| | | lotteryEvent.setUpdateTime(LocalDateTime.now()); |
| | | lotteryEvent.setUpdateUserId(SecurityUtils.getUserId()); |