mdl

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache added in v1.0.17

type Cache struct {
	Id         int64  `json:"id"`         // 编码
	Key        string `json:"key"`        // 键
	Value      string `json:"value"`      // 值
	Expiration int64  `json:"expiration"` // 到期
}

缓存

type Mdl

type Mdl struct {
	Id        int64          `gorm:"primaryKey;autoIncrement:false" json:"id"` // 编码
	CreatedAt time.Time      `gorm:"" json:"createdAt"`                        // 创建时间
	UpdatedAt time.Time      `gorm:"" json:"updatedAt"`                        // 更新时间
	DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`                           // 删除时间
}

模型

func (*Mdl) MarshalBinary

func (m *Mdl) MarshalBinary() ([]byte, error)

func (*Mdl) ToString

func (m *Mdl) ToString() string

func (*Mdl) UnmarshalBinary

func (m *Mdl) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

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