30 lines
758 B
Java
30 lines
758 B
Java
package com.rymcu.vertical.service;
|
|
|
|
import com.rymcu.vertical.core.service.Service;
|
|
import com.rymcu.vertical.dto.UserDTO;
|
|
import com.rymcu.vertical.entity.User;
|
|
import org.apache.ibatis.exceptions.TooManyResultsException;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
* Created by CodeGenerator on 2018/05/29.
|
|
*/
|
|
public interface UserService extends Service<User> {
|
|
|
|
User findByAccount(String account) throws TooManyResultsException;
|
|
|
|
Map register(String email, String password, String code);
|
|
|
|
Map login(String account, String password);
|
|
|
|
UserDTO findUserDTOByNickname(String nickname);
|
|
|
|
Map forgetPassword(String code, String password);
|
|
|
|
Map updateUserRole(Integer idUser, Integer idRole);
|
|
|
|
Map updateStatus(Integer idUser, String status);
|
|
}
|