models

package
v0.0.0-...-8e1814b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersGroup

type UsersGroup struct {
	Id             int64     `xorm:"pk BIGINT(20)"`
	Name           string    `xorm:"comment('用户组名称') VARCHAR(200)"`
	ParentId       int64     `xorm:"not null default 0 comment('所属上级Id') BIGINT(20)"`
	Sorts          int32     `xorm:"not null default 0 comment('排序') SMALLINT(6)"`
	Note           string    `xorm:"comment('备注') VARCHAR(2000)"`
	CreateTime     time.Time `xorm:"not null comment('创建时间') DATETIME"`
	LastUpdateTime time.Time `xorm:"comment('最后更新时间') DATETIME"`
}

UsersGroup struct

func (*UsersGroup) Add

func (e *UsersGroup) Add(m *UsersGroup) (int64, error)

Add 添加

func (*UsersGroup) BatchDelete

func (e *UsersGroup) BatchDelete(IDArray []int64) (int64, error)

BatchDelete 批量删除多条记录

func (*UsersGroup) Delete

func (e *UsersGroup) Delete(id int64) (int64, error)

Delete 删除一条记录

func (*UsersGroup) GetAll

func (e *UsersGroup) GetAll(whereCond builder.Cond, orderBy string, pageSize, currentPageIndex int) ([]UsersGroup, int64, error)

GetAll 获取

func (*UsersGroup) GetOne

func (e *UsersGroup) GetOne(id int64) (UsersGroup, error)

GetOne 获取一条记录

func (*UsersGroup) QueryOne

func (e *UsersGroup) QueryOne(whereCond builder.Cond, orderBy string) (UsersGroup, error)

QueryOne 获取一条记录

func (*UsersGroup) RawSQL

func (e *UsersGroup) RawSQL(sql ...interface{}) (sql.Result, error)

RawSQL 执行sql

func (*UsersGroup) TableName

func (e *UsersGroup) TableName() string

TableName 表的名称

func (*UsersGroup) Update

func (e *UsersGroup) Update(m UsersGroup) (int64, error)

Update 修改

Jump to

Keyboard shortcuts

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