小程序叫号相关
This commit is contained in:
parent
baabf01e51
commit
6adef2ddff
|
|
@ -39,7 +39,7 @@ public class UCallTableController {
|
|||
* @param state 状态 -1已取消 0排队中 1叫号中 2已入座 3 已过号
|
||||
* @return 分页数据
|
||||
*/
|
||||
// @GetMapping("queue")
|
||||
@GetMapping("queue")
|
||||
public CzgResult<Page<CallQueue>> getQueue(@RequestParam String openId, Long callTableId, Integer state) {
|
||||
return CzgResult.success(callTableService.getQueue(StpKit.USER.getShopId(), openId, callTableId, state));
|
||||
}
|
||||
|
|
@ -61,11 +61,15 @@ public class UCallTableController {
|
|||
* @param queueId 队列id
|
||||
* @return 状态
|
||||
*/
|
||||
@GetMapping("status")
|
||||
@GetMapping("/queue/detail")
|
||||
public CzgResult<?> getStatus(@RequestParam String openId, @RequestParam(required = false) Long queueId) {
|
||||
return CzgResult.success(callTableService.getStatus(StpKit.USER.getShopId(), openId, queueId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 消息订阅
|
||||
* @return 是否成功
|
||||
*/
|
||||
@PostMapping("subMsg")
|
||||
public CzgResult<Boolean> subMsg(
|
||||
@Validated @RequestBody CallSubMsgDTO subMsgDTO
|
||||
|
|
|
|||
Loading…
Reference in New Issue