fdentity

package
v0.0.0-...-3ce3758 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUUID

func NewUUID() string

Types

type Entity

type Entity struct {
	Id string `json:"id" gorm:"primary_key;type:char(32)"`
}

func (*Entity) GetId

func (e *Entity) GetId() string

func (*Entity) SetId

func (e *Entity) SetId(id string)

func (*Entity) TableName

func (e *Entity) TableName() string

*

  • 子类必须复写

type IdInterface

type IdInterface interface {
	// 获取ID
	GetId() string

	// 设置ID
	SetId(id string)

	// 获取表名称
	TableName() string
}

Jump to

Keyboard shortcuts

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