37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package entities
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type WishList struct {
|
|
ID string `json:"id" bson:"_id,omitempty"`
|
|
Title string `json:"title" bson:"title"`
|
|
UserID string `json:"user_id" bson:"user_id"`
|
|
Description string `json:"description" bson:"description"`
|
|
IsPublic bool `json:"is_public" bson:"is_public"`
|
|
PhotoURL string `json:"photo_url" bson:"photo_url"`
|
|
CreatedAt time.Time `json:"created_at" bson:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at" bson:"updated_at"`
|
|
}
|
|
|
|
type WishListItem struct {
|
|
ID string `json:"id" bson:"_id,omitempty"`
|
|
Title string `json:"title" bson:"title"`
|
|
URL string `json:"url" bson:"url"`
|
|
Cost float64 `json:"cost" bson:"cost"`
|
|
WishListID string `json:"wish_list_id" bson:"wish_list_id"`
|
|
Description string `json:"description" bson:"description"`
|
|
PhotoURL string `json:"photo_url" bson:"photo_url"`
|
|
CreatedAt time.Time `json:"created_at" bson:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at" bson:"updated_at"`
|
|
}
|
|
|
|
type DeleteWishListRequest struct {
|
|
ID string `json:"id" bson:"_id"`
|
|
}
|
|
|
|
type DeleteWishListItemRequest struct {
|
|
ID string `json:"id" bson:"_id"`
|
|
}
|