package com.izouma.jmrh.domain;

import com.izouma.jmrh.annotations.Searchable;
import com.izouma.jmrh.converter.FileObjectListConverter;
import com.izouma.jmrh.converter.StringArrayConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Lob;
import java.util.List;

@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("项目管理")
public class ProjectManagement extends BaseEntity {
    @ApiModelProperty("项目名称")
    @Searchable
    private String name;

    @Convert(converter = StringArrayConverter.class)
    @Column(columnDefinition = "TEXT")
    @ApiModelProperty("图片")
    private List<String> pics;

    @ApiModelProperty("项目简介")
    @Column(columnDefinition = "TEXT")
    private String intro;

    @ApiModelProperty("附件")
    @Convert(converter = FileObjectListConverter.class)
    @Column(columnDefinition = "TEXT")
    private List<FileObject> attachment;

    @ApiModelProperty("评审")
    private String review;

    @ApiModelProperty("评审状态")
    private String reviewStatus;

    @ApiModelProperty("通过状态")
    private String passStatus;
}
