- package orm
- import (
- "sync"
- "time"
- )
- type (
- Model struct {
- sync.RWMutex
- ID int `json:"id" gorm:"primaryKey" comment:"ID"`
- CreatedAt time.Time `json:"created_at" comment:"创建时间"`
- UpdatedAt time.Time `json:"updated_at" comment:"更新时间"`
- _cache map[int]interface{}
- }
- )
|