2019-11-16 09:58:40 +08:00
|
|
|
package com.rymcu.vertical.service;
|
|
|
|
|
|
|
|
import com.rymcu.vertical.core.service.Service;
|
2019-11-23 00:57:29 +08:00
|
|
|
import com.rymcu.vertical.dto.UserDTO;
|
2019-11-16 09:58:40 +08:00
|
|
|
import com.rymcu.vertical.entity.User;
|
|
|
|
import org.apache.ibatis.exceptions.TooManyResultsException;
|
|
|
|
|
2019-11-16 20:11:38 +08:00
|
|
|
import java.util.Map;
|
2019-11-16 09:58:40 +08:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by CodeGenerator on 2018/05/29.
|
|
|
|
*/
|
|
|
|
public interface UserService extends Service<User> {
|
|
|
|
|
2019-11-16 20:11:38 +08:00
|
|
|
User findByAccount(String account) throws TooManyResultsException;
|
2019-11-16 09:58:40 +08:00
|
|
|
|
2019-11-16 20:11:38 +08:00
|
|
|
Map register(String email, String password, String code);
|
2019-11-16 09:58:40 +08:00
|
|
|
|
2019-11-16 20:11:38 +08:00
|
|
|
Map login(String account, String password);
|
2019-11-23 00:57:29 +08:00
|
|
|
|
|
|
|
UserDTO findUserDTOByNickname(String nickname);
|
2019-11-24 15:50:02 +08:00
|
|
|
|
|
|
|
Map forgetPassword(String code, String password);
|
2019-12-05 17:29:39 +08:00
|
|
|
|
|
|
|
Map updateUserRole(Integer idUser, Integer idRole);
|
|
|
|
|
|
|
|
Map updateStatus(Integer idUser, String status);
|
2019-11-16 09:58:40 +08:00
|
|
|
}
|