ÎļþÃû´Ó src/main/java/com/lf/server/mapper/sys/UsersMapper.java ÐÞ¸Ä |
| | |
| | | package com.lf.server.mapper.sys; |
| | | |
| | | import com.lf.server.entity.sys.UsersEntity; |
| | | import com.lf.server.entity.sys.UserEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | */ |
| | | @Mapper |
| | | @Repository |
| | | public interface UsersMapper { |
| | | public interface UserMapper { |
| | | |
| | | /** |
| | | * æ ¹æ®è¡¨åæ¥è¯¢è®°å½æ° |
| | |
| | | * @param offset åç§»é |
| | | * @return å表 |
| | | */ |
| | | public List<UsersEntity> selectByPage(String uname, Integer limit, Integer offset); |
| | | public List<UserEntity> selectByPage(String uname, Integer limit, Integer offset); |
| | | |
| | | /** |
| | | * æ ¹æ®tokenææææ¥è¯¢ |
| | |
| | | * @param token |
| | | * @return |
| | | */ |
| | | public UsersEntity selectByToken(String token); |
| | | public UserEntity selectByToken(String token); |
| | | |
| | | /** |
| | | * æ·»å æ°æ® |
| | | * |
| | | * @param usersEntity |
| | | * @param userEntity |
| | | * @return |
| | | */ |
| | | public Integer insertUser(UsersEntity usersEntity); |
| | | public Integer insertUser(UserEntity userEntity); |
| | | |
| | | /** |
| | | * æ¹éæ·»å |
| | | * |
| | | * @param usersEntity |
| | | * @param userEntity |
| | | * @return |
| | | */ |
| | | public Integer insertUsers(List<UsersEntity> usersEntity); |
| | | public Integer insertUsers(List<UserEntity> userEntity); |
| | | |
| | | /** |
| | | * åªé¤æ°æ® |
| | |
| | | /** |
| | | * ä¿®æ¹æ°æ® |
| | | * |
| | | * @param usersEntity |
| | | * @param userEntity |
| | | * @return |
| | | */ |
| | | public Integer updateUsers(UsersEntity usersEntity); |
| | | public Integer updateUsers(UserEntity userEntity); |
| | | |
| | | /** |
| | | * æ¥è¯¢åæ¡æ°æ® |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public UsersEntity selectUser(int id); |
| | | public UserEntity selectUser(int id); |
| | | |
| | | /** |
| | | * æ ¹æ®uidæ¥è¯¢ |
| | |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public UsersEntity selectByUid(String uid); |
| | | public UserEntity selectByUid(String uid); |
| | | |
| | | /** |
| | | * æ¥è¯¢å
¨é¨æ°æ® |
| | | * |
| | | * @return |
| | | */ |
| | | public List<UsersEntity> selectUserAll(); |
| | | public List<UserEntity> selectUserAll(); |
| | | } |