|
@@ -145,4 +145,35 @@ public class CustomerServiceBatchSendingController extends BaseController {
|
|
|
|
|
|
return HttpResponseResult.succeed(customerServiceBatchSendingService.removeById(id));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "更新消息状态", notes = "客服群发- 传入id")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "id", value = "主键Id", dataType = "long"),
|
|
|
+ @ApiImplicitParam(name = "sendStatus", value = "发送状态", dataType = "String"),
|
|
|
+ })
|
|
|
+ @PostMapping("/status/{id}")
|
|
|
+ public HttpResponseResult<Boolean> status(@PathVariable("id") Long id, EImSendStatus sendStatus) {
|
|
|
+
|
|
|
+ if (Objects.isNull(sendStatus)) {
|
|
|
+ throw new BizException("发送状态不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ // 更新群发消息状态
|
|
|
+ customerServiceBatchSendingService.status(id, sendStatus);
|
|
|
+
|
|
|
+ return HttpResponseResult.succeed(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "立即发送", notes = "客服群发- 传入id")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "id", value = "主键Id", dataType = "long"),
|
|
|
+ })
|
|
|
+ @PostMapping("/send/{id}")
|
|
|
+ public HttpResponseResult<Boolean> send(@PathVariable("id") Long id) {
|
|
|
+
|
|
|
+ // 更新群发消息状态
|
|
|
+ //customerServiceBatchSendingService.status(id, sendStatus);
|
|
|
+
|
|
|
+ return HttpResponseResult.succeed(true);
|
|
|
+ }
|
|
|
}
|