提交 0ae690a1 编写于 作者: shuzheng5201314's avatar shuzheng5201314

删除登录注册逻辑

上级 e209735d
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.RequestMapping;
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 class SignController extends BaseController {
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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册