大量修改UI
This commit is contained in:
@@ -887,13 +887,16 @@ export const api = {
|
||||
return request<BillingConfigInfo>("/api/billing/config/");
|
||||
},
|
||||
// 收件箱按页拉取 —— 滚动加载逐页向后端要(tab/搜索 走服务端,计数随响应回来)
|
||||
listNotifications(params?: { type?: string; unread?: boolean; search?: string; page?: number; pageSize?: number }) {
|
||||
listNotifications(params?: { type?: string; unread?: boolean; search?: string; page?: number; pageSize?: number; excludeTypes?: string[] }) {
|
||||
const query = new URLSearchParams();
|
||||
if (params?.type && params.type !== "all") query.set("type", params.type);
|
||||
if (params?.unread) query.set("unread", "1");
|
||||
if (params?.search) query.set("search", params.search);
|
||||
if (params?.page) query.set("page", String(params.page));
|
||||
if (params?.pageSize) query.set("page_size", String(params.pageSize));
|
||||
for (const type of params?.excludeTypes || []) {
|
||||
if (type) query.append("exclude_type", type);
|
||||
}
|
||||
const qs = query.toString();
|
||||
return request<NotificationList>(`/api/ops/notifications/${qs ? `?${qs}` : ""}`);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user