Skip to content

Commit

Permalink
sdk:guild、channel、member 对象中 增加 op_user_id (merge request !50)
Browse files Browse the repository at this point in the history
Squash merge branch 'feature_20220420_casonli_op_user_id_story_873897969' into 'master'
提交 op_user_id
  • Loading branch information
casonli committed Apr 20, 2022
1 parent ea8c6e2 commit d52d75b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dto/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ type ChannelValueObject struct {
// 机器人在此频道上拥有的权限, 定义请参考
// [文档](https://bot.q.qq.com/wiki/develop/api/openapi/channel_permissions/model.html#permissions)
Permissions string `json:"permissions,omitempty"`
// 操作人
OpUserID string `json:"op_user_id,omitempty"`
}
2 changes: 2 additions & 0 deletions dto/guild.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ type Guild struct {
UnionWorldID string `json:"union_world_id"`
// 游戏绑定公会/战队ID
UnionOrgID string `json:"union_org_id"`
// 操作人
OpUserID string `json:"op_user_id,omitempty"`
}
1 change: 1 addition & 0 deletions dto/member.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ type Member struct {
Nick string `json:"nick"`
User *User `json:"user"`
Roles []string `json:"roles"`
OpUserID string `json:"op_user_id,omitempty"` // 操作人
}

// DeleteHistoryMsgDay 消息撤回天数
Expand Down

0 comments on commit d52d75b

Please sign in to comment.