This commit is contained in:
toom1996
2025-07-16 19:20:11 +08:00
parent 0975308c4a
commit 4a1dbac02f
10 changed files with 341 additions and 398 deletions

View File

@ -31,11 +31,12 @@ export interface InewsIndex {
created_at: string
updated_at: string
}
export async function newsIndex(websiteId:number = 0):Promise<result<InewsIndex[]>>{
console.log(websiteId)
export async function newsIndex(websiteId:number = 0, limit:number = 10, page:number = 1):Promise<result<InewsIndex[]>>{
const client = getRpcClient()
const result = await client.call('news/index', {
id:websiteId
id:websiteId,
limit: limit,
page: page
})
return result