|
|
@@ -3,7 +3,7 @@ import { hc } from 'hono/client'
|
|
|
import type {
|
|
|
AuthRoutes, UserRoutes, RoleRoutes,
|
|
|
ClassroomDataRoutes, SubmissionRecordsRoutes,
|
|
|
- StockDataRoutes, StockXunlianCodesRoutes, DateNotesRoutes
|
|
|
+ StockDataRoutes, StockXunlianCodesRoutes, DateNotesRoutes, AliyunRoutes
|
|
|
} from '@/server/api';
|
|
|
|
|
|
// 创建 axios 适配器
|
|
|
@@ -92,3 +92,7 @@ export const stockXunlianCodesClient = hc<StockXunlianCodesRoutes>('/', {
|
|
|
export const dateNotesClient = hc<DateNotesRoutes>('/', {
|
|
|
fetch: axiosFetch,
|
|
|
}).api.v1['date-notes'];
|
|
|
+
|
|
|
+export const aliyunClient = hc<AliyunRoutes>('/', {
|
|
|
+ fetch: axiosFetch,
|
|
|
+}).api.v1.aliyun;
|