package com.starry.admin.modules.clerk.module.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author admin
 * @since 2024/6/6 下午11:13
 **/
@Data
@ApiModel(value = "店员头像框添加参数", description = "新增店员头像框信息的请求参数")
public class PlayAvatarFrameInfoAddVo {

    /**
     * 添加时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "添加时间", hidden = true, notes = "系统自动生成，无需传入")
    private final LocalDateTime addTime = LocalDateTime.now();
    /**
     * 头像框名称
     */
    @NotNull(message = "头像框名称不能为空")
    @ApiModelProperty(value = "头像框名称", required = true, example = "年度贡献者", notes = "头像框的名称")
    private String avatarFrameName;
    /**
     * 头像框地址
     */
    @NotNull(message = "头像框图片不能为空")
    @ApiModelProperty(value = "头像框地址", required = true, example = "https://example.com/frame.png", notes = "头像框图片的URL地址")
    private String avatarFrameAddress;
    /**
     * 获取方式(0:手动赠送;1:自动赠送)
     */
    @NotNull(message = "头像框获取方式不能为空")
    @ApiModelProperty(value = "获取方式", required = true, example = "0", notes = "0:手动赠送;1:自动赠送")
    private String accessType;
    /**
     * 获取条件名称
     */
    @ApiModelProperty(value = "获取条件名称", example = "年度贡献奖", notes = "获取该头像框的条件名称")
    private String accessName;
    /**
     * 获取条件
     */
    @ApiModelProperty(value = "获取条件", example = "年度贡献超过10000元", notes = "获取该头像框的具体条件")
    private String accessValue;
    /**
     * 有效期（单位：天，-1:永久有效）
     */
    @NotNull(message = "有效期不能为空")
    @ApiModelProperty(value = "有效期", required = true, example = "365", notes = "头像框的有效期，单位：天，-1表示永久有效")
    private String periodValidity;
}
