This commit is contained in:
2025-06-11 16:29:10 +08:00
parent c5f3a23d08
commit d416931bfc
12 changed files with 379 additions and 58 deletions
+5 -1
View File
@@ -1,5 +1,5 @@
import { defineRequest } from '../common'
import type { IAdventureInfo, ICharacterInfo } from './type'
import type { IAdventureInfo, ICharacterInfo, ISkillInfo } from './type'
export default defineRequest((request) => {
return {
@@ -15,5 +15,9 @@ export default defineRequest((request) => {
const res = await request.get<ICharacterInfo>('/character')
return res.data
},
async skillDetail(skillId: string, level: number) {
const res = await request.get<ISkillInfo>(`/skill/${skillId}/${level}`)
return res.data
}
}
})