// 假设 IEntity 接口定义如下
interface IEntity {
    ChangeToTable(): string[];
    ChangeFromTable(parms: any[]): void;
}

export class PFUsedFileInfo implements IEntity {
    /**
     * fileinfo表里的唯一编号
     */
    public Id: string;

    /**
     * 文件在客户端的路径
     */
    public FilePath: string;

    /**
     * 文件名
     */
    public FileName: string;

    /**
     * Md5码
     */
    public Md5: string;

    constructor() {
        this.Id = '';
        this.FilePath = '';
        this.FileName = '';
        this.Md5 = '';
    }

    public ChangeToTable(): string[] {
        return [this.Id, this.FilePath, this.FileName, this.Md5];
    }

    public ChangeFromTable(parms: any[]): void {
        this.Id = parms[0].toString();
        this.FilePath = parms[1].toString();
        this.FileName = parms[2].toString();
        this.Md5 = parms[3].toString();
    }
}