package com.zhongshu.card.server.core.domain.payment;


import com.zhongshu.card.client.type.payment.PicType;
import com.zhongshu.card.server.core.domain.base.SuperMain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Builder
@Document
@AllArgsConstructor
@NoArgsConstructor
public class Pic extends SuperMain {

    /**
     * 商户id
     */
    @Indexed
    private String epId;

    @Indexed
    private String accesserId;

    /**
     * 图片类型
     */
    @Indexed
    private PicType picType;
    /**
     * 上传接口返回文件type
     */
    @Indexed
    private String file_type;

    // 以下必传

    /**
     * 图片类型代码
     */
    @Indexed
    private String document_type;

    /**
     * 文件名称
     */
    @Indexed
    private String document_name;


    /**
     * 图片路径
     */
    @Indexed
    private String file_path;


    /**
     * 图片大小
     */
    @Indexed
    private String file_size;


    /**
     * 图片链接
     */
    @Indexed
    private String fileUrl;

}
