|
@@ -0,0 +1,29 @@
|
|
|
+package cn.iselab.mooctest.user.web.ctrl;
|
|
|
+
|
|
|
+import cn.iselab.mooctest.user.constants.UrlConstants;
|
|
|
+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.RequestParam;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 作用描述
|
|
|
+ * @Author: xuexb
|
|
|
+ * @CreateDate: 19-1-3$ 下午4:17$
|
|
|
+ */
|
|
|
+@Controller
|
|
|
+public class ThirdPartyLoginController extends BaseController {
|
|
|
+
|
|
|
+ @RequestMapping(value = UrlConstants.API + "github/login}", method = RequestMethod.GET)
|
|
|
+ public String loginByGithub(@RequestParam("code") String code){
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @RequestMapping(value = UrlConstants.API + "third/bind", method = RequestMethod.PUT)
|
|
|
+ public String bind(){
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|