@yeying-community/yeying-client-ts
Preparing search index...
ConfigProvider
Class ConfigProvider
管理配置
Index
Constructors
constructor
Methods
get
set
Constructors
constructor
new
ConfigProvider
(
option
:
ProviderOption
)
:
ConfigProvider
Parameters
option
:
ProviderOption
Returns
ConfigProvider
Methods
get
get
(
key
:
string
,
type
?:
ConfigTypeEnum
)
:
Promise
<
ConfigMetadataJson
>
获取配置相应
key
的值元信息
Parameters
key
:
string
配置的key。
type
:
ConfigTypeEnum
= ConfigTypeEnum.CONFIG_TYPE_USER
配置类型,是系统配置,还是用户配置,默认是用户配置。
Returns
Promise
<
ConfigMetadataJson
>
配置元信息
Throws
ServiceUnavailable 服务不可用
set
set
(
key
:
string
,
value
:
string
)
:
Promise
<
ConfigMetadataJson
>
Parameters
key
:
string
value
:
string
Returns
Promise
<
ConfigMetadataJson
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
set
@yeying-community/yeying-client-ts
Loading...
管理配置