Documentation ¶
Index ¶
- Variables
- func GetID() string
- func ReplacePodID(podId string)
- type BaseModel
- type Json
- type MapStringBool
- type ModelDate
- type ModelNullTime
- func (myT ModelNullTime) MarshalText() ([]byte, error)
- func (myT ModelNullTime) NullTime() sql.NullTime
- func (myT *ModelNullTime) Scan(value interface{}) error
- func (myT ModelNullTime) String() string
- func (myT *ModelNullTime) UnmarshalText(text []byte) error
- func (myT ModelNullTime) Value() (driver.Value, error)
- type ModelTime
- type MysqlConfig
- type SliceString
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NodId int64
)
Functions ¶
func ReplacePodID ¶
func ReplacePodID(podId string)
Types ¶
type BaseModel ¶
type BaseModel struct { ID string `json:"id" gorm:"primarykey;type:bigint(20);comment:'主键'"` CreatedAt ModelTime `json:"created_at" gorm:"column:created_at;index;comment:'创建时间'"` UpdatedAt ModelTime `json:"-" gorm:"column:updated_at;index;comment:'更新时间'"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index;comment:'删除时间'"` }
func (*BaseModel) DetailExpiredSecond ¶
DetailExpiredSecond 缓存默认5分钟过期
func (*BaseModel) GetIdString ¶
func (*BaseModel) RelationExpiredSecond ¶
RelationExpiredSecond 缓存默认5分钟过期
type MapStringBool ¶
func (*MapStringBool) Scan ¶
func (o *MapStringBool) Scan(input interface{}) error
type ModelNullTime ¶
func (ModelNullTime) MarshalText ¶
func (myT ModelNullTime) MarshalText() ([]byte, error)
func (ModelNullTime) NullTime ¶
func (myT ModelNullTime) NullTime() sql.NullTime
func (*ModelNullTime) Scan ¶
func (myT *ModelNullTime) Scan(value interface{}) error
func (ModelNullTime) String ¶
func (myT ModelNullTime) String() string
func (*ModelNullTime) UnmarshalText ¶
func (myT *ModelNullTime) UnmarshalText(text []byte) error
type MysqlConfig ¶
type SliceString ¶
type SliceString []string
func (*SliceString) Scan ¶
func (o *SliceString) Scan(input interface{}) error
Click to show internal directories.
Click to hide internal directories.