新增管理员的注册、登录、更改密码接口

This commit is contained in:
freeebird
2018-10-13 19:37:31 +08:00
parent a626863732
commit 132506deef
7 changed files with 167 additions and 32 deletions

View File

@@ -1,17 +1,21 @@
package cn.mafangui.hotel.mapper;
import cn.mafangui.hotel.entity.Admin;
import jdk.internal.dynalink.linker.LinkerServices;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
public interface AdminMapper {
int deleteByPrimaryKey(Integer adminId);
int insert(Admin record);
int insertSelective(Admin record);
Admin selectByPrimaryKey(Integer adminId);
int updateByPrimaryKeySelective(Admin record);
int updateByPrimaryKey(Admin record);
Admin selectByUserName(String userName);
Admin selectByUserNameAndPassword(Admin admin);
int updateByUserNameSelective(Admin record);
List<Admin> findAll();
}