fix: api model

This commit is contained in:
Innei
2024-02-14 22:13:55 +08:00
parent e353431499
commit c639c57f48

View File

@@ -1,7 +1,7 @@
import type { IRequestAdapter } from '~/interfaces/adapter' import type { IRequestAdapter } from '~/interfaces/adapter'
import type { IController } from '~/interfaces/controller' import type { IController } from '~/interfaces/controller'
import type { IRequestHandler } from '~/interfaces/request' import type { IRequestHandler } from '~/interfaces/request'
import type { ActivityPresence } from '~/models/activity' import type { ActivityPresence, RoomsData } from '~/models/activity'
import type { HTTPClient } from '../core' import type { HTTPClient } from '../core'
import { autoBind } from '~/utils/auto-bind' import { autoBind } from '~/utils/auto-bind'
@@ -84,6 +84,6 @@ export class ActivityController<ResponseWrapper> implements IController {
} }
async getRoomsInfo() { async getRoomsInfo() {
return this.proxy.rooms.get<{}>() return this.proxy.rooms.get<RoomsData>()
} }
} }