2023-08-11 21:39:58 +08:00
|
|
|
import { gql } from '@apollo/client';
|
|
|
|
|
|
|
|
export interface GetServerTimeResponse {
|
2023-09-14 21:44:04 +08:00
|
|
|
// eslint-disable-next-line camelcase
|
|
|
|
current_time: Array<{ currentTimestamp: Date }>;
|
2023-08-11 21:39:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export const GET_SERVER_TIME = gql`
|
|
|
|
query getServerTime {
|
|
|
|
current_time {
|
|
|
|
currentTimestamp
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
GET_SERVER_TIME,
|
|
|
|
};
|