package com.buy507.mall.service.impl;

import com.buy507.mall.mapper.CmsPrefrenceAreaMapper;
import com.buy507.mall.model.CmsPrefrenceArea;
import com.buy507.mall.model.CmsPrefrenceAreaExample;
import com.buy507.mall.service.CmsPrefrenceAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品优选Service实现类
 */
@Service
public class CmsPrefrenceAreaServiceImpl implements CmsPrefrenceAreaService {
    @Autowired
    private CmsPrefrenceAreaMapper prefrenceAreaMapper;

    @Override
    public List<CmsPrefrenceArea> listAll() {
        return prefrenceAreaMapper.selectByExample(new CmsPrefrenceAreaExample());
    }
}
