model

package
v0.0.0-...-e809d31 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.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 Image

type Image struct {
	Id   int16  `bson:"image_id"`
	Path string `bson:"path"`
}

type ProductBasic

type ProductBasic struct {
	Id          int64     `bson:"product_id"`
	Mid         int64     `bson:"merchant_id"`
	Price       int64     `bson:"price"`
	Stock       int64     `bson:"stock"`
	Name        string    `bson:"name"`
	Description string    `bson:"description"`
	Status      int8      `bson:"status"`
	Images      []*Image  `bson:"images"`
	CreateTime  time.Time `bson:"create_time"`
	UpdateTime  time.Time `bson:"update_time"`
}

type UpdateInfo

type UpdateInfo struct {
	Id          int64  `bson:"product_id"`
	Price       int64  `bson:"price"`
	Stock       int64  `bson:"stock"`
	Name        string `bson:"name"`
	Description string `bson:"description"`
}

Jump to

Keyboard shortcuts

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