cap-plugin-sjt
v0.0.1
Published
SJT 插件
Readme
cap-plugin-sjt
SJT 插件
Install
npm install cap-plugin-sjt
npx cap syncAPI
SJT 插件接口
login()
login() => Promise<LoginBroadcastResult>发送登录广播并等待回调
Returns: Promise<LoginBroadcastResult>
getInfo()
getInfo() => Promise<RecordInfo>获取备案信息和凭证
Returns: Promise<RecordInfo>
Interfaces
LoginBroadcastResult
登录广播返回的数据 由 SJT 应用通过广播返回,具体字段由外部应用决定
| Prop | Type |
| ------------- | -------------------- |
| success | boolean |
| message | string |
RecordInfo
备案信息和凭证数据
| Prop | Type | Description |
| -------------------- | --------------------------------------------------------------- | ------------- |
| record | string | 备案号 |
| userCredential | string | 用户凭证 (URL 编码) |
| appCredential | string | 应用凭证 (URL 编码) |
| urlIds | Record<string, string> | URL 映射表 |
Type Aliases
Record
Construct a type with a set of properties K of type T
{ [P in K]: T; }
