-
Notifications
You must be signed in to change notification settings - Fork 0
/
group.go
35 lines (33 loc) · 927 Bytes
/
group.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package reply
import "github.com/0RAJA/chat_app/src/model"
type CreateGroup struct {
Name string `json:"name"`
AccountID int64 `json:"account_id"`
RelationID int64 `json:"relation_id"`
Description string `json:"description"`
Avatar string `json:"avatar"`
}
type TransferGroup struct {
}
type DissolveGroup struct {
}
type UpdateGroup struct {
Name string `json:"name" form:"name" binding:"required"`
Description string `json:"description" form:"description" binding:"required"`
}
type InviteAccount struct {
InviteMember []int64 `json:"invite_member"`
}
type QuitGroup struct {
}
type GetGroup struct {
List []model.SettingGroup
Total int64
}
type GetGroupMembers struct {
ID int64 `json:"account_id"` // 账号ID
Name string `json:"name"` // 名称
Avatar string `json:"avatar"` // 头像
NickName string `json:"nick_name"`
IsLeader bool `json:"is_leader"`
}