Subversion Repositories SmartDukaan

Rev

Rev 22563 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.tag;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.common.model.TagListingModel;
import com.spice.profitmandi.dao.entity.catalog.Tag;
import com.spice.profitmandi.dao.entity.dtr.Retailer;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Service
public interface TagService {
        public void createTagListings(List<TagListingModel> tagListingModels) throws ProfitMandiBusinessException;
        public void createTagListing(int tagId, int itemId, float sellingPrice, float mop, float priceSupport, float maxDiscountPrice, LocalDateTime startDate);
        public List<Retailer> getRetailersByTagId(int tagId);

    public List<Tag> getTagsByPinCode(String pinCode) throws ProfitMandiBusinessException;
        public Set<String> getPinCodesByTagId(int tagId);

    public List<Tag> getTagsByRetailerId(int retailerId) throws ProfitMandiBusinessException;
        public Set<Integer> getTagIdsByPinCode(String pinCode);

    public Set<Integer> getFofoTagIdsByPinCode(String pinCode) throws ProfitMandiBusinessException;
        public Set<Integer> getPinCodePositiveTagIds();
        public Set<Integer> getPinCodeNegativeTagIds();
        public Set<Integer> getUserPositiveTagIds();
        public Set<Integer> getUserNegativeTagIds();

    public List<Map<String, Object>> getTagListingDetail(int tagId) throws ProfitMandiBusinessException;

    public Set<Integer> getUserTagIdsByTagIds(Set<Integer> tagIds) throws ProfitMandiBusinessException;
}