package com.bcxin.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_xfile")
public class Xfile extends Model<Xfile> {

    /**
     * 主键
     */
    @TableId(type = IdType.ID_WORKER)
    private Long oid;

    private Date createOn;

    private String fileUrl;

    private String filename;

    /**
     * 转换后
     */
    private String pdfUrl;

    /**
     * 转换后
     */
    private String swfUrl;

    /**
     * 转换后
     */
    private String previewUrl;

    @Override
    protected Serializable pkVal() {
        return this.oid;
    }
}