All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lframework.starter.mybatis.service.system.SysRoleService Maven / Gradle / Ivy

There is a newer version: 3.0.6
Show newest version
package com.lframework.starter.mybatis.service.system;

import com.lframework.starter.mybatis.entity.DefaultSysRole;
import com.lframework.starter.mybatis.resp.PageResult;
import com.lframework.starter.mybatis.service.BaseMpService;
import com.lframework.starter.mybatis.vo.system.role.CreateSysRoleVo;
import com.lframework.starter.mybatis.vo.system.role.QuerySysRoleVo;
import com.lframework.starter.mybatis.vo.system.role.SysRoleSelectorVo;
import com.lframework.starter.mybatis.vo.system.role.UpdateSysRoleVo;
import java.util.Collection;
import java.util.List;

public interface SysRoleService extends BaseMpService {

  /**
   * 查询列表
   *
   * @return
   */
  PageResult query(Integer pageIndex, Integer pageSize, QuerySysRoleVo vo);

  /**
   * 查询列表
   *
   * @param vo
   * @return
   */
  List query(QuerySysRoleVo vo);

  /**
   * 根据ID查询
   *
   * @param id
   * @return
   */
  DefaultSysRole findById(String id);

  /**
   * 选择器
   *
   * @return
   */
  PageResult selector(Integer pageIndex, Integer pageSize, SysRoleSelectorVo vo);

  /**
   * 根据ID停用
   *
   * @param ids
   */
  void batchUnable(Collection ids);

  /**
   * 根据ID启用
   *
   * @param ids
   */
  void batchEnable(Collection ids);

  /**
   * 创建
   *
   * @param vo
   * @return
   */
  String create(CreateSysRoleVo vo);

  /**
   * 修改
   *
   * @param vo
   */
  void update(UpdateSysRoleVo vo);

  /**
   * 根据用户ID查询
   *
   * @param userId
   * @return
   */
  List getByUserId(String userId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy