package com.kym.service.admin.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.kym.entity.admin.Role;
import com.kym.entity.admin.queryParams.CommonQueryParam;
import com.kym.entity.common.PageBean;
import com.kym.mapper.admin.RoleMapper;
import com.kym.service.admin.RoleService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author skyline
 * @since 2023-07-12
 */
@Service
@DS("db-admin")
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Override
    public PageBean<Role> listRole(CommonQueryParam params) {
        PageHelper.startPage(params.getPageNum(), params.getPageSize());
        return new PageBean<>(list());
    }
}
