package com.jeeplus.modules.API.userinfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import com.jeeplus.common.json.AjaxJson;
import com.jeeplus.common.web.BaseController;
import com.jeeplus.modules.sys.dao.UserDao;
/**
 * 信息管理Controller
 * @author zmy
 * @version 2017-05-03
 */

@Controller
@RequestMapping(value = "${frontPath}/userInfo/manageInfo")
public class  ManageInfoController extends BaseController{
	@Autowired
	private UserDao userDao;
	
	
	@ResponseBody
	@RequestMapping(value = "getUserInfoManageInfoMap", method=RequestMethod.GET)
	public AjaxJson manageInfo (String id,String officeId,HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes)
	{ 
		AjaxJson j=new AjaxJson();		
		j.put("data",userDao.get(id));		
		return j;
	}
}
