// Path: web-graphc/src/main/java/com/fksm/web/service/common/DemoService.java
// public interface DemoService {
//     /**
//      * getCallers
//      * @return
//      * @throws Exception
//      */
//     public List<HashMap> getCallers(Long startTime, Long endTime, String server_ip, String service_id) throws Exception;
// }
// 
// Path: web-graphc/src/main/java/com/fksm/web/service/global/dto/response/ResponseCode.java
// public class ResponseCode {
// 	
// 	/**
// 	 * 通用编码：参数缺失 .
// 	 */
// 	public static final String COMMON_PARAMETER_MISSING = "CN001";
// 	
// 	/**
// 	 * 需要重新登录 .
// 	 */
// 	public static final String USER_NEED_LOGIN = "UR001";
// 	
// 	/**
// 	 * 用户名/密码错误 .
// 	 */
// 	public static final String USER_NORP_ERROR = "UR002";
// 	
// 	/**
// 	 * 户登录错误 .
// 	 */
// 	public static final String USER_LOGIN_ERROR = "UR003";
// 	
// 	/**
// 	 * 用户认证状态失效 .
// 	 */
// 	public static final String AUTH_USER_STATUS_ERROR = "AH002";
// 
// 	/**
// 	 * 操作成功 .
// 	 */
// 	public static final String OPERATE_SUCCESS = "200";
// 
// 	/**
// 	 * 操作成功 .
// 	 */
// 	public static final String OPERATE_NO_DATA = "NDATA";
// //====================================================================================================================================
// 
// 	public static Map<String, String> CODE_MAP = new HashMap<String,String>();
// 	
//     // 用作自动生成前端 scripts/common/messages_zh-cn.js 文件
// 	static{
// 		CODE_MAP.put(COMMON_PARAMETER_MISSING, "参数缺失");
// 		CODE_MAP.put(USER_NEED_LOGIN,"会话已结束,需要重新登录");
// 		CODE_MAP.put(USER_NORP_ERROR, "用户名或者密码错误");
// 		CODE_MAP.put(USER_LOGIN_ERROR, "用户登录错误");
// 		CODE_MAP.put(AUTH_USER_STATUS_ERROR, "用户认证状态失效");
// 		CODE_MAP.put(OPERATE_SUCCESS, "操作成功！");
// 	}
// }
// 
// Path: web-graphc/src/main/java/com/fksm/web/service/global/dto/response/ResponseDto.java
// public class ResponseDto<T> implements Serializable{
// 	private static final long serialVersionUID = -7976564531903764830L;
// 	
// 	/**
// 	 * 操作结果编码
// 	 */
// 	private String code = ResponseCode.OPERATE_SUCCESS;
// 	
// 	/**
// 	 * 响应是否正常.
// 	 */
// 	private boolean responseSuccess = true;
// 	
// 	/**
// 	 * 响应数据.
// 	 */
// 	private T data;
// 	
// 	public ResponseDto(){
// 		
// 	}
// 	
// 	public ResponseDto(boolean responseSuccess){
// 		this.responseSuccess = responseSuccess;
// 	}
// 	
// 	public ResponseDto(String code){
// 		this.code = code;
// 	}
// 	
// 	public ResponseDto(String code,boolean responseSuccess){
// 		this.code = code;
// 		this.responseSuccess = responseSuccess;
// 	}
// 	
// 	public ResponseDto(String code,boolean responseSuccess,T data){
// 		this.code = code;
// 		this.responseSuccess = responseSuccess;
// 		this.data = data;
// 	}
// 	
// 
// 	public String getCode() {
// 		return code;
// 	}
// 
// 	public void setCode(String code) {
// 		this.code = code;
// 	}
// 
// 	public boolean isResponseSuccess() {
// 		return responseSuccess;
// 	}
// 
// 	public void setResponseSuccess(boolean responseSuccess) {
// 		this.responseSuccess = responseSuccess;
// 	}
// 
// 	public T getData() {
// 		return data;
// 	}
// 
// 	public void setData(T data) {
// 		this.data = data;
// 	}
// }


import com.fksm.web.service.common.DemoService;
import com.fksm.web.service.global.dto.response.ResponseCode;
import com.fksm.web.service.global.dto.response.ResponseDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
package com.fksm.web.controller;



/**
 * Created by Administrator on 2016/5/7.
 */

@Controller
@RequestMapping("/api/demo")
public class DemoController {

    private static Logger logger = LoggerFactory.getLogger(DemoController.class);

