角色管理

This commit is contained in:
zjl
2021-10-03 21:14:13 +08:00
parent 94d899dfc4
commit 58892dea40
28 changed files with 514 additions and 210 deletions
+9
View File
@@ -0,0 +1,9 @@
export default interface HitokotoModel {
_id: string
hitokoto: string
type: string
from: string
creator: string
created_at: Date
number: number
}
+35
View File
@@ -0,0 +1,35 @@
export interface MusicModel {
_id: string
name: string // 文件名
ext: string // 扩展名
md5?: string // md5哈希值
size: number // 文件大小
title?: string // 标题
album?: string // 唱片集
artist?: string // 艺术家
lib_id: string // 歌单ID
lyric_id: string // 歌词ID
}
export interface MusicLibModel {
_id: string
name: string // 歌单名称
path: string // 歌单文件路径
}
export interface MusicLyricModel {
_id?: string
cloud_id?: number
name?: string
lyric?: string
}
export interface MusicPlayerItem {
id: number
name: string
artist: string
album: string
url: string
cover: string
lrc: string | undefined
}
+9
View File
@@ -0,0 +1,9 @@
export default interface PhotoWallModel {
_id: string
name: string // 图片文件名
md5: string // 文件md5哈希值
thumbnail: string // 缩略图名称
width: number // 宽度
height: number // 高度
index: number // 序号
}
+17
View File
@@ -0,0 +1,17 @@
export interface SourceImageModel {
_id: string
mime: string // MIME类型
hash: string // 图片md5值
size: number // 图片大小
label: string[] // 图片标签
img: ArrayBuffer // 图片二进制数据
created_at: Date
}
/**
* 图片标签
*/
export interface ImageLabel {
name: string // 标签名称
color: string // 标签颜色
}