/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ifish.helper;

import com.ifish.bean.CommodityInfoBean;
import com.ifish.dto.JsonResult;
import com.ifish.dto.PageingDto;
import org.springframework.web.multipart.MultipartFile;

/**
 * 商品管理所有接口方法
 *
 * @author Administrator
 */
public interface CommodityInfoHelperI {

    /**
     * 创建商品
     *
     * @param commodityInfoBean
     * @return
     */
    public JsonResult<?> createCommodityInfo(CommodityInfoBean commodityInfoBean, MultipartFile img, MultipartFile vedio);

    /**
     * 修改商品
     *
     * @param commodityInfoBean
     * @return
     */
    public JsonResult<?> updateCommodityInfo(CommodityInfoBean commodityInfoBean);

    /**
     * 根据商品ID查询商品详情
     *
     * @param commodityId
     * @return
     */
    public JsonResult<?> getCommodityInfo(Integer commodityId);

    /**
     * 根据店铺ID分页获取商品列表
     *
     * @param pageSize
     * @param firstResult
     * @param shopId
     * @param commodityState
     * @return
     */
    public PageingDto<?> getCommodityInfoByPage(Integer pageSize, Integer firstResult, Integer shopId, Integer commodityState, String orderBy);

    /**
     * 删除商品
     *
     * @param commodityId
     * @return
     */
    public JsonResult<?> deleteCommodityInfo(Integer commodityId);
}
