70 lines
1.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/***********************************************************
* @Description : 用户接口
* @author : 梁山广(Laing Shan Guang)
* @date : 2019-05-17 08:02
* @email : liangshanguang2@gmail.com
***********************************************************/
package lsgwr.exam.service;
import lsgwr.exam.dto.RegisterDTO;
import lsgwr.exam.entity.User;
import lsgwr.exam.qo.LoginQo;
import lsgwr.exam.vo.UserInfoVo;
import lsgwr.exam.vo.UserVo;
public interface UserService {
/**
* 注册
*
*
*
* @param registerDTO 注册参数
*
*
*
* @return 注册成功后的用户信息
*
*
*/
User register(RegisterDTO registerDTO);
/**
* 登录接口登录成功返回token
*
*
*
* @param loginQo 登录参数
*
*
* @return 成功返回token失败返回null
*
*
*/
String login(LoginQo loginQo);
/**
* 根据用户id获取用户信息
*
*
*
*
* @return 用户实体
*
*
*/
UserVo getUserInfo(String userId);
/**
* 获取用户详细信息(主要是权限相关的)
*
*
* @param userId 用户的id
*
*
* @return 用户信息组装的实体
*
*
*/
UserInfoVo getInfo(String userId);
}