Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updateColumnsFriend #4

Open
wants to merge 2 commits into
base: feat/v3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions local_conversation.md
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,27 @@ LIMIT 1
select * from local_conversations;
```

- searchConversations

| 输入参数 | 类型 | 说明 | 备注 |
| --------- |--------|----------------------------|-----|
|searchParam| string|搜索字段| |

| 返回参数 | 类型 | 说明 | 备注 |
| --------- |--------|----------------------------|-----|
| errCode | number | 自定义即可,0成功,非0失败 |获取不到报错 |
| errMsg | string | 详细的err信息 | |
| data | string | []LocalConversation(表对象数据) |对象转换成string|


**参考sql语句说明:**

```sqlite
SELECT *
FROM `local_conversations`
WHERE show_name like \"%a%\"
ORDER BY latest_msg_send_time DESC
```



Expand Down
19 changes: 19 additions & 0 deletions local_friend.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ create table local_friends
-- email varchar(64),
ex varchar(1024),
attached_info varchar(1024),
is_pinned
primary key (owner_user_id, friend_user_id)
);

Expand Down Expand Up @@ -203,4 +204,22 @@ LIMIT 1
SELECT *
FROM `local_friends`
WHERE friend_user_id IN ("123")
```

- updateColumnsFriend

| 输入参数 | 类型 | 说明 | 备注 |
| --------- |--------| ----- |-----|
|friendIDs | []string | | |
| args | map[string]interface{} | | |

| 返回参数 | 类型 | 说明 | 备注 |
| --------- |--------| ----- |--|
| errCode | number | 自定义即可,0成功,非0失败 | 未更新到一行需要报错 |
| errMsg | string | 详细的err信息 | |

```sqlite
SELECT *
FROM `local_friends`
WHERE friend_user_id IN (\"2\",\"3\",\"9767777093\")
```