repository

package
v0.0.0-...-2bb31bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oauth2ClientRepository

type Oauth2ClientRepository interface {
	GetById(id string) (*model.Oauth2Client, global.ErrorResponse)
	GetByClientId(clientId string) (*model.Oauth2Client, global.ErrorResponse)
	Create(clientDetail *model.Oauth2Client) global.ErrorResponse
	GetByID(ctx context.Context, id string) (oauth2.ClientInfo, error)
}

func NewOauth2ClientRepository

func NewOauth2ClientRepository(db *gorm.DB) Oauth2ClientRepository

type RoleRepository

type RoleRepository interface {
	GetAllowedRoleKeyListByRoleId(roleId string) (*[]model.RoleKey, global.ErrorResponse)
}

func NewRoleRepository

func NewRoleRepository(db *gorm.DB) RoleRepository

type UserRepository

type UserRepository interface {
	GetUserByEmail(email string) (*model.User, global.ErrorResponse)
	GetUserByUsername(username string) (*model.User, global.ErrorResponse)
	CreateUser(tx helper.Tx, user *model.User) (*model.User, global.ErrorResponse)
	GetUserById(id string) (*model.User, global.ErrorResponse)
}

func NewUserRepository

func NewUserRepository(db *gorm.DB) UserRepository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL