service

package
v0.0.0-...-6e9e061 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	UserRepo repository.UserRepository
}

func NewAuthService

func NewAuthService(userRepo repository.UserRepository) *AuthService

func (*AuthService) Authenticate

func (s *AuthService) Authenticate(username, password string) (string, error)

type BillingService

type BillingService struct {
	BillingRepo *repository.BillingRepository
}

func NewBillingService

func NewBillingService(billingRepo *repository.BillingRepository) *BillingService

func (*BillingService) FindAllWithRelations

func (s *BillingService) FindAllWithRelations(page, pageSize int) ([]model.Billing, error)

type CreateUserService

type CreateUserService struct {
	CreateUserRepo *repository.UserRepository
}

func NewCreateUserService

func NewCreateUserService(createUserRepo *repository.UserRepository) *CreateUserService

func (*CreateUserService) Register

func (s *CreateUserService) Register(usersername string, password string) (*model.User, error)

type ImportService

type ImportService struct {
	PartnerRepo     *repository.PartnerRepository
	CustomerRepo    *repository.CustomerRepository
	ProductRepo     *repository.ProductRepository
	SkuRepo         *repository.SkuRepository
	EntitlementRepo *repository.EntitlementRepository
	BillingRepo     *repository.BillingRepository
	DB              *gorm.DB
}

func (*ImportService) ImportCSV

func (s *ImportService) ImportCSV(filename string) error

Jump to

Keyboard shortcuts

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