diff --git a/blogserver/src/main/java/org/sang/mapper/RolesMapper.java b/blogserver/src/main/java/org/sang/mapper/RolesMapper.java new file mode 100644 index 0000000..3ec193b --- /dev/null +++ b/blogserver/src/main/java/org/sang/mapper/RolesMapper.java @@ -0,0 +1,15 @@ +package org.sang.mapper; + +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.sang.bean.Role; + +import java.util.List; + + +@Mapper +public interface RolesMapper { + int addRoles(@Param("roles") String[] roles, @Param("uid") Long uid); + + List getRolesByUid(Long uid); +}