diff --git a/dept.go b/dept.go index 2b9f82b..a952b43 100644 --- a/dept.go +++ b/dept.go @@ -7,10 +7,10 @@ import ( ) type DeptList struct { - Id interface{} `json:"id"` - Name string `json:"name"` - ParentId interface{} `json:"parentId"` - SortId interface{} `json:"sortId"` + Id int `json:"id"` + Name string `json:"name"` + ParentId int `json:"parentId"` + SortId int `json:"sortId"` } type DeptListResponse struct { diff --git a/group.go b/group.go index 9348667..109fc45 100644 --- a/group.go +++ b/group.go @@ -24,20 +24,20 @@ type GroupUpdateMemberRequest struct { } type GroupInfoMember struct { - Account interface{} `json:"account"` - Name interface{} `json:"name"` - Mobile interface{} `json:"mobile"` + Account string `json:"account"` + Name string `json:"name"` + Mobile string `json:"mobile"` } type GroupInfoResponse struct { - Id interface{} `json:"id"` - Name interface{} `json:"name"` + Id string `json:"id"` + Name string `json:"name"` Members []GroupInfoMember `json:"members"` } type GroupListItem struct { - Id interface{} `json:"id"` - Name interface{} `json:"name"` + Id string `json:"id"` + Name string `json:"name"` } type GroupListResponse struct { diff --git a/types.go b/types.go index 1954d07..54416d1 100644 --- a/types.go +++ b/types.go @@ -50,7 +50,7 @@ type MessageExLink struct { } type MessageSysMessageToAll struct { - OnliyOnline interface{} `json:"onliyOnline"` + OnliyOnline bool `json:"onliyOnline"` } type MessageSysMessageSysMsgMsg struct {