update
This commit is contained in:
20
utils/rpc.ts
20
utils/rpc.ts
@ -68,3 +68,23 @@ export async function newsDetail(id:string):Promise<result<InewsDetail>>{
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
|
||||
// 网站配置
|
||||
export interface IWebsiteConfig {
|
||||
app_name: string
|
||||
app_description: string
|
||||
app_company: string
|
||||
app_logo: string
|
||||
app_favicon: string
|
||||
app_copyright: string
|
||||
app_icp: string
|
||||
}
|
||||
export async function websiteConfig(host:string):Promise<result<IWebsiteConfig>>{
|
||||
const client = getRpcClient()
|
||||
const result = await client.call('website/config', {
|
||||
host:host
|
||||
})
|
||||
|
||||
return result
|
||||
}
|
Reference in New Issue
Block a user