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