models

package
v0.0.0-...-ce62dce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detail

type Detail struct {
	ID          uint64    `json:"id"`
	Name        string    `json:"name"`
	Price       float32   `json:"price"`
	CreatedTime time.Time `json:"created_time"`
}

type Product

type Product struct {
	Detail  *Detail   `json:"detail"`
	Rating  *Rating   `json:"rating"`
	Reviews []*Review `json:"reviews"`
}

type Rating

type Rating struct {
	ID          uint64    `json:"id"`
	ProductID   uint64    `json:"product_id"`
	Score       uint32    `json:"score"`
	UpdatedTime time.Time `json:"updated_time"`
}

type Review

type Review struct {
	ID          uint64    `json:"id"`
	ProductID   uint64    `json:"product_id"`
	Message     string    `json:"message"`
	CreatedTime time.Time `json:"created_time"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL