Skip to content

Commit

Permalink
fix: get black list api (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgz5689 authored Oct 18, 2024
1 parent 8088f2f commit 7f28e2f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions docs/sdks/api/relation/getBlackList.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ values={[
### 函数原型

```dart showLineNumbers
Future<List<BlacklistInfo>> getBlacklist({String? operationID})
Future<List<BlacklistInfo>> getBlackList({String? operationID})
```

### 输入参数
Expand All @@ -49,7 +49,7 @@ values={[
### 代码示例

```dart showLineNumbers
List<BlacklistInfo> list = await OpenIM.iMManager.friendshipManager.getBlacklist();
List<BlacklistInfo> list = await OpenIM.iMManager.friendshipManager.getBlackList();
// todo
```

Expand Down Expand Up @@ -95,7 +95,7 @@ values={[

```java showLineNumbers

public void getBlacklist(OnBase<List<UserInfo>> callBack)
public void getBlackList(OnBase<List<UserInfo>> callBack)

```

Expand All @@ -111,7 +111,7 @@ public void getBlacklist(OnBase<List<UserInfo>> callBack)

```java showLineNumbers

OpenIMClient.getInstance().friendshipManager.getBlacklist(new OnBase<List<UserInfo>>(){...})
OpenIMClient.getInstance().friendshipManager.getBlackList(new OnBase<List<UserInfo>>(){...})

```

Expand All @@ -122,7 +122,7 @@ OpenIMClient.getInstance().friendshipManager.getBlacklist(new OnBase<List<UserIn
### 函数原型

```ts showLineNumbers
IMSDK.getBlacklist(operationID?: string): Promise<WsResponse<BlackUserItem[]>>
IMSDK.getBlackList(operationID?: string): Promise<WsResponse<BlackUserItem[]>>
```

### 输入参数
Expand Down Expand Up @@ -150,7 +150,7 @@ const IMSDK = getSDK();
// import { OpenIMSDK } from 'open-im-sdk';
// const IMSDK = new OpenIMSDK();

IMSDK.getBlacklist()
IMSDK.getBlackList()
.then(({ data }) => {
// 调用成功
})
Expand All @@ -166,7 +166,7 @@ IMSDK.getBlacklist()
### 函数原型

```ts showLineNumbers
IMSDK.asyncApi('getBlacklist', operationID: string): Promise<BlackUserItem[]>
IMSDK.asyncApi('getBlackList', operationID: string): Promise<BlackUserItem[]>
```

### 输入参数
Expand All @@ -189,7 +189,7 @@ IMSDK.asyncApi('getBlacklist', operationID: string): Promise<BlackUserItem[]>
```js showLineNumbers
import IMSDK from 'openim-uniapp-polyfill';

IMSDK.asyncApi('getBlacklist', IMSDK.uuid())
IMSDK.asyncApi('getBlackList', IMSDK.uuid())
.then((data) => {
// 调用成功
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ values={[
### Function Prototype

```dart showLineNumbers
Future<List<BlacklistInfo>> getBlacklist({String? operationID})
Future<List<BlacklistInfo>> getBlackList({String? operationID})
```

### Input Parameters
Expand All @@ -48,7 +48,7 @@ None
### Code Example

```dart showLineNumbers
List<BlacklistInfo> list = await OpenIM.iMManager.friendshipManager.getBlacklist();
List<BlacklistInfo> list = await OpenIM.iMManager.friendshipManager.getBlackList();
// todo
```

Expand Down Expand Up @@ -94,7 +94,7 @@ None

```java showLineNumbers

public void getBlacklist(OnBase<List<UserInfo>> callBack)
public void getBlackList(OnBase<List<UserInfo>> callBack)

```

Expand All @@ -110,7 +110,7 @@ public void getBlacklist(OnBase<List<UserInfo>> callBack)

```java showLineNumbers

OpenIMClient.getInstance().friendshipManager.getBlacklist(new OnBase<List<UserInfo>>(){...})
OpenIMClient.getInstance().friendshipManager.getBlackList(new OnBase<List<UserInfo>>(){...})

```

Expand All @@ -121,7 +121,7 @@ OpenIMClient.getInstance().friendshipManager.getBlacklist(new OnBase<List<UserIn
### Function Prototype

```ts showLineNumbers
IMSDK.getBlacklist(operationID?: string): Promise<WsResponse<BlackUserItem[]>>
IMSDK.getBlackList(operationID?: string): Promise<WsResponse<BlackUserItem[]>>
```

### Input Parameters
Expand Down Expand Up @@ -149,7 +149,7 @@ const IMSDK = getSDK();
// import { OpenIMSDK } from 'open-im-sdk';
// const IMSDK = new OpenIMSDK();

IMSDK.getBlacklist()
IMSDK.getBlackList()
.then(({ data }) => {
// Successful call
})
Expand All @@ -165,7 +165,7 @@ IMSDK.getBlacklist()
### Function Prototype

```ts showLineNumbers
IMSDK.asyncApi('getBlacklist', operationID: string): Promise<BlackUserItem[]>
IMSDK.asyncApi('getBlackList', operationID: string): Promise<BlackUserItem[]>
```

### Input Parameters
Expand All @@ -188,7 +188,7 @@ IMSDK.asyncApi('getBlacklist', operationID: string): Promise<BlackUserItem[]>
```js showLineNumbers
import IMSDK from 'openim-uniapp-polyfill';

IMSDK.asyncApi('getBlacklist', IMSDK.uuid())
IMSDK.asyncApi('getBlackList', IMSDK.uuid())
.then((data) => {
// Successful call
})
Expand Down

0 comments on commit 7f28e2f

Please sign in to comment.