Discover Packages
github.com/fedoratipper/bitkiosk/server
internal
gql
models
package
Version:
v0.0.0-...-7daae65
Opens a new window with list of versions in this module.
Published: Aug 29, 2020
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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 struct {
ProductSku string `json:"productSku"`
Email string `json:"email"`
TextReview string `json:"textReview"`
Rating int `json:"rating"`
Anonymous *bool `json:"anonymous"`
}
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 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 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 struct {
Email string `json:"email"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
}
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 struct {
FirstName *string `json:"firstName"`
LastName *string `json:"lastName"`
Email *string `json:"email"`
CreatedAt string `json:"createdAt"`
UpdatedAt *string `json:"updatedAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.