package org.dromara.web.domain.bo;

import org.dromara.web.domain.InvoiceSetting;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 发票设置业务对象 invoice_setting
 *
 * @author Huanyi
 * @date 2025-08-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = InvoiceSetting.class, reverseConvertGenerate = false)
public class InvoiceSettingBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 收款人
     */
    private String payee;

    /**
     * 复核人
     */
    private String reviewer;

    /**
     * 开票人
     */
    private String drawer;

    /**
     * 开票人类型
     * 0、固定人员名称
     * 1、跟随账号名称
     */
    private Integer drawerType;

}
