Skip to content

Commit

Permalink
fix: types (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
flc1125 authored Aug 7, 2023
1 parent 10aa8fd commit 402e506
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions dept.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
14 changes: 7 additions & 7 deletions group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type MessageExLink struct {
}

type MessageSysMessageToAll struct {
OnliyOnline interface{} `json:"onliyOnline"`
OnliyOnline bool `json:"onliyOnline"`
}

type MessageSysMessageSysMsgMsg struct {
Expand Down

0 comments on commit 402e506

Please sign in to comment.