package com.xueyi.system.api.resource.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xueyi.common.core.annotation.Excel;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

import static com.xueyi.common.core.constant.basic.EntityConstants.*;

/**
 * 静态资源 持久化对象
 *
 * @author xueyi
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "dm_resources", excludeProperty = { STATUS, SORT, REMARK })
public class DmResourcesPo extends TBaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    public static final Integer TYPE_PIC = 1;
    public static final Integer TYPE_VIDEO = 2;

    public static final Integer TYPE_PDF = 3;

    /** 资源tag */
    @Excel(name = "资源tag")
    protected String tag;

    /** 数字人ID */
    @Excel(name = "数字人ID")
    protected Long manId;

    /** 物理地址 */
    @Excel(name = "物理地址")
    protected String physicalAddr;

    /** url地址 */
    @Excel(name = "url地址")
    protected String url;

    /** 所属组织ID */
    @Excel(name = "所属组织ID")
    protected Long deptId;

    protected Integer type;


    private String feature;

    protected Long fileSize;

}