volume

package
v0.0.0-...-843cdbd Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Volume

type Volume struct {
	Total     int64     `bson:"total" json:"total"`         //历史总销量
	Daily     int64     `bson:"daily" json:"daily"`         //日销量
	Weekly    int64     `bson:"weekly" json:"weekly"`       //周销量
	Monthly   int64     `bson:"monthly" json:"monthly"`     //月销量
	Quarterly int64     `bson:"quarterly" json:"quarterly"` //季销量
	Yearly    int64     `bson:"yearly" json:"yearly"`       //年销量
	LastAt    time.Time `bson:"last_at" json:"last_at"`     //上次更新时间
}

func (*Volume) Inc

func (m *Volume) Inc(q int64)

func (*Volume) Init

func (m *Volume) Init(vol Volume)

func (*Volume) Verify

func (m *Volume) Verify() *errors.Error

Jump to

Keyboard shortcuts

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