gqlmodel

package
v0.0.0-...-bbf7e2a Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 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 AllOrdersOrder

type AllOrdersOrder struct {
	ID         string `json:"id"`
	UserID     string `json:"user_id"`
	PriceTotal int    `json:"price_total"`
	Quantity   int    `json:"quantity"`
}

type CreateProduct

type CreateProduct struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Price       int    `json:"price"`
	Stock       int    `json:"stock"`
}

type Login

type Login struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Mutation

type Mutation struct {
}

type NewUser

type NewUser struct {
	Email    string `json:"email"`
	Username string `json:"username"`
	Password string `json:"password"`
	Type     int    `json:"type"`
}

type Order

type Order struct {
	ID            string          `json:"id"`
	UserID        string          `json:"user_id"`
	PriceTotal    int             `json:"price_total"`
	Quantity      int             `json:"quantity"`
	OrderProducts []*OrderProduct `json:"order_products"`
}

type OrderProduct

type OrderProduct struct {
	ProductID string `json:"product_id"`
	Quantity  int    `json:"quantity"`
	Price     int    `json:"price"`
}

type PlaceOrder

type PlaceOrder struct {
	OrderProducts []*PlaceOrderProduct `json:"order_products"`
}

type PlaceOrderProduct

type PlaceOrderProduct struct {
	ProductID string `json:"product_id"`
	Quantity  int    `json:"quantity"`
}

type Product

type Product struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Price       int    `json:"price"`
	Stock       int    `json:"stock"`
}

type Query

type Query struct {
}

type Token

type Token struct {
	Token string `json:"token"`
}

type UpdateInventory

type UpdateInventory struct {
	ID     string `json:"id"`
	Type   int    `json:"type"`
	Number int    `json:"number"`
}

type UpdateInventoryResponse

type UpdateInventoryResponse struct {
	Success bool `json:"success"`
}

type User

type User struct {
	ID       string `json:"id"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Type     int    `json:"type"`
}

Jump to

Keyboard shortcuts

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