phoebe/pkg/models/item.go

25 lines
540 B
Go
Raw Normal View History

2021-05-09 22:07:23 +07:00
package models
type TagTypeListItem struct {
ID uint `json:"id"`
Name string `json:"name"`
}
type TagListItem struct {
ID string `json:"id"`
Name string `json:"name"`
TagType string `json:"tagType"`
}
type PostListItem struct {
2021-05-11 19:21:11 +07:00
ID string `json:"id"`
ImagePath string `json:"image_path"`
ImageThumbnailPath string `json:"thumbnail_path"`
Tags []string `json:"tags"`
2021-05-09 22:07:23 +07:00
}
2021-05-12 01:22:46 +07:00
type PostSimilarityListItem struct {
ID string `json:"id"`
Distance int `json:"distance"`
}