
package com.tmerclub.cloud.user.service;

import com.tmerclub.cloud.api.user.dto.ShopCustomerReqDTO;
import com.tmerclub.cloud.api.user.vo.UserManagerVO;
import com.tmerclub.cloud.user.dto.ShopCustomerDTO;
import com.tmerclub.cloud.user.model.ShopCustomer;

import java.util.List;

/**
 * @author tmerclub
 * @date 2023-01-15 15:53:16
 */
public interface ShopCustomerService {
    /**
     * 批量添加客户
     *
     * @param shopCustomers
     */
    void saveBatch(List<ShopCustomer> shopCustomers);

    /**
     * 根据条件获取客户列表
     *
     * @param shopCustomerDTO
     * @return
     */
    List<UserManagerVO> listByParam(ShopCustomerDTO shopCustomerDTO);


    /**
     * 批量插入店铺会员
     * @param shopCustomerReqList
     */
    void saveBatchByOrders(List<ShopCustomerReqDTO> shopCustomerReqList);

    /**
     * 获取用户是否为店铺客户
     * @param shopId
     * @param userId
     * @return
     */
    Integer getIsShopCustomer(Long shopId, Long userId);

}
