Documentation ¶
Overview ¶
Package shoturl ...doc domain/api/shoturl fromdata: ?do=create&source=要缩短的网址; ?do=delete&str=要删除的短网址;
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ShotURL ¶
type ShotURL struct { gorm.Model UUID string `gorm:"type:varchar(36);not null;unique;column:uuid"` // 设置字段为非空并唯一 // `xorm:"varchar(36) pk notnull unique 'uuid'"` UserUUID string `gorm:"type:varchar(36); column:user_uuid"` // `xorm:"varchar(36) pk notnull unique 'user_uuid'"` // user uuid Code string `gorm:"type:varchar(36);unique;column:code"` // code Source string `gorm:"type:varchar(2048)"` // `xorm:"varchar(255) 'source'"` // 源地址 Protocol string `gorm:"type:varchar(32)"` Exp time.Time }
ShotURL data
Click to show internal directories.
Click to hide internal directories.