hoos

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Overview

* * @Author: TheLife * @Date: 2020-4-24 1:35 下午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeFieldsModel

type TimeFieldsModel struct {
	TimeCreated uint `` /* 133-byte string literal not displayed */
	TimeUpdated uint `` /* 133-byte string literal not displayed */
	TimeDeleted uint `gorm:"column:time_deleted" json:"-" comment:"删除时间" columnType:"bigint(13) unsigned" dataType:"bigint" columnKey:""`
}

func (*TimeFieldsModel) HookDeleteCallback

func (*TimeFieldsModel) HookDeleteCallback(scope *gorm.Scope)

删除钩子在删除之前

func (*TimeFieldsModel) HookUpdateTimeStampForCreateCallback

func (*TimeFieldsModel) HookUpdateTimeStampForCreateCallback(scope *gorm.Scope)

新建钩子在持久化之前

func (*TimeFieldsModel) HookUpdateTimeStampForUpdateCallback

func (*TimeFieldsModel) HookUpdateTimeStampForUpdateCallback(scope *gorm.Scope)

更新钩子在持久化之前

Jump to

Keyboard shortcuts

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