package com.gk.hotwork.Mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.gk.hotwork.Config.Oauth2.OauthRole;
|
import com.gk.hotwork.Domain.RoleInfo;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
import java.util.Map;
|
|
|
@Repository
|
public interface RoleInfoMapper extends BaseMapper<RoleInfo> {
|
int deleteByPrimaryKey(Long id);
|
|
RoleInfo selectByPrimaryKey(Long id);
|
|
int updateByPrimaryKeySelective(RoleInfo record);
|
|
int updateByPrimaryKey(RoleInfo record);
|
|
List<RoleInfo> selectRoleByUser(Long id);
|
|
List<RoleInfo> selectList(String name);
|
|
List<RoleInfo> selectExistRole(@Param("id") Long id, @Param("name") String name);
|
|
List<OauthRole> selectOauthRoleByUser(int i);
|
|
int selectRoleCount(String name);
|
|
List<RoleInfo> selectPageForRole(@Param("params") Map<String, Object> params);
|
}
|