package com.dg.core.db.gen.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.dg.core.db.gen.entity.RoleManagementEntity;
|
import org.springframework.data.repository.query.Param;
|
|
import java.util.List;
|
|
|
public interface RoleManagementMapper extends BaseMapper<RoleManagementEntity>
|
{
|
|
|
/**
|
* 查询角色列表
|
* @param page
|
* @param state
|
* @return
|
*/
|
public List<RoleManagementEntity> selectConfigList(IPage<RoleManagementEntity> page, Integer state,
|
@Param("name") String name);
|
|
/**
|
* 新增角色
|
* @param entity
|
* @return
|
*/
|
public int insertConfig(RoleManagementEntity entity);
|
|
/**
|
* 编辑角色
|
* @param entity
|
* @return
|
*/
|
public int updateConfig(RoleManagementEntity entity);
|
|
/**
|
* 删除角色
|
* @param Id
|
* @return
|
*/
|
public int deleteConfigById(String Id);
|
|
/**
|
* 统计条数
|
* @return
|
*/
|
public int countNum(String name);
|
|
|
|
|
|
|
}
|