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

import lombok.Getter;

/**
 * 资源管理业务响应
 */
@Getter
public enum ResourceManageResponseEnum {

    NAME_NOT_BLANK("A013001", "资源名称不能为空"),
    REMARK_NOT_BLANK("A013002", "备注不能为空"),
    FILE_NOT_NULL("A013003", "上传的视频文件不能为空"),
    FILE_SUFFIX_ERROR("A013004", "仅支持上传 MP4 文件"),
    FILE_SIZE_ERROR("A013005", "文件大小不能超过 250MB"),
    FILE_UPLOAD_FAILED("A013006", "文件上传失败"),
    RESOURCE_NOT_EXIST("A013007", "资源不存在"),
    RESOURCE_FILE_NOT_EXIST("A013008", "资源文件不存在"),
    PLAY_TOKEN_INVALID("A013009", "播放授权无效"),
    PLAY_TOKEN_EXPIRED("A013010", "播放授权已过期"),
    RANGE_INVALID("A013011", "视频请求范围非法"),
    DISK_SPACE_NOT_ENOUGH("A013012", "磁盘空间不足"),
    ID_NOT_BLANK("A013013", "资源id不能为空");

    private final String code;
    private final String message;

    ResourceManageResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}