package com.gxwebsoft.common.system.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文件上传记录查询参数
 *
 * @author WebSoft
 * @since 2021-08-30 11:29:31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "文件上传记录查询参数")
public class FileRecordParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @QueryField(type = QueryType.EQ)
    @Schema(description = "主键id")
    private Integer id;

    @QueryField(type = QueryType.EQ)
    @Schema(description = "分组ID")
    private Integer groupId;

    @Schema(description = "文件名称")
    private String name;

    @Schema(description = "文件存储路径")
    private String path;

    @QueryField(type = QueryType.EQ)
    @Schema(description = "应用ID")
    private Integer appId;

    @QueryField(type = QueryType.EQ)
    @Schema(description = "企业ID")
    private Integer companyId;

    @QueryField(type = QueryType.EQ)
    @Schema(description = "商户ID")
    private Long merchantId;

    @QueryField(type = QueryType.EQ)
    @Schema(description = "创建人")
    private Integer createUserId;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "文件类型")
    private String contentType;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "创建人账号")
    @TableField(exist = false)
    private String createUsername;

    @Schema(description = "创建人名称")
    @TableField(exist = false)
    private String createNickname;

    @Schema(description = "用户头像")
    @TableField(exist = false)
    private String avatar;

}
