首页>代码>php+mysql开发WE密码管理系统>/public/lib/ueditor/1.4.3/jsp/src/com/baidu/ueditor/define/ActionMap.java
package com.baidu.ueditor.define;

import java.util.Map;
import java.util.HashMap;

/**
 * 定义请求action类型
 * @author hancong03@baidu.com
 *
 */
@SuppressWarnings("serial")
public final class ActionMap {

	public static final Map<String, Integer> mapping;
	// 获取配置请求
	public static final int CONFIG = 0;
	public static final int UPLOAD_IMAGE = 1;
	public static final int UPLOAD_SCRAWL = 2;
	public static final int UPLOAD_VIDEO = 3;
	public static final int UPLOAD_FILE = 4;
	public static final int CATCH_IMAGE = 5;
	public static final int LIST_FILE = 6;
	public static final int LIST_IMAGE = 7;
	
	static {
		mapping = new HashMap<String, Integer>(){{
			put( "config", ActionMap.CONFIG );
			put( "uploadimage", ActionMap.UPLOAD_IMAGE );
			put( "uploadscrawl", ActionMap.UPLOAD_SCRAWL );
			put( "uploadvideo", ActionMap.UPLOAD_VIDEO );
			put( "uploadfile", ActionMap.UPLOAD_FILE );
			put( "catchimage", ActionMap.CATCH_IMAGE );
			put( "listfile", ActionMap.LIST_FILE );
			put( "listimage", ActionMap.LIST_IMAGE );
		}};
	}
	
	public static int getType ( String key ) {
		return ActionMap.mapping.get( key );
	}
	
}
最近下载更多
dhcpsl  LV2 4月10日
uid0901  LV2 3月14日
403451  LV1 3月6日
yinxunyu12138  LV11 2023年12月9日
南下daSDH  LV1 2023年10月31日
fdgdgkjn  LV4 2023年10月13日
gann2015  LV24 2023年10月7日
helilin001  LV1 2023年9月29日
9323249323  LV13 2023年9月18日
xiaogege123  LV2 2023年9月6日
最近浏览更多
caibos  LV4 4月17日
dhcpsl  LV2 4月10日
烟橙沐雨  LV1 3月21日
uid0901  LV2 3月13日
403451  LV1 3月6日
WBelong  LV7 2023年12月25日
逍遥2020  LV11 2023年12月19日
yinxunyu12138  LV11 2023年12月9日
1waxzsq212345  LV2 2023年11月22日
赤足的个人论坛  LV1 2023年11月13日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友