package com.kxs.store.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kxs.store.api.dto.kxsapp.store.StoreSearchListDTO;
import com.kxs.store.api.model.KxsWarehouse;
import com.kxs.store.api.vo.kxsapp.store.StoreBrandListVO;
import com.kxs.store.api.vo.kxsapp.store.StoreListVO;
import com.kxs.store.api.vo.kxsapp.store.StoreSearchListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客小爽仓库表(KxsWarehouse)表数据库访问层
 *
 * @author 系统
 * @since 2024-01-08 09:46:01
 */
@Mapper
public interface KxsWarehouseMapper extends BaseMapper<KxsWarehouse> {

    /**
     * app 搜索列表
     *
     * @param page  页
     * @param param 参数
     * @return {@link IPage}<{@link StoreSearchListVO}>
     */
    IPage<StoreSearchListVO> searchList(Page<StoreSearchListVO> page, @Param("query") StoreSearchListDTO param);

    /**
     * 用户仓库列表
     *
     * @param userId 用户 ID
     * @return {@link List}<{@link StoreListVO}>
     */
    List<StoreListVO> userStoreList(Long userId);

}

