package org.dromara.payment.sys.domain.bo;

import com.alibaba.excel.annotation.ExcelIgnore;
import org.dromara.payment.sys.domain.SysUnit;
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.*;

import java.util.Date;

/**
 * 单位基础信息业务对象 sys_unit
 *
 * @author LionLi
 * @date 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUnit.class, reverseConvertGenerate = false)
public class SysUnitBo extends BaseEntity {

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

    /**
     * 企业名称
     */
    @NotBlank(message = "企业名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 企业编号
     */
    @NotBlank(message = "企业编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String no;

    /**
     * 企业类型（5：平台 6：服务商 7：运营商 8：代理商 9：商户）
     */
    @NotNull(message = "企业类型（5：平台 6：服务商 7：运营商 8：代理商 9：商户）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer unitType;

    /**
     * 平台客户号
     */
    @NotBlank(message = "平台客户号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String custNo;




}
