models

package
v0.0.0-...-0b98827 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ONE   string = "ONE"
	ALL   string = "ALL"
	ByAsc string = "ASC"
	ByEsc string = "DESC"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Models

type Models struct {
	Engine *xorm.Engine
}

func New

func New(engine *xorm.Engine) *Models

func (*Models) Delete

func (m *Models) Delete(mPoT *configs.MPoT, data interface{}) (i int64, err error)

func (*Models) Insert

func (m *Models) Insert(data interface{}) (i int64, err error)

func (*Models) Select

func (m *Models) Select(mPoT *configs.MPoT, data interface{}) (err error)

func (*Models) ToSerialized

func (m *Models) ToSerialized()

func (*Models) Total

func (m *Models) Total(data interface{}) (nums int64, err error)

func (*Models) Update

func (m *Models) Update(mPoT *configs.MPoT, data interface{}) (i int64, err error)

Jump to

Keyboard shortcuts

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