Documentation ¶
Index ¶
- type UsersGroup
- func (e *UsersGroup) Add(m *UsersGroup) (int64, error)
- func (e *UsersGroup) BatchDelete(IDArray []int64) (int64, error)
- func (e *UsersGroup) Delete(id int64) (int64, error)
- func (e *UsersGroup) GetAll(whereCond builder.Cond, orderBy string, pageSize, currentPageIndex int) ([]UsersGroup, int64, error)
- func (e *UsersGroup) GetOne(id int64) (UsersGroup, error)
- func (e *UsersGroup) QueryOne(whereCond builder.Cond, orderBy string) (UsersGroup, error)
- func (e *UsersGroup) RawSQL(sql ...interface{}) (sql.Result, error)
- func (e *UsersGroup) TableName() string
- func (e *UsersGroup) Update(m UsersGroup) (int64, error)
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) BatchDelete ¶
func (e *UsersGroup) BatchDelete(IDArray []int64) (int64, error)
BatchDelete 批量删除多条记录
func (*UsersGroup) GetAll ¶
func (e *UsersGroup) GetAll(whereCond builder.Cond, orderBy string, pageSize, currentPageIndex int) ([]UsersGroup, int64, error)
GetAll 获取
func (*UsersGroup) QueryOne ¶
func (e *UsersGroup) QueryOne(whereCond builder.Cond, orderBy string) (UsersGroup, error)
QueryOne 获取一条记录
Click to show internal directories.
Click to hide internal directories.