package com.bcxin.ins.coninsweb.inf.controller;

import com.bcxin.ins.rest.UserSupportUtil;
import com.bcxin.ins.service.inf.InformAPIService;
import com.bcxin.ins.core.base.web.BaseController;
import com.bcxin.ins.core.util.CTLUtil;
import com.bcxin.ins.spring.annotation.OperationLog;
import com.bcxin.ins.vo.ClientUserVo;
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.ResponseBody;

import javax.servlet.http.HttpServletResponse;


/**
 * 前台公告提示
 * @author zxf
 *
 */
@Controller
public class InformController extends BaseController {
	@Autowired
	private InformAPIService informAPIService;

	@RequestMapping("/inform/query")
	@OperationLog(source = OperationLog.SOURCETYPE.FRONT,title ="【数据请求】公告信息查询")
	public @ResponseBody Object query(HttpServletResponse resp) {
		ClientUserVo userdetail = UserSupportUtil.getSessionUser();
		CTLUtil.out(informAPIService.queryNowTime(),resp);
		return null;
	}
}
