ADD file via upload

master
moec42frf 2 years ago
parent 22b6aa77d7
commit 7eb901a8df

@ -0,0 +1,33 @@
package org.sang.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.sang.bean.Role;
import org.sang.bean.User;
import java.util.List;
@Mapper
public interface UserMapper {
User loadUserByUsername(@Param("username") String username);
long reg(User user);
int updateUserEmail(@Param("email") String email, @Param("id") Long id);
List<User> getUserByNickname(@Param("nickname") String nickname);
List<Role> getAllRole();
int updateUserEnabled(@Param("enabled") Boolean enabled, @Param("uid") Long uid);
int deleteUserById(Long uid);
int deleteUserRolesByUid(Long id);
int setUserRoles(@Param("rids") Long[] rids, @Param("id") Long id);
User getUserById(@Param("id") Long id);
}
Loading…
Cancel
Save