You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

reaction.go 556B

1234567891011121314151617
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package migration
  4. // Reaction represents a reaction to an issue/pr/comment.
  5. type Reaction struct {
  6. UserID int64 `yaml:"user_id" json:"user_id"`
  7. UserName string `yaml:"user_name" json:"user_name"`
  8. Content string `json:"content"`
  9. }
  10. // GetExternalName ExternalUserMigrated interface
  11. func (r *Reaction) GetExternalName() string { return r.UserName }
  12. // GetExternalID ExternalUserMigrated interface
  13. func (r *Reaction) GetExternalID() int64 { return r.UserID }