package com.xiaopeng.api.feignClient.maintenance; import com.xiaopeng.api.factory.maintenance.XpClockInClientFallbackFactory; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; /** * 打卡服务 Feign 客户端 * * @author mitao * @date 2026-02-14 */ @FeignClient( contextId = "XpClockInClient", value = ServiceNameConstantsEnum.XP_MAINTENANCE_SERVICE, fallbackFactory = XpClockInClientFallbackFactory.class ) public interface XpClockInClient { /** * 检查用户是否上班中 * @param appUserId 用户ID * @return true=上班中, false=未上班或已下班 */ @GetMapping("/logan/inner/clock-in/checkWorkStatus") R checkWorkStatus(@RequestParam("appUserId") Long appUserId); }