phoebe/pkg/models/read.go

24 lines
712 B
Go
Raw Permalink Normal View History

2021-05-09 22:07:23 +07:00
package models
2025-02-24 13:03:20 +00:00
import "time"
2021-05-09 22:07:23 +07:00
type PostReadModel struct {
ID string `json:"id"`
ImagePreviewPath string `json:"preview_path"`
ImagePath string `json:"image_path"`
SourceURL string `json:"source_url"`
Tags []TagListItem `json:"tags"`
Width int `json:"width"`
Height int `json:"height"`
Uploader string `json:"uploader"`
2025-02-24 13:03:20 +00:00
UploadDate time.Time `json:"upload_date"`
2021-05-09 22:07:23 +07:00
}
2022-04-16 02:20:14 +07:00
type TagReadModel struct {
TagID string `json:"tagId"`
TagName string `json:"tagName"`
TagType string `json:"tagType"`
TagNote string `json:"tagNote"`
PostCount int `json:"postCount"`
}