Refresh visible news risk ratings after analysis
Poll only visible news IDs and update ratings for matching revisions without replacing the feed, scrolling, or clearing pending-news notifications. Bind refresh results to the page and session, and cover stale responses and bounded ID queries.
This commit is contained in:
1 parent
4f43ca8b57
commit
91bc65df75
7 files changed
+101
-3
No files matched your search
@@ -3,11 +3,12 @@ import { request } from "@/http/axios"
|
||||
import { consumeStream } from "@/http/stream"
|
||||
|
||||
/** 分页查询新闻 */
|
||||
export function listNewsApi(params: News.NewsQuery) {
|
||||
export function listNewsApi(params: News.NewsQuery, notify = true) {
|
||||
return request<News.ListNewsResponseData>({
|
||||
url: "/news",
|
||||
method: "get",
|
||||
params,
|
||||
notify,
|
||||
paramsSerializer: { indexes: null }
|
||||
})
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ export interface NewsBrief {
|
||||
}
|
||||
|
||||
export interface NewsQuery {
|
||||
ids?: number[]
|
||||
source?: string[]
|
||||
q?: string
|
||||
start?: string
|
||||
|
||||
Reference in new issue
Block a user