From 0ae690a15bdae6d2e1f14e6d46088deba86ebc26 Mon Sep 17 00:00:00 2001 From: shuzheng <469741414@qq.com> Date: Fri, 9 Jun 2017 23:31:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=99=BB=E5=BD=95=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ucenter/web/controller/SignController.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/zheng-ucenter/zheng-ucenter-web/src/main/java/com/zheng/ucenter/web/controller/SignController.java b/zheng-ucenter/zheng-ucenter-web/src/main/java/com/zheng/ucenter/web/controller/SignController.java index 28d95d676..3d58242a1 100644 --- a/zheng-ucenter/zheng-ucenter-web/src/main/java/com/zheng/ucenter/web/controller/SignController.java +++ b/zheng-ucenter/zheng-ucenter-web/src/main/java/com/zheng/ucenter/web/controller/SignController.java @@ -1,6 +1,8 @@ package com.zheng.ucenter.web.controller; import com.zheng.common.base.BaseController; +import com.zheng.ucenter.common.constant.UcenterResult; +import com.zheng.ucenter.common.constant.UcenterResultConstant; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; @@ -9,6 +11,8 @@ import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; +import javax.servlet.http.HttpServletRequest; + /** * 注册控制器 * Created by shuzheng on 2017/5/2. @@ -24,12 +28,26 @@ public String signup(Model model) { return thymeleaf("/reg"); } + @RequestMapping(value = "/signup", method = RequestMethod.POST) + @ResponseBody + public Object signup(HttpServletRequest request) { + + return new UcenterResult(UcenterResultConstant.SUCCESS, ""); + } + @RequestMapping(value = "/signin", method = RequestMethod.GET) public String signin(Model model) { return thymeleaf("/login"); } + @RequestMapping(value = "/signin", method = RequestMethod.POST) + @ResponseBody + public Object signin(HttpServletRequest request) { + + return new UcenterResult(UcenterResultConstant.SUCCESS, ""); + } + @RequestMapping(value = "/signout", method = RequestMethod.GET) @ResponseBody public String index(Model model) {