package jnpf.oauth;
|
|
import jnpf.base.ActionResult;
|
import jnpf.exception.LoginException;
|
import jnpf.model.LoginVO;
|
import jnpf.utils.FeignName;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.util.Map;
|
|
@FeignClient(name = FeignName.OAUTH_SERVER_NAME)
|
public interface AuthApi {
|
|
/**
|
* 只能使用登录临时用户{userId, tenantId}
|
* @param parameters
|
* @return
|
* @throws LoginException
|
*/
|
@RequestMapping(value = "/Login", method = {RequestMethod.POST})
|
ActionResult<LoginVO> login(@RequestParam Map<String, String> parameters) throws LoginException;
|
|
@PostMapping(value = {"/KickoutToken" })
|
void kickoutByToken(@RequestParam(value = "tokens", required = false) String[] tokens, @RequestParam(name = "userId", required = false) String userId, @RequestParam(name = "tenantId", required = false) String tenantId);
|
|
}
|