feat: add shortcut detail page

This commit is contained in:
Steven
2023-08-01 23:19:17 +08:00
parent 23d84299e4
commit 74200f468c
6 changed files with 296 additions and 49 deletions

View File

@@ -55,6 +55,10 @@ export function getShortcutList(shortcutFind?: ShortcutFind) {
return axios.get<Shortcut[]>(`/api/v1/shortcut?${queryList.join("&")}`);
}
export function getShortcutById(id: number) {
return axios.get<Shortcut>(`/api/v1/shortcut/${id}`);
}
export function createShortcut(shortcutCreate: ShortcutCreate) {
return axios.post<Shortcut>("/api/v1/shortcut", shortcutCreate);
}