package com.fdkankan.ucenter.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fdkankan.ucenter.entity.Camera;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fdkankan.ucenter.vo.request.CameraParam;
import com.fdkankan.ucenter.vo.response.CameraAppVo;
import com.fdkankan.ucenter.vo.response.CameraVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 相机主表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-07-04
 */
@Mapper
public interface ICameraMapper extends BaseMapper<Camera> {

    Page<CameraVo> pageList(Page<CameraVo> page, CameraParam param);

    List<CameraAppVo> getCameraInfo(@Param("childName") String childName, @Param("childPassword") String childPassword);

    List<Camera> getAllListByUser(@Param("userId")Long userId,@Param("snCode") String snCode);
}
