models

package
v0.0.0-...-7daae65 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewProduct

type NewProduct struct {
	Sku              string  `json:"SKU"`
	Name             string  `json:"name"`
	ShortDescription string  `json:"shortDescription"`
	Description      string  `json:"description"`
	Price            float64 `json:"price"`
	Stock            int     `json:"stock"`
	StartDate        string  `json:"startDate"`
	EndDate          *string `json:"endDate"`
}

type NewReview

type NewReview struct {
	ProductSku string `json:"productSku"`
	Email      string `json:"email"`
	TextReview string `json:"textReview"`
	Rating     int    `json:"rating"`
	Anonymous  *bool  `json:"anonymous"`
}

type NewUser

type NewUser struct {
	Email        string  `json:"email"`
	Token        string  `json:"token"`
	AuthMethodID int     `json:"authMethodId"`
	FirstName    *string `json:"firstName"`
	LastName     *string `json:"lastName"`
}

type Product

type Product struct {
	Sku              string  `json:"SKU"`
	Name             string  `json:"name"`
	Description      string  `json:"description"`
	ShortDescription string  `json:"shortDescription"`
	Price            float64 `json:"price"`
	Stock            int     `json:"stock"`
	Rating           float64 `json:"rating"`
	ReviewCount      int     `json:"reviewCount"`
	StartDate        string  `json:"startDate"`
	EndDate          *string `json:"endDate"`
	CreatedByAdmin   *User   `json:"createdByAdmin"`
	CreatedAt        *string `json:"createdAt"`
	UpdatedAt        *string `json:"updatedAt"`
}

type Review

type Review struct {
	UserDisplayName string `json:"userDisplayName"`
	ProductSku      string `json:"productSku"`
	TextReview      string `json:"textReview"`
	Rating          int    `json:"rating"`
	CreatedAt       string `json:"createdAt"`
	Anonymous       bool   `json:"anonymous"`
}

type UpdatedProfile

type UpdatedProfile struct {
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
}

type User

type User struct {
	Email       string       `json:"email"`
	Role        int          `json:"role"`
	CreatedAt   *string      `json:"createdAt"`
	UpdatedAt   *string      `json:"updatedAt"`
	UserProfile *UserProfile `json:"userProfile"`
}

type UserProfile

type UserProfile struct {
	FirstName *string `json:"firstName"`
	LastName  *string `json:"lastName"`
	Email     *string `json:"email"`
	CreatedAt string  `json:"createdAt"`
	UpdatedAt *string `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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