From b5c6e62d920d912ec537942945f07d8b84a1db64 Mon Sep 17 00:00:00 2001 From: Github_lizhw <171332584@qq.com> Date: Sun, 15 Mar 2026 00:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-site/ruoyi-h5/doc/init.sql | 4 ++-- .../java/com/luban/api/controller/H5ComponentController.java | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ruoyi-site/ruoyi-h5/doc/init.sql b/ruoyi-site/ruoyi-h5/doc/init.sql index b35611d38..ae4a7c7d1 100644 --- a/ruoyi-site/ruoyi-h5/doc/init.sql +++ b/ruoyi-site/ruoyi-h5/doc/init.sql @@ -48,8 +48,8 @@ create table h5_project create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间戳', update_time datetime null on update CURRENT_TIMESTAMP comment '更新时间戳', deleted tinyint(1) default 0 not null comment '是否删除', - created_by bigint default 0 not null comment '创建人', - td bigint default -1 null comment '租户id,-1表示无租户的概念' + created_by bigint not null comment '创建人', + td bigint not null comment '租户id,-1表示无租户的概念' ) comment 'H5项目表' charset = utf8mb4; diff --git a/ruoyi-site/ruoyi-h5/src/main/java/com/luban/api/controller/H5ComponentController.java b/ruoyi-site/ruoyi-h5/src/main/java/com/luban/api/controller/H5ComponentController.java index 002826372..8e6dcee06 100644 --- a/ruoyi-site/ruoyi-h5/src/main/java/com/luban/api/controller/H5ComponentController.java +++ b/ruoyi-site/ruoyi-h5/src/main/java/com/luban/api/controller/H5ComponentController.java @@ -52,12 +52,11 @@ public class H5ComponentController { return h5ComponentService.getPage(page, pageSize, type, keyword, categoryId, tagId); } - @Operation(summary = "查询指定分类下排行前 6 的组件") + @Operation(summary = "查询指定分类下排行前几的组件") @GetMapping("/top") - public Map> getPage2( + public Map> getPageByTopComponents( @Parameter(description = "每页大小", required = true) @RequestParam Integer pageSize, @Parameter(description = "分类 IDS", required = true) @RequestParam List categoryIds) { - return h5ComponentService.getPageByTopComponents(pageSize, categoryIds); }