common

package
v0.0.0-...-86e0aa6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta struct {
	Id         int64 `json:"id" gorm:"column:id"`
	CreateTime int64 `json:"create_time" gorm:"column:create_time;comment:创建时间"` //;comment:创建时间
	UpdateTime int64 `json:"update_time" gorm:"column:update_time;comment:更新时间"` //;comment:更新时间
	//Label 没法存入数据库,不是一个结构化的数据
	//比如就存储在数据里面,存储为json,需要0RM来為我们完成 json的序列化和存储
	//直接序列化为json 存储到 Lable 字段
	Label map[string]string `json:"label" gorm:"column:label;serializer:json"`
}

Jump to

Keyboard shortcuts

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