Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoii committed Mar 6, 2020
1 parent a803cad commit 8fa49f8
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 13 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# 更新日志



## [1.1.0] - 2020-03-06

### 变更

* `mirai-core` 更新至 `0.25.0`
* `mirai-console` 更新至 `0.3.2`
* `uploadImage`接口又返回imageId字符串 变更为 返回包含`imageId``url`的json对象

### 新增

* `Source`消息类型增加属性`time`表示时间戳
* `Quote`消息类型增加`groupId``senderId``origin`四个属性
* `Face`消息类型增加`name`属性
* 支持配置文件修改服务端口号和初始`authKey`



## [1.0.0] - 2020-03-01

### 变更
Expand Down
26 changes: 18 additions & 8 deletions MessageType.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,21 @@
```json5
{
"type": "Quote",
"id": 123456
"id": 123456,
"groupId": 123456789,
"senderId": 987654321,
"origin": [
{ "type": "Plain", text: "text" }
]
}
```

| 名字 | 类型 | 说明 |
| ---- | ---- | --------------------------- |
| id | Long | 被引用回复的消息的messageId |
| 名字 | 类型 | 说明 |
| -------- | ------ | ------------------------------------------------- |
| id | Long | 被引用回复的原消息的messageId |
| groupId | Long | 被引用回复的原消息所发送的群号,当为好友消息时为0 |
| senderId | Long | 被引用回复的原消息的发送者的QQ号 |
| origin | Object | 被引用回复的原消息的消息链对象 |


#### At
Expand Down Expand Up @@ -61,13 +69,15 @@
```json5
{
"type": "Face",
"faceId": 123
"faceId": 123,
"name": "bu"
}
```

| 名字 | 类型 | 说明 |
| ------ | ---- | ---------- |
| faceId | Int | QQ表情编号 |
| 名字 | 类型 | 说明 |
| ------ | ------- | ---------- |
| faceId | Int | QQ表情编号 |
| name | String | QQ表情拼音 |

#### Plain

Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,11 @@ Content-Type:multipart/form-data

#### 响应: 图片的imageId(好友图片与群聊图片Id不同)

```
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.jpg
```json5
{
"imageId": "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.jpg",
"url": "xxxxxxxxxxxxxxxxxxxx"
}
```


Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# build
httpVersion=1.0.0
httpVersion=1.1.0

# style guide
kotlin.code.style=official
Expand Down
4 changes: 2 additions & 2 deletions mirai-api-http/src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: MiraiAPIHTTP
path: net.mamoe.mirai.api.http.HttpApiPluginBase
version: v1.0.0
version: v1.1.0
info: Mirai HTTP API Server Plugin
author: "01"
author: "ryoii"

0 comments on commit 8fa49f8

Please sign in to comment.