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.*;

/**
 * 小程序banner图表单对象
 *
 * @author wzq
 * @since 2025-11-26 15:59
 */
@Getter
@Setter
@Schema(description = "小程序banner图表单对象")
public class BannerInfoForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "banner图片")
    @Size(max=255, message="banner图片长度不能超过255个字符")
    private String picture;

    @Schema(description = "是否跳转 0-不跳转 1-跳转 ")
    private Integer orJump;

    @Schema(description = "跳转小程序appid")
    @Size(max=50, message="跳转小程序appid长度不能超过50个字符")
    private String jumpAppid;

    @Schema(description = "跳转页面")
    @Size(max=255, message="跳转页面长度不能超过255个字符")
    private String jumpPage;

    @Schema(description = "排序 越大越靠前")
    private Integer sort;

    @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 = "创建人")
    @Size(max=64, message="创建人长度不能超过64个字符")
    private String createBy;

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

    @Schema(description = "更新人")
    @Size(max=64, message="更新人长度不能超过64个字符")
    private String updateBy;

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


}
