package com.ruoyi.goods.controller.concole;
|
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.goods.service.live.IXiaoeLiveAppointmentService;
|
import com.ruoyi.goods.utils.XiaoeUtils;
|
import lombok.RequiredArgsConstructor;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* @author mitao
|
* @date 2025/1/10
|
*/
|
@RestController
|
@RequestMapping("/live")
|
@RequiredArgsConstructor
|
public class LiveController {
|
private final XiaoeUtils xiaoeUtils;
|
private final IXiaoeLiveAppointmentService xiaoeLiveAppointmentService;
|
|
/**
|
* 推送微信小程序订阅消息
|
* @param appointmentId
|
* @return
|
*/
|
@GetMapping("/push/{appointmentId}")
|
public R<?> push(@PathVariable("appointmentId") Long appointmentId) {
|
xiaoeLiveAppointmentService.push(appointmentId);
|
return R.ok();
|
}
|
}
|