首页>代码>Spring MVC + Mybatis+Spring实现的个人博客系统>/blog/src/com/baidu/ueditor/define/ActionMap.java
package com.baidu.ueditor.define;

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

/**
 * 定义请求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 );
	}
	
}
最近下载更多
luqi40281518  LV7 2023年10月7日
zxc131313  LV12 2022年12月9日
907552380  LV13 2022年6月6日
hezienjoy  LV3 2022年6月4日
Lmfbaby  LV9 2022年5月29日
T1247965890  LV8 2022年3月9日
20190615  LV7 2022年3月4日
waityou2000317  LV4 2022年2月17日
Dderde  LV8 2021年11月19日
lvhaowen  LV20 2021年11月8日
最近浏览更多
g815835618  LV2 4月12日
阿萨大大123213  LV2 2月24日
yxzzxy  LV3 2月18日
iiiiiiixiiiiii  LV1 2023年12月28日
pangzhihui  LV12 2023年12月23日
fff2003  LV6 2023年11月18日
随手一个用户名  LV1 2023年10月13日
luqi40281518  LV7 2023年10月7日
2549484213 2023年9月23日
暂无贡献等级
czdczd  LV3 2023年9月9日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友