forest/src/main/java/com/rymcu/vertical/service/UserService.java

25 lines
593 B
Java
Raw Normal View History

2019-11-16 09:58:40 +08:00
package com.rymcu.vertical.service;
import com.rymcu.vertical.core.service.Service;
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);
UserDTO findUserDTOByNickname(String nickname);
2019-11-16 09:58:40 +08:00
}