diff --git a/local_conversation.md b/local_conversation.md index 4d7d730..f08bce4 100644 --- a/local_conversation.md +++ b/local_conversation.md @@ -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 +``` diff --git a/local_friend.md b/local_friend.md index 6d50d44..c2ea480 100644 --- a/local_friend.md +++ b/local_friend.md @@ -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) ); @@ -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\") ``` \ No newline at end of file