|
|
@@ -5,10 +5,11 @@ import {
|
|
|
} from 'antd';
|
|
|
import { useQuery } from '@tanstack/react-query';
|
|
|
import dayjs from 'dayjs';
|
|
|
-import { userClient } from '@/client/api';
|
|
|
+import { roleClient, userClient } from '@/client/api';
|
|
|
import type { InferResponseType, InferRequestType } from 'hono/client';
|
|
|
|
|
|
type UserListResponse = InferResponseType<typeof userClient.$get, 200>;
|
|
|
+type RoleListResponse = InferResponseType<typeof roleClient.$get, 200>;
|
|
|
type UserDetailResponse = InferResponseType<typeof userClient[':id']['$get'], 200>;
|
|
|
type CreateUserRequest = InferRequestType<typeof userClient.$post>['json'];
|
|
|
type UpdateUserRequest = InferRequestType<typeof userClient[':id']['$put']>['json'];
|