chore: update list shortcut api

This commit is contained in:
Steven
2023-07-04 21:22:40 +08:00
parent 1084381bbf
commit f0334d5755
3 changed files with 1 additions and 25 deletions

View File

@ -45,9 +45,6 @@ export function deleteUser(userDelete: UserDelete) {
export function getShortcutList(shortcutFind?: ShortcutFind) {
const queryList = [];
if (shortcutFind?.creatorId) {
queryList.push(`creatorId=${shortcutFind.creatorId}`);
}
if (shortcutFind?.tag) {
queryList.push(`tag=${shortcutFind.tag}`);
}

View File

@ -38,6 +38,5 @@ interface ShortcutPatch {
}
interface ShortcutFind {
creatorId?: UserId;
tag?: string;
}