refactor(api): 拆分 bgm/projects/tags 为目录结构(API层全面目录化收尾) (#954)

This commit is contained in:
2026-07-27 16:31:06 +08:00
parent cc4939827b
commit 95e1b2f63a
12 changed files with 155 additions and 103 deletions
+10
View File
@@ -0,0 +1,10 @@
/**
* 项目相关工具函数
*/
import type { BackendProjectResponse, ProjectItem } from "./types"
export const toProjectItem = (item: BackendProjectResponse): ProjectItem => ({
id: item.id,
name: item.name,
description: item.description,
})