feat: ticket system base implementation
This commit is contained in:
10
src/app/(modules)/ticket/queries/ticketKeys.ts
Normal file
10
src/app/(modules)/ticket/queries/ticketKeys.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { TicketListParams } from '@/types';
|
||||
|
||||
export const ticketKeys = {
|
||||
all: ['tickets'] as const,
|
||||
lists: () => [...ticketKeys.all, 'list'] as const,
|
||||
list: (params: TicketListParams) => [...ticketKeys.lists(), params] as const,
|
||||
details: () => [...ticketKeys.all, 'detail'] as const,
|
||||
detail: (ticketId: string) => [...ticketKeys.details(), ticketId] as const,
|
||||
assignableUsers: () => [...ticketKeys.all, 'assignable-users'] as const,
|
||||
};
|
||||
Reference in New Issue
Block a user