ev
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { defineRequest } from '../common'
|
||||
import type { IAdventureInfo, ICharacterInfo, ISkillInfo } from './type'
|
||||
import type { IAdventureInfo, ICharacterInfo, IHelperInfo, ISkillInfo } from './type'
|
||||
|
||||
export default defineRequest((request) => {
|
||||
return {
|
||||
@@ -31,5 +31,10 @@ export default defineRequest((request) => {
|
||||
const res = await request.get(`/info/oath/${suitId}/${skillId}`, { params: { rarity, lv } })
|
||||
return res.data
|
||||
},
|
||||
async getHelperList(id: string) {
|
||||
const res = await request.get<IHelperInfo>(`/dnfhelper/${id}/list`)
|
||||
await new Promise((resolve) => setTimeout(resolve, 30000))
|
||||
return res.data
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
@@ -215,3 +215,16 @@ export interface Attribute {
|
||||
optionValue: Record<`value${string}`, string>
|
||||
detail: string
|
||||
}
|
||||
|
||||
export interface IHelperInfo {
|
||||
id: string
|
||||
avatar: string
|
||||
name: string
|
||||
roleList: {
|
||||
roleId: string
|
||||
roleName: string
|
||||
roleJob: string
|
||||
avatarLink: string
|
||||
fame: number
|
||||
}[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user