entity

package
v0.0.0-...-9bcb3a8 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 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 Cart

type Cart struct {
	UserId    string `json:"user_id" gorm:"column:user_id;<-:create"`
	ProductId uint32 `json:"product_id" gorm:"column:product_id;<-:create"`
	Quantity  uint32 `json:"quantity" gorm:"column:quantity;<-:create"`
}

func (*Cart) TableName

func (c *Cart) TableName() string

type CartQueryRes

type CartQueryRes struct {
	TotalCart int    `json:"total_cart" gorm:"column:total_cart"`
	UserId    string `json:"user_id" gorm:"column:user_id"`
	ProductId uint32 `json:"product_id" gorm:"column:product_id"`
	Quantity  uint32 `json:"quantity" gorm:"column:quantity"`
}

Jump to

Keyboard shortcuts

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