package com.zhongshu.card.client.service.feign;

import com.zhongshu.card.client.model.org.UserCountModel;
import com.github.microservice.net.ResultContent;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "fullcardserver/userInfo")
public interface UserFeignService {

    @Operation(summary = "得到用户详情", description = "得到用户详情")
    @RequestMapping(value = "manager/getUserDetailByUserId", method = RequestMethod.GET)
    ResultContent<UserCountModel> getUserDetailByUserId(
            @Parameter(name = "userId", description = "用户userId")
            @RequestParam("userId") String userId);

}
