Browse Source

微调

master
xuqm 1 year ago
parent
commit
2c01e4350a
2 changed files with 4 additions and 5 deletions
  1. +3
    -4
      npm/index.d.ts
  2. +1
    -1
      npm/index.js

+ 3
- 4
npm/index.d.ts View File

@@ -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
File diff suppressed because it is too large
View File


Loading…
Cancel
Save