Versions in this module Expand all Collapse all v7 v7.0.1 Mar 28, 2021 v7.0.0 Aug 30, 2020 Changes in this version + func GetDB(ctx context.Context, defDB *gorm.DB) *gorm.DB + func GetDBWithModel(ctx context.Context, defDB *gorm.DB, m interface{}) *gorm.DB + func GetDemoDB(ctx context.Context, defDB *gorm.DB) *gorm.DB + func GetMenuActionDB(ctx context.Context, defDB *gorm.DB) *gorm.DB + func GetMenuActionResourceDB(ctx context.Context, defDB *gorm.DB) *gorm.DB + func GetMenuDB(ctx context.Context, defDB *gorm.DB) *gorm.DB + func GetRoleDB(ctx context.Context, defDB *gorm.DB) *gorm.DB + func GetRoleMenuDB(ctx context.Context, defDB *gorm.DB) *gorm.DB + func GetUserDB(ctx context.Context, defDB *gorm.DB) *gorm.DB + func GetUserRoleDB(ctx context.Context, defDB *gorm.DB) *gorm.DB + type Demo struct + Code string + CreatedAt time.Time + Creator string + DeletedAt *time.Time + ID string + Memo *string + Name string + Status int + UpdatedAt time.Time + func (a Demo) ToSchemaDemo() *schema.Demo + type Demos []*Demo + func (a Demos) ToSchemaDemos() []*schema.Demo + type Menu struct + CreatedAt time.Time + Creator string + DeletedAt *time.Time + ID string + Icon *string + Memo *string + Name string + ParentID *string + ParentPath *string + Router *string + Sequence int + ShowStatus int + Status int + UpdatedAt time.Time + func (a Menu) ToSchemaMenu() *schema.Menu + type MenuAction struct + Code string + ID string + MenuID string + Name string + func (a MenuAction) ToSchemaMenuAction() *schema.MenuAction + type MenuActionResource struct + ActionID string + ID string + Method string + Path string + func (a MenuActionResource) ToSchemaMenuActionResource() *schema.MenuActionResource + type MenuActionResources []*MenuActionResource + func (a MenuActionResources) ToSchemaMenuActionResources() []*schema.MenuActionResource + type MenuActions []*MenuAction + func (a MenuActions) ToSchemaMenuActions() []*schema.MenuAction + type Menus []*Menu + func (a Menus) ToSchemaMenus() []*schema.Menu + type Role struct + CreatedAt time.Time + Creator string + DeletedAt *time.Time + ID string + Memo *string + Name string + Sequence int + Status int + UpdatedAt time.Time + func (a Role) ToSchemaRole() *schema.Role + type RoleMenu struct + ActionID string + ID string + MenuID string + RoleID string + func (a RoleMenu) ToSchemaRoleMenu() *schema.RoleMenu + type RoleMenus []*RoleMenu + func (a RoleMenus) ToSchemaRoleMenus() []*schema.RoleMenu + type Roles []*Role + func (a Roles) ToSchemaRoles() []*schema.Role + type SchemaDemo schema.Demo + func (a SchemaDemo) ToDemo() *Demo + type SchemaMenu schema.Menu + func (a SchemaMenu) ToMenu() *Menu + type SchemaMenuAction schema.MenuAction + func (a SchemaMenuAction) ToMenuAction() *MenuAction + type SchemaMenuActionResource schema.MenuActionResource + func (a SchemaMenuActionResource) ToMenuActionResource() *MenuActionResource + type SchemaRole schema.Role + func (a SchemaRole) ToRole() *Role + type SchemaRoleMenu schema.RoleMenu + func (a SchemaRoleMenu) ToRoleMenu() *RoleMenu + type SchemaUser schema.User + func (a SchemaUser) ToUser() *User + type SchemaUserRole schema.UserRole + func (a SchemaUserRole) ToUserRole() *UserRole + type User struct + CreatedAt time.Time + Creator string + DeletedAt *time.Time + Email *string + ID string + Password string + Phone *string + RealName string + Status int + UpdatedAt time.Time + UserName string + func (a User) ToSchemaUser() *schema.User + type UserRole struct + ID string + RoleID string + UserID string + func (a UserRole) ToSchemaUserRole() *schema.UserRole + type UserRoles []*UserRole + func (a UserRoles) ToSchemaUserRoles() []*schema.UserRole + type Users []*User + func (a Users) ToSchemaUsers() []*schema.User