mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-28 12:37:25 +00:00
Fix comment activity api.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type ActivityType uint
|
||||
@@ -22,10 +23,10 @@ type Activity struct {
|
||||
}
|
||||
|
||||
type ActivityView struct {
|
||||
ID uint `json:"id"`
|
||||
Time time.Time `json:"time"`
|
||||
Type ActivityType `json:"type"`
|
||||
User UserView `json:"user"`
|
||||
Comment *CommentWithResourceView `json:"comment,omitempty"`
|
||||
Resource *ResourceView `json:"resource,omitempty"`
|
||||
ID uint `json:"id"`
|
||||
Time time.Time `json:"time"`
|
||||
Type ActivityType `json:"type"`
|
||||
User UserView `json:"user"`
|
||||
Comment *CommentView `json:"comment,omitempty"`
|
||||
Resource *ResourceView `json:"resource,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user