package com.yuchen.saas.manage.user.api.feign;


import com.yuchen.saas.manage.user.api.entity.User;
import com.yuchen.saas.manage.user.api.entity.UserInfo;
import com.yuchen.saas.manage.user.api.entity.UserInfoEntity;
import com.yuchen.saas.manage.user.api.entity.UserOauth;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(
        value = AppNameConstant.SAAS_USER,
        fallback = UserInfoClientFallback.class
)
public interface IUserInfoClient {

    String API_PREFIX = "/userInfo";
    String USER_INFO_BY_DEPT_IDS = API_PREFIX + "/user-info-by-dept-ids";


    @GetMapping(USER_INFO_BY_DEPT_IDS)
    R<Integer> userInfoCountByDeptId(@RequestParam("deptIdList") List<String> deptIdList);


    }
