
package com.kxs.system.api.feign;

import com.kxs.common.core.constant.SecurityConstants;
import com.kxs.common.core.util.R;
import com.kxs.system.api.dto.UserDTO;
import com.kxs.system.api.dto.UserInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.service.annotation.GetExchange;

/**
 * @author lengleng
 * @date 2018/6/22
 */
public interface RemoteUserService {

	/**
	 * 通过用户名查询用户、角色信息
	 * @param user 用户查询对象
	 * @param from 调用标志
	 * @return R
	 */
	@GetExchange("/user/info/query")
	R<UserInfo> info(@RequestBody UserDTO user, @RequestHeader(SecurityConstants.FROM) String from);

}
