MerchantService.java
1.16 KB
package com.diligrp.rider.service;
import com.diligrp.rider.dto.MerchantStoreDTO;
import com.diligrp.rider.entity.MerchantStore;
import java.math.BigDecimal;
import java.util.List;
public interface MerchantService {
Long addStore(MerchantStoreDTO dto);
Long addStore(MerchantStoreDTO dto, Long scopedCityId);
void editStore(MerchantStoreDTO dto);
void editStore(MerchantStoreDTO dto, Long scopedCityId);
List<MerchantStore> storeList(Long cityId, String keyword, int page);
MerchantStore getStore(Long storeId);
MerchantStore getStore(Long storeId, Long scopedCityId);
void setOperatingState(Long storeId, int state);
void setOperatingState(Long storeId, int state, Long scopedCityId);
void setAutoOrder(Long storeId, int auto);
void updateFeeConfig(Long storeId, BigDecimal freeShipping, BigDecimal upToSend);
void updateFeeConfig(Long storeId, BigDecimal freeShipping, BigDecimal upToSend, Long scopedCityId);
void delStore(Long storeId);
void delStore(Long storeId, Long scopedCityId);
MerchantStore syncStore(String appKey, MerchantStoreDTO dto);
MerchantStore getByOutStoreId(String appKey, String outStoreId);
}