package com.bcxin.config;

/**
 * @author jianjun.wang
*wps开发平台配置
 * @version V1.0
 * @className WPSConfig
 * @packageName com.bcxin.config
 * @description wps开发平台配置
 * @data 2019-09-02 13:54
 **/
public final class WPSConfig {


	private WPSConfig() {
	}

//    public final static String APPID = "7bbde96c3cb84f40598935d7688d292a";
//    public final static String APPKEY = "f6aa3ff51f594ae572e02891dc865c53";

    /**
     * 生产appid appkey
     */
//    public final static String APPID = "f54b595bcbff421158f99b68406445c5";
//	public final static String APPKEY = "d450ec5618fa42dd49ebaadbfe7bb155";




    public final static String RESULT_CODE_KEY = "code";
    public final static String RESULT_MSG_KEY = "msg";
    public final static String BASE_ONLINE_URL = "https://wwo.wps.cn/office/";
    public final static String HEADER_TOKEN_KEY = "x-wps-weboffice-token";
    public final static String HEADER_FILE_ID_KEY = "x-weboffice-file-id";

	//TODO 这两个上线前都要改
	public static final String WPS_FILE_TEMP_FOLDER = "/opt/openoffice4/data/";
//	public static final String PSS_URL="http://114.116.164.42:8010/communicate/wps/savefile";


	/**
	 * 文件预览支持格式
	 */

	/**
	 * 表格文件
	 */
	public final static String WPS_PREVIEW_TYPE_EXCEL = "xls, xlt, et, xlsx, xltx, csv, xlsm, xltm";
	/**
	 * 文字文件
	 */
	public final static String WPS_PREVIEW_TYPE_WORD = "doc, dot, wps, wpt, docx, dotx, docm, dotm";
	/**
	 * 演示文件
	 */
	public final static String WPS_PREVIEW_TYPE_PPT = "ppt,pptx,pptm,ppsx,ppsm,pps,potx,potm,dpt,dps";


	/**
	 * 文件编辑支持格式
	 */
	/**
	 * 表格文件
	 */
	public final static String WPS_EDIT_TYPE_EXCEL = "xls, xlt, et, xlsx, xltx, csv, xlsm, xltm";
	/**
	 * 文字文件
	 */
	public final static String WPS_EDIT_TYPE_WORD = "doc, dotx，txt, dot, wps, wpt, docx, docm, dotm";
	/**
	 * 演示文件
	 */
	public final static String WPS_EDIT_TYPE_PPT = "ppt,pptx,pptm,ppsx,ppsm,pps,potx,potm,dpt,dps";

	public final static String PERMISSION_READ="read";//只读
	public final static String PERMISSION_WRITE="write";//可读可写

}
