This commit is contained in:
2025-03-10 15:10:03 +08:00
parent cb388ce6b3
commit 527dad1dc7
17763 changed files with 13421 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
import { defineRequest } from '../common'
import type { IAdventureInfo } from './type'
export default defineRequest((request) => {
return {
adventures() {
return request.get<IAdventureInfo[]>('/adventure').then((res) => res.data)
},
}
})
+34
View File
@@ -0,0 +1,34 @@
export interface IAdventureInfo {
title: string
name: string
children: IAlterInfo[]
}
export interface ITools {
name: string
tooltips: string
link: string
end?: Date
target: '_blank' | '_self'
}
export interface IMonster {
id: number
name: string
}
export interface IAlterOption {
name: string
title: string
class?: string
}
export interface IAlterInfo {
name: string
url?: string
title: string
default_value: string
options?: IAlterOption[]
open?: boolean
comment?: string
}