encap

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encap

type Encap struct {
	ID        int64  `gorm:"column:id;primaryKey"`
	Code      string `gorm:"column:code"`          //封装编码
	Name      string `gorm:"column:name"`          //封装名称
	EnAbbr    string `gorm:"column:en_abbr"`       //英文简称
	CnAbbr    string `gorm:"column:cn_abbr"`       //中午简称
	State     int64  `gorm:"column:state"`         //封装状态
	DeletedAt int64  `gorm:"column:deleted_at"`    //删除时间
	CreatedAt string `gorm:"column:created_at;->"` //创建时间
	UpdatedAt string `gorm:"column:updated_at;->"` //更新时间
	OldId     int64  `gorm:"column:old_id"`        //历史ID
}

func Find

func Find(id int64) (obj *Encap, err error)

func GetOne

func GetOne(code string) (obj *Encap, err error)

func GetOneByOldId

func GetOneByOldId(id int64) (obj *Encap, err error)

func (*Encap) TableName

func (p *Encap) TableName() string

Jump to

Keyboard shortcuts

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