Documentation ¶
Index ¶
- type AccountMap
- func (am *AccountMap) Add() error
- func (am *AccountMap) AddWithTransaction(tx *gorm.DB) error
- func (am *AccountMap) Delete() error
- func (am *AccountMap) DeleteWithTransaction(tx *gorm.DB) error
- func (am *AccountMap) List() error
- func (am *AccountMap) ListWithTransaction(tx *gorm.DB) error
- func (am *AccountMap) Update() error
- func (am *AccountMap) UpdateWithTransaction(tx *gorm.DB) error
- type Accounts
- func (a *Accounts) Add() error
- func (a *Accounts) AddWithTransaction(tx *gorm.DB) error
- func (a *Accounts) Delete() error
- func (a *Accounts) DeleteWithTransaction(tx *gorm.DB) error
- func (a *Accounts) List() error
- func (a *Accounts) ListWithTransaction(tx *gorm.DB) error
- func (a *Accounts) Update() error
- func (a *Accounts) UpdateWithTransaction(tx *gorm.DB) error
- type BaseModel
- type Manager
- type Model
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountMap ¶
type AccountMap map[string]interface{}
map
func (*AccountMap) Add ¶
func (am *AccountMap) Add() error
func (*AccountMap) AddWithTransaction ¶
func (am *AccountMap) AddWithTransaction(tx *gorm.DB) error
func (*AccountMap) Delete ¶
func (am *AccountMap) Delete() error
func (*AccountMap) DeleteWithTransaction ¶
func (am *AccountMap) DeleteWithTransaction(tx *gorm.DB) error
func (*AccountMap) List ¶
func (am *AccountMap) List() error
func (*AccountMap) ListWithTransaction ¶
func (am *AccountMap) ListWithTransaction(tx *gorm.DB) error
func (*AccountMap) Update ¶
func (am *AccountMap) Update() error
func (*AccountMap) UpdateWithTransaction ¶
func (am *AccountMap) UpdateWithTransaction(tx *gorm.DB) error
type Accounts ¶
type Accounts struct { BaseModel UserName string `json:"user_name" gorm:"type:varchar(255) column:user_name not null comment '用户名';"` FirstName string `json:"first_name" gorm:"type:varchar(255) column:first_name comment '';"` LastName string `json:"last_name" gorm:"type:varchar(255) column:last_name comment '';"` Gender string `json:"gender" gorm:"type:varchar(255) column:gender comment '';"` Email string `json:"email" gorm:"type:varchar(255) column:email comment '';"` IsActive bool `json:"is_active" gorm:"type:tinyint column:is_active comment ''"` Password string `json:"password" gorm:"type:varchar(255) column:password"` Level int `json:"level" gorm:"type:int(3) column:level"` IsSuperUser bool `json:"is_superuser" gorm:"type:tinyint column:is_superuser"` }
func (*Accounts) DeleteWithTransaction ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
Click to show internal directories.
Click to hide internal directories.