package com.sptg.estate.biz.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.estate.api.entity.MemberDevice;

import java.util.List;

public interface MemberDeviceServiceInterface extends IService<MemberDevice> {

    /**
     * 分页查询
     * @param memberDevice 查询条件
     * @return ResultBean<Page<MemberDevice>>
     */
    ResultBean<Page<MemberDevice>> pagingQuery(MemberDevice memberDevice);

    /**
     * 授权
     * @param memberDevice
     * @return ResultBean<Boolean>
     */
    ResultBean<Boolean> enable(MemberDevice memberDevice);

    /**
     * 添加记录
     * @param memberDevice
     * @return ResultBean<Boolean>
     */
    ResultBean<Boolean> add(MemberDevice memberDevice);

    /**
     * 根据app会员id获取记录
     * @param memberDevice 查询条件
     * @return List<MemberDevice>
     */
    List<MemberDevice> getListByMemberId(MemberDevice memberDevice);

    /**
     * 批量添加
     * @param memberDeviceList
     * @return
     */
    ResultBean<Boolean> addBatch(List<MemberDevice> memberDeviceList);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    ResultBean<Boolean> deleteBatch(List<Long> ids);
}
