代码拉取完成,页面将自动刷新
import { SignMethod } from "./models"
/** client对象参数类型 */
export interface ClientConfig {
/**
* @param {Credential} credential - 认证信息
*/
credential: Credential
/**
* @type {string} -服务请求地址
*/
serverUrl: string
/**
* @param {ClientProfile} ClientProfile - 可选配置项
*/
profile?: ClientProfile
}
/** 认证信息 */
export interface Credential {
/**
* @type {string} - 法大大平台(FASC-OPENAPI)为每个应用生成唯一的标识AppId,用于在API接口对接时识别不同的应用系统
*/
appId: string
/**
* @type {string} - 法大大平台(FASC-OPENAPI)为每个应用生成唯一的安全访问秘钥,和AppId组成<AppId,AppSecret>对,用于接入认证和参数签名
*/
appSecret: string
/**
* @type {string} - 法大大平台(FASC-OPENAPI)服务访问凭证
*/
accessToken?: string
}
export interface ProxyProfile {
/**
* @type {boolean} - 是否打开代理
*/
proxyFlag?: boolean
/**
* @type {string} - 代理ip
*/
proxyHost?: string
/**
* @type {number} - 代理端口
*/
proxyPort?: number
}
/** 可选配置项 */
export interface ClientProfile {
/**
* @type {string} - 签名方法(HMAC-SHA256)
*/
signMethod?: SignMethod
/**
* @type {number} - 请求超时时间,默认 60s
*/
reqTimeout?: number
/**
* @type {proxyProfile} 代理配置
*/
proxyProfile?: ProxyProfile
/**
* @type {"zh-CN" | "en-US"} - api 请求时附带的 language 字段
* 非必选
*/
language?: "zh-CN" | "en-US"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。