service

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShortLinkService

type ShortLinkService struct {
	service.BaseService
	ShortLinkRepository *repository.ShortLinkRepository `inject:"shortLinkRepository"`
}

func (*ShortLinkService) DeleteById

func (s *ShortLinkService) DeleteById(id string) error

func (*ShortLinkService) DeleteByKey

func (s *ShortLinkService) DeleteByKey(key string) error

func (*ShortLinkService) Generate

func (s *ShortLinkService) Generate(url string) *domain.ShortLink
func (s *ShortLinkService) GenerateShortLink(name string, url string, duration time.Duration) (*domain.ShortLink, error)

func (*ShortLinkService) GetById

func (s *ShortLinkService) GetById(id string) (*domain.ShortLink, error)

func (*ShortLinkService) GetByKey

func (s *ShortLinkService) GetByKey(key string) (*domain.ShortLink, error)

func (*ShortLinkService) Start

func (s *ShortLinkService) Start()

Jump to

Keyboard shortcuts

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