Discover Packages
github.com/digitalcircle-com-br/foundation
lib
fmodel
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: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
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.