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

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

import java.time.LocalDateTime;

/**
 * @date: 2019/10/15 16:09:16
 * @author: lilin
 */

@Data
@ApiModel
@Builder
public class MessageResult {

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

    @ApiModelProperty(value = "消息类型 1.审核提醒 2.项目联系方式审核提醒 3.项目提交方收到申请提醒", required = true, example = "1")
    private Integer type;

    @ApiModelProperty(value = "跳转类型 审核提醒->1.政策申报 2.创新资源-项目资源 3.创新资源-招聘资源 4.创新资源-载体资源 5.创新资源服务平台 6.项目入驻 7.创新培训学院 " +
            "项目联系方式审核提醒|项目提交方收到申请提醒->1.创新项目路演厅", required = true, example = "1")
    private String targetType;

    @ApiModelProperty(value = "对象ID(对应跳转类型比如政策申报id、项目资源id)", required = true, example = "1454456544")
    private String targetId;

    @ApiModelProperty(value = "消息标题", required = true, example = "您的项目智能产品试点示范项目已审核通过")
    private String title;

    @ApiModelProperty(value = "消息内容", required = true, example = "我对您的智能产品试点示范项目很感兴趣，可以查看您的联系方式和附件吗？我想了解具体情况，谢谢")
    private String message;

    @ApiModelProperty(value = "消息跳转url", example = "http://www.baidu.com")
    private String url;

    @ApiModelProperty(value = "已读 true.已读 false.未读", required = true, example = "false")
    private boolean read;

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

}
