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); }