|
|
@@ -11,6 +11,7 @@ import com.cyksj.common.annotation.Log;
|
|
|
import com.cyksj.common.constant.Constant;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.common.util.Jsons;
|
|
|
+import com.cyksj.dto.RedisKey;
|
|
|
import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.BusinessType;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
@@ -218,4 +219,17 @@ public class SysConfigController {
|
|
|
cpsUserAdRecordMapper.delete(null);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取客服下标
|
|
|
+ */
|
|
|
+ @GetMapping("/get/service/index")
|
|
|
+ public Result<Long> getCorpFollowIndex() {
|
|
|
+ String key = RedisKey.SERVICE_INDEX_KEY;
|
|
|
+ Long index = redisService.incr(key, 1l);
|
|
|
+ if (index == 10) {
|
|
|
+ redisService.set(key, 0);
|
|
|
+ }
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(index - 1);
|
|
|
+ }
|
|
|
}
|