package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Sep 1, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BaseVO struct {
ID PK `json:"id"`
}
type LoginRequest struct {
Tenant string `json:"tenant"`
Username string `json:"username"`
Password string `json:"password"`
}
type LoginResponse struct {
}
type SecGroup struct {
BaseVO
Name string `json:"name"`
Perms []*SecPerm `json:"perms" gorm:"many2many:sec_group_perms;"`
}
type SecUser struct {
BaseVO
Username string `json:"username"`
Email string `json:"email"`
Hash string `json:"-"`
Tenant string `json:"tenant"`
Enabled *bool `json:"enabled"`
Groups []*SecGroup `json:"groups" gorm:"many2many:sec_user_groups;"`
}
type Session struct {
Username string `json:"username"`
Sessionid string `json:"sessionid"`
Perms map[PermDef]string `json:"perms"`
Tenant string `json:"tenant"`
CreatedAt time.Time `json:"created_at"`
Hash []byte `json:"-"`
}
type VO interface {
GetID() uint
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.