diff options
Diffstat (limited to 'modules/structs/issue_reaction.go')
-rw-r--r-- | modules/structs/issue_reaction.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/structs/issue_reaction.go b/modules/structs/issue_reaction.go new file mode 100644 index 0000000000..9d71740052 --- /dev/null +++ b/modules/structs/issue_reaction.go @@ -0,0 +1,22 @@ +// Copyright 2019 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package structs + +import ( + "time" +) + +// EditReactionOption contain the reaction type +type EditReactionOption struct { + Reaction string `json:"content"` +} + +// ReactionResponse contain one reaction +type ReactionResponse struct { + User *User `json:"user"` + Reaction string `json:"content"` + // swagger:strfmt date-time + Created time.Time `json:"created_at"` +} |