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