-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
tang-admin/src/main/java/com/tang/admin/controller/IndexController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.tang.admin.controller; | ||
|
||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import com.tang.commons.utils.AjaxResult; | ||
import com.tang.system.service.log.SysLogLoginService; | ||
|
||
/** | ||
* 首页逻辑控制层 | ||
* | ||
* @author Tang | ||
*/ | ||
@RestController | ||
@RequestMapping("/index") | ||
public class IndexController { | ||
|
||
private final SysLogLoginService logLoginService; | ||
|
||
public IndexController(SysLogLoginService logLoginService) { | ||
this.logLoginService = logLoginService; | ||
} | ||
|
||
/** | ||
* 用户访问量 | ||
* | ||
* @return 用户访问量 | ||
*/ | ||
@GetMapping("/user-visit") | ||
public AjaxResult userVisit() { | ||
var userVisit = logLoginService.selectUserVisit(); | ||
return AjaxResult.success(userVisit); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters