mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 10:57:13 +08:00 
			
		
		
		
	feat: 完善仪表盘热门模块区块内容
1.完善仪表盘热门模块区块内容 2.sys_log 表增加 module 字段索引 3.优化总计区块图标
This commit is contained in:
		| @@ -30,6 +30,7 @@ import org.springframework.web.bind.annotation.RestController; | ||||
|  | ||||
| import top.charles7c.cnadmin.common.model.vo.R; | ||||
| import top.charles7c.cnadmin.monitor.annotation.Log; | ||||
| import top.charles7c.cnadmin.monitor.model.vo.DashboardPopularModuleVO; | ||||
| import top.charles7c.cnadmin.monitor.model.vo.DashboardTotalVO; | ||||
| import top.charles7c.cnadmin.monitor.service.DashboardService; | ||||
| import top.charles7c.cnadmin.system.model.vo.DashboardAnnouncementVO; | ||||
| @@ -56,6 +57,12 @@ public class DashboardController { | ||||
|         return R.ok(dashboardService.getTotal()); | ||||
|     } | ||||
|  | ||||
|     @Operation(summary = "查询热门模块列表", description = "查询热门模块列表") | ||||
|     @GetMapping("/popular/module") | ||||
|     public R<List<DashboardPopularModuleVO>> listPopularModule() { | ||||
|         return R.ok(dashboardService.listPopularModule()); | ||||
|     } | ||||
|  | ||||
|     @Operation(summary = "查询公告列表", description = "查询公告列表") | ||||
|     @GetMapping("/announcement") | ||||
|     public R<List<DashboardAnnouncementVO>> listAnnouncement() { | ||||
|   | ||||
| @@ -133,6 +133,7 @@ CREATE TABLE IF NOT EXISTS `sys_log` ( | ||||
|     `create_user` bigint(20) UNSIGNED DEFAULT NULL COMMENT '创建人', | ||||
|     `create_time` datetime NOT NULL COMMENT '创建时间', | ||||
|     PRIMARY KEY (`id`) USING BTREE, | ||||
|     INDEX `idx_module`(`module`) USING BTREE, | ||||
|     INDEX `idx_client_ip`(`client_ip`) USING BTREE, | ||||
|     INDEX `idx_create_time`(`create_time`) USING BTREE | ||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='系统日志表'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user