2023-10-18 09:01:50 +00:00
|
|
|
|
package com.yzdx.AiInterviewer.service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
|
import com.yzdx.AiInterviewer.comment.R;
|
|
|
|
|
import com.yzdx.AiInterviewer.entity.User;
|
|
|
|
|
|
|
|
|
|
public interface UserService extends IService<User> {
|
|
|
|
|
|
|
|
|
|
/** 管理员登录业务
|
2023-10-23 12:55:51 +00:00
|
|
|
|
* @param phone 输入的账号
|
|
|
|
|
* @param encoding 输入的公司编码
|
|
|
|
|
* @param password 输入的密码
|
2023-10-18 09:01:50 +00:00
|
|
|
|
* @return boolean,ture登陆成功,false:登陆失败
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
R adminLogin(String phone, String encoding, String password);
|
2023-10-19 13:40:26 +00:00
|
|
|
|
|
2023-10-23 12:55:51 +00:00
|
|
|
|
/**
|
|
|
|
|
* 根据用户id查询用户信息
|
|
|
|
|
* @param userid 前端穿过来的用户id
|
|
|
|
|
* @return 根据id查询到的user对象
|
|
|
|
|
* */
|
2023-10-19 13:40:26 +00:00
|
|
|
|
User getUserById(Integer userid);
|
2023-10-23 12:55:51 +00:00
|
|
|
|
/**
|
|
|
|
|
* 管理员登出
|
|
|
|
|
* @param token 用户登录时返回的token
|
|
|
|
|
* @return 1成功,0失败
|
|
|
|
|
*
|
|
|
|
|
* */
|
|
|
|
|
Integer adminLogout(String token);
|
2023-10-18 09:01:50 +00:00
|
|
|
|
}
|
2023-10-19 13:40:26 +00:00
|
|
|
|
|