package com.izouma.jmrh.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.izouma.jmrh.annotations.Searchable;
import com.izouma.jmrh.enums.AuditStatus;
import com.izouma.jmrh.enums.ResSnDType;
import com.izouma.jmrh.utils.excel.EnumConverter;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("资源供需")
public class SndExcelDTO {
    @ExcelProperty("名称")
    private String name;

    @ExcelProperty("发布企业")
    private Long orgId;

    @ExcelProperty("有效期")
    private LocalDateTime expireTime;

    @ExcelProperty("联系人")
    private String contact;

    @ExcelProperty("联系方式")
    private String phone;

    @ExcelProperty("联系地址")
    private String address;

    @ExcelProperty(value = "审核状态", converter = EnumConverter.class)
    private AuditStatus status;

    @ExcelProperty(value = "资源供需类型", converter = EnumConverter.class)
    private ResSnDType type;

    @ExcelProperty("功能简介")
    private String description;

    @ExcelProperty("创建时间")
    private LocalDateTime createdAt;
}
