2020-01-15 12:14:07 +01:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2022-11-27 19:20:29 +01:00
|
|
|
// SPDX-License-Identifier: MIT
|
2019-05-07 03:12:51 +02:00
|
|
|
|
2021-11-16 16:25:33 +01:00
|
|
|
package migration
|
2019-05-07 03:12:51 +02:00
|
|
|
|
2020-01-15 12:14:07 +01:00
|
|
|
// Reaction represents a reaction to an issue/pr/comment.
|
|
|
|
type Reaction struct {
|
2022-01-26 10:45:51 +01:00
|
|
|
UserID int64 `yaml:"user_id" json:"user_id"`
|
|
|
|
UserName string `yaml:"user_name" json:"user_name"`
|
|
|
|
Content string `json:"content"`
|
2019-05-07 03:12:51 +02:00
|
|
|
}
|
2022-02-01 19:20:28 +01:00
|
|
|
|
|
|
|
// GetExternalName ExternalUserMigrated interface
|
|
|
|
func (r *Reaction) GetExternalName() string { return r.UserName }
|
|
|
|
|
|
|
|
// GetExternalID ExternalUserMigrated interface
|
|
|
|
func (r *Reaction) GetExternalID() int64 { return r.UserID }
|