gitea源码

issue_reaction.go 634B

1234567891011121314151617181920212223242526
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. import (
  5. "time"
  6. )
  7. // EditReactionOption contain the reaction type
  8. type EditReactionOption struct {
  9. // The reaction content (e.g., emoji or reaction type)
  10. Reaction string `json:"content"`
  11. }
  12. // Reaction contain one reaction
  13. type Reaction struct {
  14. // The user who created the reaction
  15. User *User `json:"user"`
  16. // The reaction content (e.g., emoji or reaction type)
  17. Reaction string `json:"content"`
  18. // swagger:strfmt date-time
  19. // The date and time when the reaction was created
  20. Created time.Time `json:"created_at"`
  21. }