package com.softwarebr.nunu.dto.train;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @date 2020-02-26 11:02:46
 * @author lilin
 */

@Data
public class ActivityParamDTO {

    @ApiModelProperty(value = "活动名称", required = true, example = "")
    private String name;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "报名开始时间", required = true, example = "")
    private LocalDateTime signStartDate;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "报名结束时间", required = true, example = "")
    private LocalDateTime signEndDate;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "活动开始时间", required = true, example = "")
    private LocalDateTime startDate;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "活动结束时间", required = true, example = "")
    private LocalDateTime endDate;

    @ApiModelProperty(value = "活动价格（-1免费)", required = true, example = "")
    private BigDecimal price;

    @ApiModelProperty(value = "省份编号", required = true, example = "")
    private Long provinceId;

    @ApiModelProperty(value = "城市编号", required = true, example = "")
    private Long cityId;

    @ApiModelProperty(value = "区县编号", required = true, example = "")
    private Long areaId;

    @ApiModelProperty(value = "上线人数", required = true, example = "")
    private Integer capacity;

    @ApiModelProperty(value = "活动类别 1.创新活动 2.培训活动", required = true, example = "")
    private Integer category;

    @ApiModelProperty(value = "活动类型(创新->1.沙龙会2.论坛3.讲座4.项目路演5.创新创业大赛6.私董会7.分享会 培训->1.讲座2.培训班3.研修班)", required = true, example = "")
    private Integer type;

    @ApiModelProperty(value = "活动封面图", required = true, example = "")
    @NotEmpty(message = "请上传活动封面图")
    private String coverUri;

    @ApiModelProperty(value = "活动简介", required = true, example = "")
    private String description;

    @ApiModelProperty(value = "活动信息", required = true, example = "")
    private String information;

    @ApiModelProperty(value = "活动详情", required = true, example = "")
    private String detail;
}
