Documentation ¶
Index ¶
- type Tenants
- func (tenant *Tenants) ObjArr(filterArr []model.Filter, sortArr []model.Sort, limit int, withTrashed bool) (interface{}, error)
- func (tenant *Tenants) ObjArrPaginate(c model.Context, perPage uint, filterArr []model.Filter, sortArr []model.Sort, ...) (pagination model.Pagination, err error)
- func (tenant *Tenants) SetPortAttribute(value interface{})
- func (tenant *Tenants) TableName() string
- type UserToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tenants ¶
type Tenants struct { ID int64 `gorm:"column:id;primary_key;auto_increment"` UserId int64 `gorm:"column:user_id;type:int unsigned;not null"` TenantsId int64 `gorm:"column:tenants_id;type:int unsigned;not null"` Host string `gorm:"column:host;type:varchar(255);not null"` DriverName string `gorm:"column:drivername;type:varchar(255);not null"` Port int64 `gorm:"column:port;type:int unsigned;not null"` Prefix string `gorm:"column:prefix;type:varchar(255);not null"` Dbname string `gorm:"column:dbname;type:varchar(255);not null"` Dbuser string `gorm:"column:dbuser;type:varchar(255);not null"` Charset string `gorm:"column:charset;type:varchar(255);not null"` Collation string `gorm:"column:collation;type:varchar(255);not null"` SetmaxIdleconns int64 `gorm:"column:setmaxIdleconns;type:int unsigned;not null"` Setmaxopenconns int64 `gorm:"column:setmaxopenconns;type:int unsigned;not null"` Setconnmaxlifetime int64 `gorm:"column:setconnmaxlifetime;type:int unsigned;not null"` Password string `gorm:"column:password;type:varchar(255);not null"` CreatedAt zone.Time `gorm:"column:created_at"` UpdatedAt zone.Time `gorm:"column:updated_at"` DeletedAt *zone.Time `gorm:"column:deleted_at"` model.BaseModel }
func (*Tenants) ObjArrPaginate ¶
func (*Tenants) SetPortAttribute ¶
func (tenant *Tenants) SetPortAttribute(value interface{})
type UserToken ¶
type UserToken struct { model.BaseModel ID int64 `gorm:"column:id;primary_key;auto_increment"` Token string `gorm:"size:255;unique;not null" json:"token" form:"token"` UserId int64 `gorm:"column:user_id;not null;index:idx_user_token_user_id;" json:"userId" form:"userId"` TenantsId int64 `gorm:"column:tenants_id;type:int unsigned;not null"` ExpiredAt int64 `gorm:"column:expired_at;not null" json:"expiredAt" form:"expiredAt"` Status int `gorm:"column:status;not null;index:idx_user_token_status" json:"status" form:"status"` CreatedAt *zone.Time `gorm:"not null" json:"created_at" form:"createTime"` UpdatedAt *zone.Time `gorm:"not null" json:"created_at" form:"createTime"` }
Click to show internal directories.
Click to hide internal directories.