package com.softwarebr.nunu.json.admin.ser;

import com.brframework.commoncms.annatotion.column.ImageColumn;
import com.brframework.commoncms.annatotion.column.RichTextColumn;
import com.softwarebr.nunu.domain.PlatformModular;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @date 2020-02-24 13:22:47
 * @author lilin
 */

@Data
@ApiModel
public class PlatformParam {

	@ApiModelProperty(value = "平台名称", required = true, example = "")
	@NotEmpty(message = "请输入平台名称")
	private String name;

	@ApiModelProperty(value = "平台logo", required = true, example = "")
	@ImageColumn(number = 1)
	@NotEmpty(message = "请上传平台logo")
	private String logoUri;

	@ApiModelProperty(value = "平台封面图", required = true, example = "")
	@ImageColumn(number = 1)
	@NotEmpty(message = "请上传平台封面图")
	private String coverUri;

	@ApiModelProperty(value = "平台简介(text)", required = true, example = "")
	@RichTextColumn
	private String description;

	@ApiModelProperty(value = "模板类型(1.模板一 2.模板二 3.模板三)", required = true, example = "")
	@NotNull(message = "模板类型不能为空")
	private Integer template;

	@ApiModelProperty(value = "模块(json(模块名 模块内容))", required = true, example = "")
	private List<PlatformModular> modulars;

}