package com.face.attachment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class FaceInfoAddRequestVO {
    @Schema(title = "人脸模版ID")
    @NotBlank(message = "人脸模版ID不能为空")
    @Size(min = 1, max = 32, message = "人脸模版ID长度必须在1到32之间")
    String faceId;

    @Schema(title = "横向坐标x")
    Integer x;

    @Schema(title = "纵向坐标y")
    Integer y;

    @Schema(title = "横向坐标")
    Integer width;

    @Schema(title = "坐标高")
    Integer height;

    @Schema(title = "素材ID")
    String materialId;

    @Schema(title = "素材名称")
    @Size(max = 255, message = "素材名称长度需要小于等于255")
    String materialName;

    @Schema(title = "活动ID 一个活动多个素材 一个素材多个人脸模版")
    @Size(max = 32, message = "活动ID 一个活动多个素材 一个素材多个人脸模版长度需要小于等于32")
    String activityId;

    @Schema(title = "图片地址")
    @Size(max = 255, message = "图片地址长度需要小于等于255")
    String faceUrl;

    @Schema(title = "活动名称")
    @Size(max = 255, message = "活动名称长度需要小于等于255")
    String activityName;

    @Schema(title = "图片BASE64编码")
    byte[] faceBase;
}