feat: 新增特藏书架与词云热词展示
- 首页快捷入口改为 3D 悬浮书架,拉取特藏推荐并支持点击进入详情 - 热词页改用 wordcloud 渲染词云,支持悬停放大与点击检索 - 导航栏改为半透明绿叠加实景背景,统一首页与内页观感 - 版本资源表新增 is_special 字段及示例数据
This commit is contained in:
@@ -21,13 +21,22 @@ export interface VersionResource {
|
||||
sourceLibrary?: string
|
||||
sourceLibraryAddr?: string
|
||||
fulltextUrl?: string
|
||||
otherTitle?: string
|
||||
author?: string
|
||||
responsibility?: string
|
||||
publisher?: string
|
||||
publishPlace?: string
|
||||
publishDate?: string
|
||||
edition?: string
|
||||
isbn?: string
|
||||
governStatus?: string
|
||||
mergedToId?: number
|
||||
abnormalFlag?: number
|
||||
sensitiveFlag?: number
|
||||
/** 是否特藏版本:0否 1是 */
|
||||
isSpecial?: number
|
||||
/** 附注 */
|
||||
note?: string
|
||||
}
|
||||
|
||||
export interface ResourceQuery {
|
||||
@@ -61,3 +70,8 @@ export function saveResource(data: VersionResource) {
|
||||
export function removeResource(id: number) {
|
||||
return request.delete<never, void>(`/resource/${id}`)
|
||||
}
|
||||
|
||||
/** 设置是否特藏版本(0否 1是) */
|
||||
export function updateSpecialFlag(id: number, isSpecial: number) {
|
||||
return request.put<never, void>(`/resource/${id}/special`, null, { params: { isSpecial } })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user