MCPcopy Create free account
hub / github.com/diyhi/bbs / BaseInfoController

Class BaseInfoController

src/main/java/cms/controller/frontend/BaseInfoController.java:18–47  ·  view source on GitHub ↗

前台基本信息控制器

Source from the content-addressed store, hash-verified

16 * 前台基本信息控制器
17 */
18@RestController
19public class BaseInfoController {
20
21 @Resource
22 BaseInfoClientService baseInfoService;
23
24 /**
25 * 查询基本信息
26 * @param request 请求信息
27 * @return
28 */
29 @DynamicRouteTarget(route = DynamicRouteEnum.DEFAULT_1150400)
30 @RequestMapping(value="/baseInfo",method= RequestMethod.GET)
31 public Map<String,Object> baseInfo(HttpServletRequest request) {
32 return baseInfoService.getBaseInfo(request);
33 }
34
35 /**
36 * 查询默认消息
37 * 由cms.config.PageHandlerInterceptor.java跳转到本方法
38 * @param response 响应信息
39 * @return
40 */
41 @DynamicRouteTarget(route = DynamicRouteEnum.DEFAULT_1150450)
42 @RequestMapping(value="/message",method= RequestMethod.GET)
43 public String message(HttpServletResponse response) {
44 return baseInfoService.getMessage(response);
45 }
46
47}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…