parent
18411feb7d
commit
57aa158994
@ -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<Role> getRolesByUid(Long uid);
|
||||
}
|
Loading…
Reference in new issue