Documentation ¶
Index ¶
- Variables
- func GetRoleDB(ctx context.Context, defDB *gorm.DB) *gorm.DB
- type Role
- type RoleRepo
- func (a *RoleRepo) Create(ctx context.Context, role *Role) error
- func (a *RoleRepo) Delete(ctx context.Context, userID uint64) error
- func (a *RoleRepo) FindAllByUsername(ctx context.Context, userName string) (*[]*Role, error)
- func (a *RoleRepo) Get(ctx context.Context, userID uint64) (*Role, error)
- func (a *RoleRepo) GetPage(ctx context.Context, userID uint64) (*[]*Role, error)
- func (a *RoleRepo) Update(ctx context.Context, role *Role) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.