package cn.reghao.tnb.content.app.chat.model.po.message;

import cn.reghao.jutil.jdk.web.db.BaseObject;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author reghao
 * @date 2022-04-20 14:18:23
 */
@NoArgsConstructor
@Getter
@Setter
public class FileMessage extends BaseObject<Integer> {
    private Integer fileType;
    private Long recordId;
    private String uploadId;
    private Integer channelCode;
    private String filename;
    private Integer width;
    private Integer height;

    public FileMessage(int fileType, long recordId, String uploadId, String filename) {
        this.fileType = fileType;
        this.recordId = recordId;
        this.uploadId = uploadId;
        this.filename = filename;
        this.width = 0;
        this.height = 0;
    }
}
