用户在线心跳

This commit is contained in:
2025-12-16 10:47:43 +08:00
parent 2172536ad6
commit 3172d37788
10 changed files with 175 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ import com.honeycombis.honeycom.auth.endpoint.service.HoneycomCustomerService;
import com.honeycombis.honeycom.common.core.constant.SecurityConstants;
import com.honeycombis.honeycom.common.core.util.R;
import com.honeycombis.honeycom.common.core.util.SpringContextHolder;
import com.honeycombis.honeycom.common.log.annotation.SysLog;
import com.honeycombis.honeycom.common.security.annotation.Inner;
import com.honeycombis.honeycom.common.security.dto.ObtainTokenDTO;
import com.honeycombis.honeycom.common.security.service.HoneyComCidAuthService;
@@ -93,6 +94,7 @@ public class HoneycomCustomerController {
*/
@Inner(value = false)
@PostMapping("/v1/logout")
@SysLog("退出登录")
public R<Boolean> logout(@RequestHeader(value = HttpHeaders.AUTHORIZATION, required = false) String authHeader) {
if (StrUtil.isBlank(authHeader)) {
return R.ok();