admins

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 8 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 {
	UpdatePageByClubUUIDWithAdmin(uuid string, args ClubPageUpdateArgsWithAdmin) error
}

type AdminRepository

type AdminRepository struct {
	clubs.IClubRepository
	// contains filtered or unexported fields
}

func NewAdminRepository

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

func (*AdminRepository) GetAllUser added in v0.1.3

func (r *AdminRepository) GetAllUser() ([]models.UserInfo, error)

func (*AdminRepository) GetSpecifiedUser

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

func (*AdminRepository) UpdatePageByClubUUIDWithAdmin added in v0.1.3

func (r *AdminRepository) UpdatePageByClubUUIDWithAdmin(uuid string, args ClubPageUpdateArgsWithAdmin) error

func (*AdminRepository) UpdateSpecifiedDomainUser

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

func (*AdminRepository) UpdateSpecifiedGeneralUser added in v0.1.3

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

type AdminUserRepo

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

	UpdateSpecifiedDomainUser(userUUID string, name string) error
	UpdateSpecifiedGeneralUser(userUUID string, args UserArgs) error
}

type ClubPageUpdateArgsWithAdmin added in v0.1.3

type ClubPageUpdateArgsWithAdmin struct {
	*repos.ClubPageUpdateArgs
	Visible bool
}

type IAdminRepository

type IAdminRepository interface {
	AdminUserRepo
	AdminClubRepo
}

type UserArgs

type UserArgs struct {
	Email    string
	Name     string
	ClubUUID *string
}

Directories

Path Synopsis
Package mock_admins is a generated GoMock package.
Package mock_admins is a generated GoMock package.

Jump to

Keyboard shortcuts

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