package com.jeesharp.business.modules.finance.invoice.service;

import com.jeesharp.business.modules.finance.invoice.entity.MemberInvoiceTitle;
import com.jeesharp.business.modules.finance.invoice.vo.MemberInvoiceTitleQueryVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.util.List;

/**
 * 发票抬头领域服务接口。
 *
 * @author jeesharp
 * @since 2026-06-12
 */
public interface MemberInvoiceTitleService extends BaseInterface<MemberInvoiceTitle, MemberInvoiceTitleQueryVO> {

    /**
     * 新增抬头。
     */
    MemberInvoiceTitle createTitle(MemberInvoiceTitle title);

    /**
     * 更新抬头。
     */
    void updateTitle(MemberInvoiceTitle title);

    /**
     * 查询会员全部抬头。
     */
    List<MemberInvoiceTitle> listByMember(String memberId);

    /**
     * 设为默认抬头。
     */
    void setDefaultTitle(String titleId, String memberId);
}
