dao

package
v0.0.0-...-b9b3dbb Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func Init

func Init(config configs.Mysql)

Types

type CommonTimeModel

type CommonTimeModel struct {
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type Layout

type Layout struct {
	CommonTimeModel
	Id uint64 `json:"id" gorm"primaryKey"`

	IsDeleted uint64 `json:"is_deleted" gorm:"default:0" `
	// contains filtered or unexported fields
}

type LayoutDao

type LayoutDao struct {
	DB *gorm.DB
}

func NewLayoutDao

func NewLayoutDao() *LayoutDao

func (*LayoutDao) Create

func (dao *LayoutDao) Create(data Layout) (err error)

Jump to

Keyboard shortcuts

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