    @Resource
// Path: web-graphc/src/main/java/com/fksm/web/service/common/DemoService.java
// public interface DemoService {
//     /**
//      * getCallers
//      * @return
//      * @throws Exception
//      */
//     public List<HashMap> getCallers(Long startTime, Long endTime, String server_ip, String service_id) throws Exception;
// }
// 
// Path: web-graphc/src/main/java/com/fksm/web/service/global/dto/response/ResponseCode.java
// public class ResponseCode {
// 	
// 	/**
// 	 * 通用编码：参数缺失 .
// 	 */
// 	public static final String COMMON_PARAMETER_MISSING = "CN001";
// 	
// 	/**
// 	 * 需要重新登录 .
// 	 */
// 	public static final String USER_NEED_LOGIN = "UR001";
// 	
// 	/**
// 	 * 用户名/密码错误 .
// 	 */
// 	public static final String USER_NORP_ERROR = "UR002";
// 	
// 	/**
// 	 * 户登录错误 .
// 	 */
// 	public static final String USER_LOGIN_ERROR = "UR003";
// 	
// 	/**
// 	 * 用户认证状态失效 .
// 	 */
// 	public static final String AUTH_USER_STATUS_ERROR = "AH002";
// 
// 	/**
// 	 * 操作成功 .
// 	 */
// 	public static final String OPERATE_SUCCESS = "200";
// 
// 	/**
// 	 * 操作成功 .
// 	 */
// 	public static final String OPERATE_NO_DATA = "NDATA";
// //====================================================================================================================================
// 
// 	public static Map<String, String> CODE_MAP = new HashMap<String,String>();
// 	
//     // 用作自动生成前端 scripts/common/messages_zh-cn.js 文件
// 	static{
// 		CODE_MAP.put(COMMON_PARAMETER_MISSING, "参数缺失");
// 		CODE_MAP.put(USER_NEED_LOGIN,"会话已结束,需要重新登录");
// 		CODE_MAP.put(USER_NORP_ERROR, "用户名或者密码错误");
// 		CODE_MAP.put(USER_LOGIN_ERROR, "用户登录错误");
// 		CODE_MAP.put(AUTH_USER_STATUS_ERROR, "用户认证状态失效");
// 		CODE_MAP.put(OPERATE_SUCCESS, "操作成功！");
// 	}
// }
// 
// Path: web-graphc/src/main/java/com/fksm/web/service/global/dto/response/ResponseDto.java
// public class ResponseDto<T> implements Serializable{
// 	private static final long serialVersionUID = -7976564531903764830L;
// 	
// 	/**
// 	 * 操作结果编码
// 	 */
// 	private String code = ResponseCode.OPERATE_SUCCESS;
// 	
// 	/**
// 	 * 响应是否正常.
// 	 */
// 	private boolean responseSuccess = true;
// 	
// 	/**
// 	 * 响应数据.
// 	 */
// 	private T data;
// 	
// 	public ResponseDto(){
// 		
// 	}
// 	
// 	public ResponseDto(boolean responseSuccess){
// 		this.responseSuccess = responseSuccess;
// 	}
// 	
// 	public ResponseDto(String code){
// 		this.code = code;
// 	}
// 	
// 	public ResponseDto(String code,boolean responseSuccess){
// 		this.code = code;
// 		this.responseSuccess = responseSuccess;
// 	}
// 	
// 	public ResponseDto(String code,boolean responseSuccess,T data){
// 		this.code = code;
// 		this.responseSuccess = responseSuccess;
// 		this.data = data;
// 	}
// 	
// 
// 	public String getCode() {
// 		return code;
// 	}
// 
// 	public void setCode(String code) {
// 		this.code = code;
// 	}
// 
// 	public boolean isResponseSuccess() {
// 		return responseSuccess;
// 	}
// 
// 	public void setResponseSuccess(boolean responseSuccess) {
// 		this.responseSuccess = responseSuccess;
// 	}
// 
// 	public T getData() {
// 		return data;
// 	}
// 
// 	public void setData(T data) {
// 		this.data = data;
// 	}
// }


// Path: web-graphc/src/main/java/com/fksm/web/controller/DemoController.java
import com.fksm.web.service.common.DemoService;
import com.fksm.web.service.global.dto.response.ResponseCode;
import com.fksm.web.service.global.dto.response.ResponseDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

package com.fksm.web.controller;



/**
 * Created by Administrator on 2016/5/7.
 */

@Controller
@RequestMapping("/api/demo")
public class DemoController {

    private static Logger logger = LoggerFactory.getLogger(DemoController.class);

    @Resource
    private DemoService demoService;