101captain
2022-01-14 dad5e5fd2abbf5d77d23f1b9a4500a9ae9bf274d
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/RoleDAO.java
New file
@@ -0,0 +1,34 @@
package com.panzhihua.service_user.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestParam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panzhihua.common.model.vos.MenuVO;
import com.panzhihua.service_user.model.dos.SysRoleDO;
/**
 * @program: springcloud_k8s_panzhihuazhihuishequ
 * @description: 角色
 * @author: huang.hongfa weixin hhf9596 qq 959656820
 * @create: 2020-11-24 16:34
 **/
@Mapper
public interface RoleDAO extends BaseMapper<SysRoleDO> {
    List<SysRoleDO> selectByUserId(Long userId);
    List<MenuVO> selectAllMenuUrl();
    List<String> selectRoles(String username);
    Long selectMaxRole(Long communityId);
    void deleteByRoleKey(@RequestParam("roleKey") String roleKey);
}