Shioriko/pkg/models/read.go

21 lines
644 B
Go
Raw Normal View History

2021-05-09 15:07:23 +00:00
package models
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"`
2021-05-09 15:07:23 +00:00
}
2022-04-15 19:20:14 +00:00
type TagReadModel struct {
TagID string `json:"tagId"`
TagName string `json:"tagName"`
TagType string `json:"tagType"`
TagNote string `json:"tagNote"`
PostCount int `json:"postCount"`
}