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

com.github.javaclub.base.mapper.AdminUserMapper Maven / Gradle / Ivy

/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
 *
 * @(#)AdminUserMapper.java  2023-09-06
 *
 * Copyright (c) 2023 - 2099. All Rights Reserved.
 *
 */

package com.github.javaclub.base.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.javaclub.base.domain.AdminUser;

/**
 * AdminUserMapper 数据库持久层
 *
 * @version $Id: AdminUserMapper.java 2023-09-06 19:11:12 Exp $
 */
public interface AdminUserMapper extends BaseMapper {
	
	/**
	 * 查询用户的所有权限
	 * @param userId  用户ID
	 * @return
	 */
	List queryAllPerms(@Param("userId") Long userId);
	
	/**
	 * 根据用户id 批量删除用户
	 * @param userIds
	 * @param shopId
	 */
	void deleteBatch(@Param("userIds") Long[] userIds, @Param("shopId") Long shopId);
	
	/**
	 * 根据用户名获取管理员用户
	 * @param username
	 * @return
	 */
	AdminUser selectByUsername(@Param("username") String username);
	
	AdminUser selectByUserId(@Param("userId") Long userId);
	AdminUser selectByMobile(@Param("mobile") String mobile);
	AdminUser selectByEmail(@Param("email") String email);
	
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy