first version of aida_back
This commit is contained in:
76
src/main/java/com/ai/da/service/AccountService.java
Normal file
76
src/main/java/com/ai/da/service/AccountService.java
Normal file
@@ -0,0 +1,76 @@
|
||||
package com.ai.da.service;
|
||||
|
||||
import com.ai.da.mapper.entity.Account;
|
||||
import com.ai.da.model.dto.*;
|
||||
import com.ai.da.model.vo.AccountLoginVO;
|
||||
import com.ai.da.model.vo.AccountPreLoginVO;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.validation.Valid;
|
||||
|
||||
/**
|
||||
* 服务类
|
||||
*
|
||||
* @author easy-generator
|
||||
* @since 2022-08-11
|
||||
*/
|
||||
public interface AccountService extends IService<Account> {
|
||||
|
||||
/**
|
||||
* 账户预先登入
|
||||
* @param accountDTO
|
||||
* @return
|
||||
*/
|
||||
AccountPreLoginVO preLogin(AccountPreLoginDTO accountDTO);
|
||||
/**
|
||||
* 账户登入
|
||||
* @param accountLoginDTO
|
||||
* @return
|
||||
*/
|
||||
AccountLoginVO login(AccountLoginDTO accountLoginDTO, HttpServletRequest request);
|
||||
/**
|
||||
* 绑定邮箱
|
||||
* @param accountBindEmailDTO
|
||||
* @return
|
||||
*/
|
||||
Boolean bindEmail(AccountBindEmailDTO accountBindEmailDTO);
|
||||
|
||||
/**
|
||||
* 忘记密码
|
||||
* @param accountDTO
|
||||
* @return
|
||||
*/
|
||||
Boolean forgetPwd(AccountRegisterDTO accountDTO);
|
||||
/**
|
||||
* 发送邮件
|
||||
* @param emailSendDTO
|
||||
* @return
|
||||
*/
|
||||
Boolean sendEmail(EmailSendDTO emailSendDTO);
|
||||
/**
|
||||
* 登出
|
||||
* @param accountLogoutDTO
|
||||
* @return
|
||||
*/
|
||||
Boolean logout(AccountLogoutDTO accountLogoutDTO);
|
||||
/**
|
||||
* 判断是否登出 Boolean为登入
|
||||
* @param accountLogoutDTO
|
||||
* @return
|
||||
*/
|
||||
Boolean isLogin(AccountLogoutDTO accountLogoutDTO);
|
||||
/**
|
||||
* 添加用户信息
|
||||
* @param accountAddDTO
|
||||
* @return
|
||||
*/
|
||||
Boolean addUser(AccountAddDTO accountAddDTO);
|
||||
/**
|
||||
* 编辑用户信息
|
||||
* @param accountEditDTO
|
||||
* @return
|
||||
*/
|
||||
Boolean editUser(AccountEditDTO accountEditDTO) ;
|
||||
}
|
||||
Reference in New Issue
Block a user