package com.pannk.mms.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pannk.mms.modules.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * 系统用户
 * Created by wolf on 20-11-2.
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUserEntity> {
    /**
     * 查询用户
     * @param userName
     * @return
     */
    SysUserEntity queryByUserName(String userName);

    /**
     * 删除用户角色
     * @param id 用户ID
     */
    void deleteUserRole(Long id);
}
