models

package
v0.0.0-...-43a7a5a Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: GPL-3.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func Items

func Items() orm.QuerySeter

func Shops

func Shops() orm.QuerySeter

Types

type WDItem

type WDItem struct {
	Id   int
	Shop *WDShop `orm:"rel(fk)"`
	Uuid uint64  `orm:"index"`
	Name string  `orm:"size(64);unique"`
}

func (*WDItem) Get

func (i *WDItem) Get(fields ...string) error

func (*WDItem) Insert

func (i *WDItem) Insert() error

func (*WDItem) Update

func (i *WDItem) Update(fields ...string) error

type WDShop

type WDShop struct {
	Id   int
	Uuid uint64 `orm:"index"`
	Name string `orm:"size(64);unique"`
	Note string `orm:"type(text)"`
}

func (*WDShop) Get

func (s *WDShop) Get(fields ...string) error

func (*WDShop) Insert

func (s *WDShop) Insert() error

func (*WDShop) Update

func (s *WDShop) Update(fields ...string) error

Jump to

Keyboard shortcuts

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