package com.njzscloud.common.core.http.constant;

import cn.hutool.core.util.StrUtil;

/**
 * MIME
 */
public interface Mime {
    String FORM = "application/x-www-form-urlencoded";
    String MULTIPART_FORM = "multipart/form-data";
    String BINARY = "application/octet-stream";
    String JSON = "application/json";
    String X_NDJSON = "application/x-ndjson";
    String XML = "application/xml";
    String TXT = "text/plain";
    String HTML = "text/html";
    String CSS = "text/css";
    String GIF = "image/gif";
    String JPG = "image/jpeg";
    String PNG = "image/png";
    String SVG = "image/svg+xml";
    String WEBP = "image/webp";
    String PDF = "image/pdf";
    String PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
    String XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
    String DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
    String PPT = "application/vnd.ms-powerpoint";
    String XLS = "application/vnd.ms-excel";
    String DOC = "application/msword";
    String ZIP = "application/zip";
    String MP3 = "audio/mpeg";
    String MP4 = "video/mp4";


    static String u8Val(String mime) {
        return StrUtil.format("{};charset={}", mime, "UTF-8");
    }

}
