package com.cftech.invoice.service;

import com.alibaba.fastjson.JSONObject;
import com.cftech.core.sql.Conds;
import com.cftech.core.sql.Sort;
import com.cftech.invoice.model.Invoice;
import com.cftech.core.generic.GenericService;
import com.cftech.invoice.model.InvoiceDetail;

import java.util.List;
import java.util.Map;

/**
* 开票信息Service
*
* @author Buyj
* @date: 2020-11-25 09:32
*/
public interface InvoiceService extends GenericService<Invoice> {


    /**
     * 移动端查看发票
     * @param invoiceDetail
     * @return
     */
    JSONObject selectInvoiceDetail(InvoiceDetail invoiceDetail);

    /**
     * 获取粉丝最近邮箱
     * @param openid
     * @return
     */
    JSONObject findFassDefaultEmail(String openid);

    /**
     * 发送邮箱
     * @param appId
     * @param openId
     * @param orderId
     * @param email
     * @return
     */
    JSONObject sendEmail(String appId, String openId, String invoiceId, String email);
}
