package com.org.hktshop.service.shopping;

import com.org.hktshop.base.BaseResult;
import com.org.hktshop.entity.Page;
import com.org.hktshop.entity.shopping.HktShoppingCard;
import com.org.hktshop.entity.shopping.HktShoppingCardDetail;
import com.org.hktshop.entity.user.HktUser;

public interface HktShoppingCardService {
    /**
     * 新增/修改卡券信息
     * @param hktShoppingCard
     */
    void updateShoppingCard(HktShoppingCard hktShoppingCard);

    /**
     * 删除卡券信息
     * @param hktShoppingCard
     */
    Object delShoppingCard(HktShoppingCard hktShoppingCard);

    /**
     * 卡券详情
     * @param hktShoppingCard
     * @return
     */
    HktShoppingCard findShoppingCard(HktShoppingCard hktShoppingCard);

    /**
     * 分页查询卡券信息
     * @param hktShoppingCard
     * @return
     */
    Page<HktShoppingCard> selectShoppingCard(HktShoppingCard hktShoppingCard);


    /**
     * 积分兑换
     * @param hktShoppingCard
     * @param user
     * @return
     */
    BaseResult exchangePoints(HktShoppingCard hktShoppingCard, HktUser user);


}
