|
|
@@ -7,14 +7,15 @@ import com.goafanti.common.model.Admin;
|
|
|
import com.goafanti.common.model.AdminCallDay;
|
|
|
import com.goafanti.core.mybatis.page.Pagination;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
-import com.goafanti.customer.bo.*;
|
|
|
+import com.goafanti.customer.bo.InputCallNumber;
|
|
|
+import com.goafanti.customer.bo.InputListCallDayBo;
|
|
|
+import com.goafanti.customer.bo.InputUserCallList;
|
|
|
import com.goafanti.customer.service.UserOutboundService;
|
|
|
import com.goafanti.customer.service.impl.AdminCallDayService;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
-import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
@@ -25,6 +26,7 @@ public class UserOutboundApiController extends BaseApiController {
|
|
|
|
|
|
@Resource
|
|
|
private UserOutboundService userOutboundService;
|
|
|
+ @Resource
|
|
|
private AdminCallDayService adminCallDayService;
|
|
|
|
|
|
/**
|
|
|
@@ -114,16 +116,6 @@ public class UserOutboundApiController extends BaseApiController {
|
|
|
return new Result<>().data(this.userOutboundService.userCallList(in));
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 开启长连接
|
|
|
- */
|
|
|
- @RequestMapping("/SSeStart")
|
|
|
- public SseEmitter testSseEmitter() {
|
|
|
- // 默认30秒超时,设置为0L则永不超时
|
|
|
- SseEmitterUTF8 sseEmitter = new SseEmitterUTF8(3600_000L);
|
|
|
- SseMap.sseEmitterMap.put(TokenManager.getAdminId(), new SseResult(TokenManager.getAdminId(), System.currentTimeMillis(), sseEmitter));
|
|
|
- return sseEmitter;
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* 外呼明细
|