mitao
2025-01-10 b9679b6f96bbe8b52ee1d699033d9021d5fe870f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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();
    }
}