package com.lantone.security.client;

import com.lantone.common.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Description: 认证服务远程调用
 * @author: rengb
 * @time: 2021/1/5 18:27
 */
@FeignClient("user-auth")
public interface AuthService {

    @PostMapping("/oauth/token")
    CommonResult getAccessToken(@RequestParam Map<String, String> parameters);

}