Browse Source

misc: land and out api(#master)

master
OhYee 2 years ago
parent
commit
0c73c14c07
Signed by: OhYee
GPG Key ID: 5A9E1F63ED274FBB
  1. 17
      extensions/queue/api.tsx

17
extensions/queue/api.tsx

@ -56,3 +56,20 @@ export const finish = async (id: string, callback?: RequestCallback<Blotter.APIR @@ -56,3 +56,20 @@ export const finish = async (id: string, callback?: RequestCallback<Blotter.APIR
export const insert = async (id: string, callback?: RequestCallback<Blotter.APIResponse>) => {
return await request('get', `/api/extensions/queue/insert`, { id }, callback);
};
export const land = async (
queue_id: string,
member_id: string,
callback?: RequestCallback<Blotter.APIResponse>,
) => {
return await request('get', `/api/extensions/queue/land`, { queue_id, member_id }, callback);
};
export const out = async (
queue_id: string,
member_id: string,
callback?: RequestCallback<Blotter.APIResponse>,
) => {
return await request('get', `/api/extensions/queue/out`, { queue_id, member_id }, callback);
};

Loading…
Cancel
Save