Versions in this module Expand all Collapse all v0 v0.0.1 Oct 21, 2022 Changes in this version + func CreateOrUpdateUser(claims *auth.Claims) + func Init() + type Menu struct + Access string + Component string + CreatedAt time.Time + HideInMenu bool + ID string + Icon string + Layout bool + Name string + ParentKeys []string + Path string + Redirect string + Routes []Menu + Status enum.Status + TenantID string + UpdatedAt time.Time + func (Menu) TableName() string + func (e *Menu) C() *mongo.Collection + func (e *Menu) Make() + type OnlyClient struct + Client config.OAuth2 + type Role struct + CreatedAt time.Time + ID string + Metadata interface{} + Name string + Status enum.Status + TenantID string + UpdatedAt time.Time + func (Role) TableName() string + func (e *Role) C() *mongo.Collection + func (e *Role) Make() + type Tenant struct + Client config.OAuth2 + Contact string + CreatedAt time.Time + Description string + Domains []string + ExpiredAt time.Time + ID string + Metadata interface{} + Name string + Status enum.Status + System bool + UpdatedAt time.Time + func NewTenant(storeclient pb.StoreClient) *Tenant + func (Tenant) TableName() string + func (e *Tenant) C() *mongo.Collection + func (e *Tenant) GetClientByDomain(c context.Context, domain string) (store.OAuth2Configure, error) + func (e *Tenant) GetTenantByDomain(c context.Context, domain string) error + func (e *Tenant) InitStore() + func (e *Tenant) Make() + type User struct + Avatar string + CreatedAt time.Time + Email string + ID string + Metadata interface{} + Nickname string + PWD UserPwd + Phone string + Status enum.Status + TenantID string + UpdatedAt time.Time + Username string + func (User) TableName() string + func (e *User) C() *mongo.Collection + func (e *User) Encrypt(pwd string) (err error) + func (e *User) Make() + func (e *User) VerifyPassword(pwd string) bool + type UserPwd struct + Hash string + Salt string