update
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user