summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/mattermost-server/v5/model/team_member.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2021-10-17 00:47:22 +0200
committerGitHub <noreply@github.com>2021-10-17 00:47:22 +0200
commit4dd8bae5c91fa4aef09d865d8fef1acd84f90925 (patch)
treeffad9b242daccaf8c86d1c1fbd59032302bd3be9 /vendor/github.com/mattermost/mattermost-server/v5/model/team_member.go
parent7ae45c42e712bd0e66c101f3f714c05aa1dc2104 (diff)
downloadmatterbridge-msglm-4dd8bae5c91fa4aef09d865d8fef1acd84f90925.tar.gz
matterbridge-msglm-4dd8bae5c91fa4aef09d865d8fef1acd84f90925.tar.bz2
matterbridge-msglm-4dd8bae5c91fa4aef09d865d8fef1acd84f90925.zip
Update dependencies (#1610)
* Update dependencies * Update module to go 1.17
Diffstat (limited to 'vendor/github.com/mattermost/mattermost-server/v5/model/team_member.go')
-rw-r--r--vendor/github.com/mattermost/mattermost-server/v5/model/team_member.go42
1 files changed, 27 insertions, 15 deletions
diff --git a/vendor/github.com/mattermost/mattermost-server/v5/model/team_member.go b/vendor/github.com/mattermost/mattermost-server/v5/model/team_member.go
index b747f17c..f5f1cc61 100644
--- a/vendor/github.com/mattermost/mattermost-server/v5/model/team_member.go
+++ b/vendor/github.com/mattermost/mattermost-server/v5/model/team_member.go
@@ -15,6 +15,9 @@ const (
USERNAME = "Username"
)
+//msgp:tuple TeamMember
+// This struct's serializer methods are auto-generated. If a new field is added/removed,
+// please run make gen-serialized.
type TeamMember struct {
TeamId string `json:"team_id"`
UserId string `json:"user_id"`
@@ -26,28 +29,37 @@ type TeamMember struct {
ExplicitRoles string `json:"explicit_roles"`
}
+//msgp:ignore TeamUnread
type TeamUnread struct {
- TeamId string `json:"team_id"`
- MsgCount int64 `json:"msg_count"`
- MentionCount int64 `json:"mention_count"`
+ TeamId string `json:"team_id"`
+ MsgCount int64 `json:"msg_count"`
+ MentionCount int64 `json:"mention_count"`
+ MentionCountRoot int64 `json:"mention_count_root"`
+ MsgCountRoot int64 `json:"msg_count_root"`
+ ThreadCount int64 `json:"thread_count"`
+ ThreadMentionCount int64 `json:"thread_mention_count"`
}
+//msgp:ignore TeamMemberForExport
type TeamMemberForExport struct {
TeamMember
TeamName string
}
+//msgp:ignore TeamMemberWithError
type TeamMemberWithError struct {
UserId string `json:"user_id"`
Member *TeamMember `json:"member"`
Error *AppError `json:"error"`
}
+//msgp:ignore EmailInviteWithError
type EmailInviteWithError struct {
Email string `json:"email"`
Error *AppError `json:"error"`
}
+//msgp:ignore TeamMembersGetOptions
type TeamMembersGetOptions struct {
// Sort the team members. Accepts "Username", but defaults to "Id".
Sort string
@@ -98,11 +110,11 @@ func EmailInviteWithErrorToEmails(o []*EmailInviteWithError) []string {
}
func EmailInviteWithErrorToJson(o []*EmailInviteWithError) string {
- if b, err := json.Marshal(o); err != nil {
+ b, err := json.Marshal(o)
+ if err != nil {
return "[]"
- } else {
- return string(b)
}
+ return string(b)
}
func EmailInviteWithErrorToString(o *EmailInviteWithError) string {
@@ -120,11 +132,11 @@ func TeamMembersWithErrorToTeamMembers(o []*TeamMemberWithError) []*TeamMember {
}
func TeamMembersWithErrorToJson(o []*TeamMemberWithError) string {
- if b, err := json.Marshal(o); err != nil {
+ b, err := json.Marshal(o)
+ if err != nil {
return "[]"
- } else {
- return string(b)
}
+ return string(b)
}
func TeamMemberWithErrorToString(o *TeamMemberWithError) string {
@@ -138,11 +150,11 @@ func TeamMembersWithErrorFromJson(data io.Reader) []*TeamMemberWithError {
}
func TeamMembersToJson(o []*TeamMember) string {
- if b, err := json.Marshal(o); err != nil {
+ b, err := json.Marshal(o)
+ if err != nil {
return "[]"
- } else {
- return string(b)
}
+ return string(b)
}
func TeamMembersFromJson(data io.Reader) []*TeamMember {
@@ -152,11 +164,11 @@ func TeamMembersFromJson(data io.Reader) []*TeamMember {
}
func TeamsUnreadToJson(o []*TeamUnread) string {
- if b, err := json.Marshal(o); err != nil {
+ b, err := json.Marshal(o)
+ if err != nil {
return "[]"
- } else {
- return string(b)
}
+ return string(b)
}
func TeamsUnreadFromJson(data io.Reader) []*TeamUnread {