dao_base

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 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 IdModel

type IdModel struct {
	ID uint `json:"id" gorm:"primarykey;comment:数据库自增"`
}

type StrIdModel

type StrIdModel struct {
	ID string `json:"id" gorm:"primarykey"`
}

func (*StrIdModel) BeforeCreate

func (m *StrIdModel) BeforeCreate(tx *gorm.DB) (err error)

type TailModel

type TailModel struct {
	CreateTime customTime.CustomTime `json:"createTime" gorm:"autoCreateTime;comment:创建时间" swaggertype:"string"`
	CreateBy   string                `json:"createBy" gorm:"comment:创建人"`
	UpdateTime customTime.CustomTime `json:"-" gorm:"autoUpdateTime;comment:更新时间" swaggerignore:"true" swaggertype:"string"`
	UpdateBy   string                `json:"-" gorm:"comment:更新人" swaggerignore:"true"`
	Deleted    gorm.DeletedAt        `json:"-" gorm:"index;comment:逻辑删除" swaggerignore:"true"`
}

Jump to

Keyboard shortcuts

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