Documentation ¶
Index ¶
- Variables
- type ShortURL
- func (f *ShortURL) Add() (pk interface{}, err error)
- func (f *ShortURL) Edit(mw func(db.Result) db.Result, args ...interface{}) (err error)
- func (f *ShortURL) Exists(shortURL string) error
- func (f *ShortURL) ExistsHash(longHash string) error
- func (f *ShortURL) ExistsHashOther(longHash string, id uint64) error
- func (f *ShortURL) ExistsOther(shortURL string, id uint64) error
- func (f *ShortURL) Find(shortURL string) (longURL string, err error)
- func (f *ShortURL) GenVisitData(t time.Time) error
- func (f *ShortURL) ParseURL(urls ...string) (urlInfo *url.URL, err error)
- func (f *ShortURL) VisitAdd(t time.Time) error
- func (f *ShortURL) VisitListFillData(rows []*ShortURLVisitWithURL) ([]*ShortURLVisitWithURL, error)
- func (f *ShortURL) VisitListWithURL(rows []*dbschema.OfficialShortUrlVisit) ([]*ShortURLVisitWithURL, error)
- type ShortURLVisitWithURL
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ShortURL ¶
type ShortURL struct { *dbschema.OfficialShortUrl Domain *dbschema.OfficialShortUrlDomain Visit *dbschema.OfficialShortUrlVisit // contains filtered or unexported fields }
func NewShortURL ¶
func (*ShortURL) ExistsHash ¶
func (*ShortURL) ExistsHashOther ¶
func (*ShortURL) VisitListFillData ¶
func (f *ShortURL) VisitListFillData(rows []*ShortURLVisitWithURL) ([]*ShortURLVisitWithURL, error)
func (*ShortURL) VisitListWithURL ¶
func (f *ShortURL) VisitListWithURL(rows []*dbschema.OfficialShortUrlVisit) ([]*ShortURLVisitWithURL, error)
type ShortURLVisitWithURL ¶
type ShortURLVisitWithURL struct { *dbschema.OfficialShortUrlVisit Num uint64 `db:"num" bson:"num" comment:"数量" json:"num" xml:"num"` URL *dbschema.OfficialShortUrl }
Click to show internal directories.
Click to hide internal directories.