package com.njcn.gather.system.resource.pojo.param;

import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.web.multipart.MultipartFile;

/**
 * 资源管理参数
 */
@Data
public class ResourceManageParam {

    @ApiModelProperty(value = "资源名称", required = true)
    private String name;

    @ApiModelProperty(value = "备注", required = true)
    private String remark;

    @ApiModelProperty(value = "视频文件", required = true)
    private MultipartFile file;

    @Data
    public static class UpdateParam {
        @ApiModelProperty(value = "资源id", required = true)
        private String id;

        @ApiModelProperty(value = "资源名称", required = true)
        private String name;

        @ApiModelProperty(value = "备注", required = true)
        private String remark;
    }

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class QueryParam extends BaseParam {
        @ApiModelProperty("资源名称")
        private String name;

        @ApiModelProperty("原始文件名")
        private String fileName;
    }
}