26 lines
734 B
Go
26 lines
734 B
Go
package response
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type ResearchJournalsResponse struct {
|
|
ID uint `json:"id"`
|
|
UserID uint `json:"userId"`
|
|
JournalTitle string `json:"journalTitle"`
|
|
Publisher string `json:"publisher"`
|
|
JournalURL string `json:"journalUrl"`
|
|
PublishedDate *time.Time `json:"publishedDate"`
|
|
PublishedYear *int `json:"publishedYear"` // extracted from PublishedDate
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
User *UserBasicInfo `json:"user,omitempty"`
|
|
}
|
|
|
|
type UserBasicInfo struct {
|
|
ID uint `json:"id"`
|
|
Username string `json:"username"`
|
|
Fullname string `json:"fullname"`
|
|
Email string `json:"email"`
|
|
}
|