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

import com.alibaba.fastjson.annotation.JSONField;
import com.softwarebr.nunu.domain.PlatformModular;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 服务平台详情
 * @date 2020-02-21 11:48:30
 * @author lilin
 */
@Data
@ApiModel
public class PlatformDetailsResult {

    @ApiModelProperty(value = "id", required = true, example = "1")
    private Long id;

    @ApiModelProperty(value = "发布者", required = true, example = "")
    private Long publisher;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
    private LocalDateTime createDate;

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

    @ApiModelProperty(value = "平台logo", required = true, example = "")
    private String logoUri;

    @ApiModelProperty(value = "平台封面图", required = true, example = "")
    private String coverUri;

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

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

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

    @ApiModelProperty(value = "是否推荐至首页(0否 1是)", required = true, example = "")
    private Integer indexType;

    @ApiModelProperty(value = "是否上架(0下架 1上架) ", required = true, example = "")
    private Integer status;

    @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", required = true, example = "")
    private Integer verify;

    @ApiModelProperty(value = "审核备注", required = true, example = "")
    private String verifyRemark;

}
