package com.zsElectric.boot.business.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 企业信息表单对象
 *
 * @author zsElectric
 * @since 2025-12-11 10:10
 */
@Getter
@Setter
@Schema(description = "企业信息表单对象")
public class FirmInfoForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "部门id")
    private Long deptId;

    @Schema(description = "类型（1-企业 2-渠道）")
    private Integer firmType;

    @Schema(description = "B端企业名称")
    @Size(max=30, message="B端企业名称长度不能超过30个字符")
    private String name;

    @Schema(description = "状态 0 已下线  1 上线中")
    private Integer status;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private Long createBy;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "逻辑删除（0-未删 1-已删）")
    private Integer isDeleted;


}
