package cn.meowrain.aioj.backend.auth.clients;

import cn.meowrain.aioj.backend.auth.dto.resp.UserAuthRespDTO;
import cn.meowrain.aioj.backend.framework.core.web.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "aioj-user-service", path = "/api/v1/user")
public interface UserClient {

	@GetMapping("/inner/get-by-username")
	Result<UserAuthRespDTO> getUserByUserName(@RequestParam("userAccount") String userAccount);

	@GetMapping("/inner/get-by-userid")
	Result<UserAuthRespDTO> getUserById(@RequestParam("userId") Long userId);

}
