forked from nixcn/nixcn-cms
11 lines
252 B
TypeScript
11 lines
252 B
TypeScript
import { useMutation } from '@tanstack/react-query';
|
|
import { axiosClient } from '@/lib/axios';
|
|
|
|
export function useCheckin() {
|
|
return useMutation({
|
|
mutationFn: async () => {
|
|
return axiosClient.post<object>('/user/checkin');
|
|
},
|
|
});
|
|
}
|