Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMySQLFromConfig ¶
NewMySQLFromConfig 创建gorm mysql DB
func SetMultiDb ¶
Types ¶
type IsDelType ¶
type IsDelType struct { DeletedAt *time.Time `json:"deleted_at"` IsDeleted soft_delete.DeletedAt `gorm:"type:tinyint(4);softDelete:flag,DeletedAtField:DeletedAt;default:0" json:"is_deleted"` }
type Order ¶
type Order struct { OrderId string `gorm:"primarykey;type:varchar(50);" json:"orderId"` Amount int64 `json:"amount"` Goods []OrderGoods `json:"goods"` }
Click to show internal directories.
Click to hide internal directories.