domain

package
v0.0.56 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 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 ShortLink struct {
	Id          string     `gorm:"column:id;primaryKey"`
	Name        string     `gorm:"column:name" json:"name"`
	Key         string     `gorm:"column:key;unique" json:"key"`
	Url         string     `gorm:"column:url" json:"url"`
	CreatedTime time.Time  `gorm:"column:created_time;autoCreateTime" json:"createdTime"`
	ExpiredTime *time.Time `gorm:"column:expired_time" json:"expiredTime"`
	TenantId    string     `gorm:"column:tenant_id;default:SYSTEM" json:"tentantId"`
	FullPath    string     `gorm:"-" json:"fullPath"`
}

func (*ShortLink) BeforeCreate

func (e *ShortLink) BeforeCreate(tx *gorm.DB) (err error)

func (*ShortLink) TableName

func (e *ShortLink) TableName() string

Jump to

Keyboard shortcuts

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