models

package
v0.0.0-...-f534f19 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id         int64
	Name       string `form:"username"`
	NickName   string
	Phone      string
	Email      string
	Password   string `form:"password"`
	Salt       string
	State      string
	CreateDate time.Time
	Remarks    string
	Stype      string
	Sex        string
	Card       string
	Birtn      time.Time
	CreateUser string
	Locked     string
	OrgId      string
	Avatar     string
}

func NewAccount

func NewAccount() *Account

type Demo

type Demo struct {
	Id   int
	Age  int
	Name string
}

func NewDemo

func NewDemo() *Demo

func (*Demo) FindByIdentify

func (m *Demo) FindByIdentify(id int, cols ...string) (result *Demo, err error)

type M

type M struct {
}

func (*M) Object

func (this *M) Object() orm.Ormer

type Page

type Page struct {
	ShowCount     int //每页显示记录数
	TotalPage     int //总页数
	TotalResult   int //总记录数
	CurrentPage   int //当前页
	CurrentResult int //当前记录起始索引
}

func DefaultPerson

func DefaultPerson() *Page

func NewPage

func NewPage(currentPage int, showCount int) *Page

func (*Page) GetTotalPage

func (m *Page) GetTotalPage() *Page

Jump to

Keyboard shortcuts

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