package com.ibeetl.admin.console.dao;

import com.ibeetl.admin.core.entity.CoreUser;
import com.ibeetl.admin.core.entity.CoreUserRole;
import com.ibeetl.admin.core.service.param.CoreUserParam;
import com.ibeetl.admin.core.util.enums.GeneralStateEnum;
import java.util.List;
import org.beetl.sql.core.page.PageRequest;
import org.beetl.sql.core.page.PageResult;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.SqlResource;

@SqlResource("console.user")
public interface UserConsoleDao extends BaseMapper<CoreUser> {

  PageResult<CoreUser> queryByCondtion(CoreUserParam param, PageRequest<CoreUser> query);

  void batchDelUserByIds(List<Long> ids);

  void batchUpdateUserState(List<Long> ids, GeneralStateEnum state);

  List<CoreUserRole> queryUserRole(Long id, Long orgId, Long roleId);

}
