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 );
	}
	
}
最近下载更多
testuser1234567  LV24 2022年7月21日
1900110734  LV6 2021年4月14日
zjjhzjb  LV14 2021年3月27日
1587767925  LV7 2020年12月24日
qq331974234  LV3 2020年12月17日
123456nty  LV37 2020年12月15日
sunlea  LV17 2020年12月6日
iven_muyi  LV8 2020年10月12日
起名字是个麻烦事  LV12 2020年7月7日
1229290378  LV8 2020年7月6日
最近浏览更多
wddq123 4月3日
暂无贡献等级
xuweiwowzy  LV5 1月14日
WBelong  LV7 2023年12月26日
矿泉水  LV30 2023年8月10日
shaoqi 2023年7月26日
暂无贡献等级
lzr369258147  LV1 2023年6月9日
1379585889  LV11 2023年6月7日
yueeeii 2023年4月21日
暂无贡献等级
yuanshun  LV6 2023年4月4日
uni-code_0123  LV1 2023年3月23日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友