权限开发,页面交互开发,增加阅读数

This commit is contained in:
暮光:城中城
2019-06-05 22:53:24 +08:00
parent 96d081fdae
commit 605c97347d
34 changed files with 537 additions and 5282 deletions

View File

@@ -1,20 +0,0 @@
package com.zyplayer.doc.manage.web.generator;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* </p>
*
* @author 暮光:城中城
* @since 2018-12-05
*/
@RestController
@RequestMapping("/auth-info")
public class GeneratorAuthInfoController {
}

View File

@@ -1,20 +0,0 @@
package com.zyplayer.doc.manage.web.generator;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* </p>
*
* @author 暮光:城中城
* @since 2018-12-05
*/
@RestController
@RequestMapping("/user-auth")
public class GeneratorUserAuthController {
}

View File

@@ -1,20 +0,0 @@
package com.zyplayer.doc.manage.web.generator;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* </p>
*
* @author 暮光:城中城
* @since 2018-12-05
*/
@RestController
@RequestMapping("/user-info")
public class GeneratorUserInfoController {
}

View File

@@ -1,20 +0,0 @@
package com.zyplayer.doc.manage.web.generator;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* </p>
*
* @author 暮光:城中城
* @since 2018-12-05
*/
@RestController
@RequestMapping("/zyplayer-storage")
public class GeneratorZyplayerStorageController {
}

View File

@@ -0,0 +1,34 @@
package com.zyplayer.doc.manage.web.manage;
import com.zyplayer.doc.data.aspect.AuthMan;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;
/**
* 使用路劲的方式访问页面
*/
@AuthMan
@Controller
public class DocSystemController {
@GetMapping("/doc-wiki")
public ModelAndView wiki() {
return new ModelAndView("/doc-wiki-v2.html");
}
@GetMapping("/doc-db")
public ModelAndView db() {
return new ModelAndView("/doc-db.html");
}
@GetMapping("/doc-swagger")
public ModelAndView swagger() {
return new ModelAndView("/document.html");
}
@GetMapping("/doc-dubbo")
public ModelAndView dubbo() {
return new ModelAndView("/doc-dubbo.html");
}
}

View File

@@ -72,6 +72,11 @@ public class LoginController {
cookie.setDomain("zyplayer.com");
cookie.setMaxAge(60 * 60 * 24);
response.addCookie(cookie);
// 再搞一份当前路劲的cookie
cookie = new Cookie("accessToken", accessToken);
cookie.setPath("/");
cookie.setMaxAge(60 * 60 * 24);
response.addCookie(cookie);
return DocResponseJson.ok();
}