models

package
v0.0.0-...-5318e64 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLMap

type URLMap struct {
	ID       int64     `json:"id" gorm:"primary_key"`
	RawURL   string    `json:"raw_url" gorm:"unique_index"`
	ShortURL string    `json:"short_url" gorm:"unique_index"`
	CreateAt time.Time `json:"createtime"`
}

URLMap 长短链接映射表

func (*URLMap) AfterCreate

func (u *URLMap) AfterCreate(scope *gorm.Scope) (err error)

AfterCreate gorm hook

Jump to

Keyboard shortcuts

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