package cn.iocoder.yudao.module.system.controller.admin.biz.vo.elderlyactivityimage;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 管理后台 - 楼层活动图片记录新增/修改 Request VO
 *
 * @author 系统管理员
 */
@Schema(description = "管理后台 - 楼层活动图片记录新增/修改 Request VO")
@Data
public class ElderlyBuildFloorActivityImageSaveReqVO {

    @Schema(description = "id（修改时必传）", example = "1")
    private Long id;

    @Schema(description = "记录月", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "记录月不能为空")
    private String recordMonth;

    @Schema(description = "第几周", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "第几周不能为空")
    private Integer week;

    @Schema(description = "长者姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "长者姓名不能为空")
    private String elderName;

    @Schema(description = "楼栋id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "楼栋id不能为空")
    private Long buildId;

    @Schema(description = "楼层id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "楼层id不能为空")
    private Long floorId;

    @Schema(description = "记录时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "记录时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = "GMT+8")
    private Date recordTime;

    @Schema(description = "所属楼层")
    private String belongFloor;

    @Schema(description = "活动日期")
    private String activityDate;

    @Schema(description = "活动内容")
    private String activityContent;

    @Schema(description = "活动图片")
    private String activityImage;

    @Schema(description = "图片备注")
    private String activityImageRemark;

    @Schema(description = "机构id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "机构id不能为空")
    private Long tenantId;
}
