Versions in this module Expand all Collapse all v0 v0.0.1 Oct 11, 2023 Changes in this version + var ErrCodeDuplicate = errors.New("code duplicate") + var ErrCodeExhausted = errors.New("code exhausted") + var ErrCodeNotFound = errors.New("code not found") + type LogService struct + func (LogService) CleanLog(urlid int) error + func (LogService) CountLog(urlid []int) (map[uint]int, error) + func (LogService) List(urlId, page, pageSize int) ([]val_obj.AccessLog, int64, error) + func (s LogService) AddLog(val val_obj.AccessLog) + type StatService struct + func (StatService) DayClick() ([]val_obj.StatItem, error) + func (StatService) TopCountry() ([]val_obj.StatItem, error) + func (StatService) TopURL() ([]val_obj.StatItem, error) + func (s StatService) TopBrowser() ([]val_obj.StatItem, error) + func (s StatService) TopDevice() ([]val_obj.StatItem, error) + func (s StatService) TopOS() ([]val_obj.StatItem, error) + type URLService struct + func (URLService) GetByCode(code string) (*val_obj.URLObject, error) + func (URLService) GetById(id uint) (*val_obj.URLObject, error) + func (URLService) List(page, pageSize int) ([]val_obj.URLObject, int64, error) + func (URLService) New(val val_obj.URLObject) (uint, string, error) + func (s URLService) Delete(id uint) error + func (s URLService) SearchCode(code string) (val_obj.URLObject, error) + func (s URLService) Update(val val_obj.URLObject) error + func (s URLService) UpdateEnabled(id uint, enabled bool) error