update
This commit is contained in:
@ -31,9 +31,12 @@ export interface InewsIndex {
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
export async function newsIndex():Promise<result<InewsIndex[]>>{
|
||||
export async function newsIndex(websiteId:number = 0):Promise<result<InewsIndex[]>>{
|
||||
console.log(websiteId)
|
||||
const client = getRpcClient()
|
||||
const result = await client.call('news/index', {})
|
||||
const result = await client.call('news/index', {
|
||||
id:websiteId
|
||||
})
|
||||
|
||||
return result
|
||||
}
|
||||
@ -72,6 +75,8 @@ export async function newsDetail(id:string):Promise<result<InewsDetail>>{
|
||||
|
||||
// 网站配置
|
||||
export interface IWebsiteConfig {
|
||||
id: string
|
||||
app_extra_tag: string
|
||||
app_name: string
|
||||
app_description: string
|
||||
app_keywords: string
|
||||
|
Reference in New Issue
Block a user