<filename>034-project-seed-1/sys/src/main/java/com/keqi/seed/sys/mapper/AccountMapper.java
package com.keqi.seed.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.keqi.seed.sys.domain.db.AccountDO;
import com.keqi.seed.sys.domain.param.AccountPageParam;
import com.keqi.seed.sys.domain.vo.AccountVO;
import com.keqi.seed.sys.domain.vo.MenuVO;
import com.keqi.seed.sys.domain.vo.RoleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountMapper extends BaseMapper<AccountDO> {

	int updatePasswordById(@Param("password") String password, @Param("id") Long id);

	List<AccountVO> page(AccountPageParam pageParam);

	AccountDO selectByAccount(String account);

	List<MenuVO> selectMenuVOListByAccountId(Long accountId);

	List<RoleVO> selectRoleVOListByAccountId(Long accountId);
}