mysqlStruct

package
v1.5.95 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Full

type Full struct {
	ID        uint64         `gorm:"primary_key;column:id;type:int(11);not null" json:"id"` // 主键
	CreatedAt time.Time      `gorm:"column:created_at;type:timestamp" json:"created_at"`    // 创建时间
	UpdatedAt time.Time      `gorm:"column:updated_at;type:timestamp" json:"updated_at"`    // 修改时间
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp" json:"-"`             // 删除时间
}

type FullList

type FullList struct {
	ID        uint64                 `gorm:"primary_key;column:id;type:int(11);not null" json:"id"` // 主键
	CreatedAt *timeHelper.MyJsonTime `gorm:"column:created_at;type:timestamp" json:"created_at"`    // 创建时间
	UpdatedAt *timeHelper.MyJsonTime `gorm:"column:updated_at;type:timestamp" json:"updated_at"`    // 修改时间
	DeletedAt gorm.DeletedAt         `gorm:"column:deleted_at;type:timestamp" json:"-"`             // 删除时间
}

type IDCreatedAt

type IDCreatedAt struct {
	ID        uint64    `gorm:"column:id" json:"id"`                 // 主键
	CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` // 创建时间
}

type IDCreatedAtList

type IDCreatedAtList struct {
	ID        uint64                 `gorm:"column:id" json:"id"`                 // 主键
	CreatedAt *timeHelper.MyJsonTime `gorm:"column:created_at" json:"created_at"` // 创建时间
}

type IDDeletedAt

type IDDeletedAt struct {
	ID        uint64         `gorm:"column:id" json:"id"`                       // 主键
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp" json:"-"` // 删除时间
}

type IDList

type IDList struct {
	ID        uint64         `gorm:"primary_key;column:id;type:int(11);not null" json:"id"` // 主键
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp" json:"-"`             // 删除时间
}

type ModelWithTableName

type ModelWithTableName interface {
	TableName() string
}

type NoDeletedAt

type NoDeletedAt struct {
	ID        uint64    `gorm:"primary_key;column:id;type:int(11);not null" json:"id"` // 主键
	CreatedAt time.Time `gorm:"column:created_at;type:timestamp" json:"created_at"`    // 创建时间
	UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp" json:"updated_at"`    // 修改时间
}

type NoUpdatedAt

type NoUpdatedAt struct {
	ID        uint64         `gorm:"primary_key;column:id;type:int(11);not null" json:"id"` // 主键
	CreatedAt time.Time      `gorm:"column:created_at;type:timestamp" json:"created_at"`    // 创建时间
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp" json:"-"`             // 删除时间
}

type NoUpdatedAtList

type NoUpdatedAtList struct {
	ID        uint64                 `gorm:"primary_key;column:id;type:int(11);not null" json:"id"` // 主键
	CreatedAt *timeHelper.MyJsonTime `gorm:"column:created_at;type:timestamp" json:"created_at"`    // 创建时间
	DeletedAt gorm.DeletedAt         `gorm:"column:deleted_at;type:timestamp" json:"-"`             // 删除时间
}

type Sum

type Sum struct {
	SumFloat64  float64 `gorm:"column:sum_float64"`
	CountAmount int64   `gorm:"column:count_amount"`
}

Jump to

Keyboard shortcuts

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