package com.softwarebr.nunu.service.user;

import com.softwarebr.nunu.entity.user.RefundInfo;
import com.brframework.commondb.core.EntityService;

/**
 * @date 2020-02-27 13:36:08
 * @author lilin
 */

public interface RefundInfoService extends EntityService<RefundInfo, Long, Object> {

    /**
     * 退款审核
     * @param id
     * @param verify 审核状态(1待审核 2审核通过 3审核不通过)
     * @param verifyRemark 审核备注
     */
    void refundVerify(Long id, Integer verify, String verifyRemark);

    /**
     * 退款申请
     * @param memberId 用户id
     * @param orderId 订单id
     * @param reason 退款原因
     * @param voucherPicture 凭证图片
     * @return
     */
    RefundInfo refundInfoSave(Long memberId, Long orderId, String reason, String voucherPicture);

    /**
     * 订单id查询退款信息
     * @param orderId
     * @return
     */
    RefundInfo getRefundInfoByOrderId(Long orderId);

}