package com.liquidnet.service.sweet.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Map;

@ApiModel(value = "SweetFormSubmissionParam", description = "动态表单报名入参")
@Data
public class SweetFormSubmissionParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(position = 1, required = true, value = "活动名称/标识", example = "talent_2026_spring")
    @NotBlank(message = "请填写活动名称")
    private String activityName;

    @ApiModelProperty(position = 2, required = true, value = "报名字段与值，key 为字段名")
    @NotEmpty(message = "请填写报名信息")
    private Map<String, Object> data;
}
