瀏覽代碼

微调

master
xuqm 1 年之前
父節點
當前提交
2c01e4350a
共有 2 個檔案被更改,包括 4 行新增5 行删除
  1. +3
    -4
      npm/index.d.ts
  2. +1
    -1
      npm/index.js

+ 3
- 4
npm/index.d.ts 查看文件

@@ -54,7 +54,6 @@ export declare interface Message {
toClientId: string;
timestamp: number;
message: string | TextMessage | PictureMessage;
describe: string;
}


@@ -62,7 +61,7 @@ export declare interface ISzyxPush {

setBaseUrl(url: string)

install(app, tenantNo: string, osType: OsType, url: string | null): Promise<void>;
install(app, tenantNo: string, osType: OsType, url?: string): Promise<void>;


/**
@@ -71,7 +70,7 @@ export declare interface ISzyxPush {
* @param osType 设备类型 {@link OsType}
* @param url 服务端地址,可以不传
*/
init(tenantNo: string, osType: OsType, url: string | null): Promise<void>;
init(tenantNo: string, osType: OsType, url?: string): Promise<void>;

register(userId: string): Promise<void>;

@@ -88,5 +87,5 @@ export declare interface ISzyxPush {
*/
unMessage(callId): void;

sendTextMsg(userId: string, text: string): Promise<Message>;
sendTextMsg(userId: string, text: string, describe?: string): Promise<Message>;
}

+ 1
- 1
npm/index.js
文件差異過大導致無法顯示
查看文件


Loading…
取消
儲存