mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +08:00
优化
This commit is contained in:
parent
9206f44e10
commit
b5c6e62d92
@ -48,8 +48,8 @@ create table h5_project
|
|||||||
create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间戳',
|
create_time datetime default CURRENT_TIMESTAMP not null comment '创建时间戳',
|
||||||
update_time datetime null on update CURRENT_TIMESTAMP comment '更新时间戳',
|
update_time datetime null on update CURRENT_TIMESTAMP comment '更新时间戳',
|
||||||
deleted tinyint(1) default 0 not null comment '是否删除',
|
deleted tinyint(1) default 0 not null comment '是否删除',
|
||||||
created_by bigint default 0 not null comment '创建人',
|
created_by bigint not null comment '创建人',
|
||||||
td bigint default -1 null comment '租户id,-1表示无租户的概念'
|
td bigint not null comment '租户id,-1表示无租户的概念'
|
||||||
)
|
)
|
||||||
comment 'H5项目表' charset = utf8mb4;
|
comment 'H5项目表' charset = utf8mb4;
|
||||||
|
|
||||||
|
|||||||
@ -52,12 +52,11 @@ public class H5ComponentController {
|
|||||||
return h5ComponentService.getPage(page, pageSize, type, keyword, categoryId, tagId);
|
return h5ComponentService.getPage(page, pageSize, type, keyword, categoryId, tagId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "查询指定分类下排行前 6 的组件")
|
@Operation(summary = "查询指定分类下排行前几的组件")
|
||||||
@GetMapping("/top")
|
@GetMapping("/top")
|
||||||
public Map<Long, List<H5ComponentVO>> getPage2(
|
public Map<Long, List<H5ComponentVO>> getPageByTopComponents(
|
||||||
@Parameter(description = "每页大小", required = true) @RequestParam Integer pageSize,
|
@Parameter(description = "每页大小", required = true) @RequestParam Integer pageSize,
|
||||||
@Parameter(description = "分类 IDS", required = true) @RequestParam List<Long> categoryIds) {
|
@Parameter(description = "分类 IDS", required = true) @RequestParam List<Long> categoryIds) {
|
||||||
|
|
||||||
return h5ComponentService.getPageByTopComponents(pageSize, categoryIds);
|
return h5ComponentService.getPageByTopComponents(pageSize, categoryIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user