2019-12-07 23:04:19 +01:00
|
|
|
// Copyright 2019 The Gitea Authors. All rights reserved.
|
2022-11-27 13:20:29 -05:00
|
|
|
// SPDX-License-Identifier: MIT
|
2019-12-07 23:04:19 +01:00
|
|
|
|
|
|
|
|
package structs
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// EditReactionOption contain the reaction type
|
|
|
|
|
type EditReactionOption struct {
|
2025-09-06 09:52:41 -07:00
|
|
|
// The reaction content (e.g., emoji or reaction type)
|
2019-12-07 23:04:19 +01:00
|
|
|
Reaction string `json:"content"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-31 09:21:21 +01:00
|
|
|
// Reaction contain one reaction
|
|
|
|
|
type Reaction struct {
|
2025-09-06 09:52:41 -07:00
|
|
|
// The user who created the reaction
|
|
|
|
|
User *User `json:"user"`
|
|
|
|
|
// The reaction content (e.g., emoji or reaction type)
|
2019-12-07 23:04:19 +01:00
|
|
|
Reaction string `json:"content"`
|
|
|
|
|
// swagger:strfmt date-time
|
2025-09-06 09:52:41 -07:00
|
|
|
// The date and time when the reaction was created
|
2019-12-07 23:04:19 +01:00
|
|
|
Created time.Time `json:"created_at"`
|
|
|
|
|
}
|