admins

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminClubRepo

type AdminClubRepo interface {
	UpdateSpecifiedClub(userUUID string, args UserArgs) error
}

type AdminRepository

type AdminRepository struct {
	// contains filtered or unexported fields
}

func NewAdminRepository

func NewAdminRepository(logger *zap.Logger, db *gorm.DB) *AdminRepository

func (*AdminRepository) GetSpecifiedUser

func (r *AdminRepository) GetSpecifiedUser(userUUID string) (models.UserInfo, error)

func (*AdminRepository) UpdateSpecifiedClub

func (r *AdminRepository) UpdateSpecifiedClub(userUUID string, args UserArgs) error

func (*AdminRepository) UpdateSpecifiedDomainUser

func (r *AdminRepository) UpdateSpecifiedDomainUser(userUUID string, name string) error

type AdminUserRepo

type AdminUserRepo interface {
	GetSpecifiedUser(userUUID string) (models.UserInfo, error)

	UpdateSpecifiedDomainUser(userUUID string, name string) error
}

type IAdminRepository

type IAdminRepository interface {
	AdminUserRepo
	AdminClubRepo
}

type UserArgs

type UserArgs struct {
	Email    string
	Name     string
	ClubUUID string
}

Jump to

Keyboard shortcuts

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