This commit is contained in:
Github_lizhw 2026-03-15 00:08:56 +08:00
parent 9206f44e10
commit b5c6e62d92
2 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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<Long, List<H5ComponentVO>> getPage2(
public Map<Long, List<H5ComponentVO>> getPageByTopComponents(
@Parameter(description = "每页大小", required = true) @RequestParam Integer pageSize,
@Parameter(description = "分类 IDS", required = true) @RequestParam List<Long> categoryIds) {
return h5ComponentService.getPageByTopComponents(pageSize, categoryIds);
}