pricelist

package
v1.35.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type PriceList

type PriceList struct {
	mixin.Model[PriceList]

	Title       string     `json:"title"`
	Description string     `json:"description"`
	Status      string     `json:"status" orm:"default:draft"`
	Type        string     `json:"type"`
	StartsAt    *time.Time `json:"startsAt,omitempty"`
	EndsAt      *time.Time `json:"endsAt,omitempty"`

	Metadata  Map    `json:"metadata,omitempty" datastore:"-"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

func New

func New(db *datastore.Datastore) *PriceList

func (*PriceList) Load

func (p *PriceList) Load(ps []datastore.Property) (err error)

func (*PriceList) Save

func (p *PriceList) Save() ([]datastore.Property, error)

Jump to

Keyboard shortcuts

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