CarService.java 1.45 KB
package com.glsx.publicservice.service;

import java.util.List;

import com.glsx.biz.common.base.entity.CarBrandSelected;
import com.glsx.biz.common.base.entity.Carbrand;
import com.glsx.biz.common.base.entity.Carseries;
import com.glsx.biz.common.base.entity.Cartype;

/**
 * 
 * @Title CarbrandService.java
 * @Package com.glsx.publicservice.service
 * @Description TODO 汽车品牌
 * @author zhanghj
 * @date 2018年7月24日 下午8:39:03
 * @version
 */
public interface CarService {

	/**
	 * 获取所有的汽车品牌
	 * @return
	 */
	List<Carbrand> getCarbrandList();

	/**
	 * 根据汽车品牌id,获取车系列表
	 * @param bid
	 * @return
	 */
	List<Carseries> getCarseriesList(Integer bid);

	/**
	 * 通过车系id,获取车型列表
	 * @param bid
	 * @return
	 */
	List<Cartype> getCartypeList(Integer seriesId);

	/**
	 * 根据品牌id获取品牌信息
	 * @param bid
	 * @return
	 */
	Carbrand getCarbrandById(Integer bid);
	
	/**
	 * 根据车系id获取车系信息
	 * @param seriesId
	 * @return
	 */
	Carseries getCarseriesById(Integer seriesId);
	/**
	 * 根据车型id获取车型信息
	 * @param cartypeId
	 * @return
	 */
	Cartype getCartypeById(Integer seriesId, Integer cartypeId);
	
	Cartype getCarTypeDetail( Integer cartypeId) ;

	/**
	 *
	 * @param type 品牌树层级 2:二级 3:三级
	 * @return
	 */
	List<CarBrandSelected> getCarbrandTree(Integer type);
}