Documentation
¶
Index ¶
- type BaseModel
- func (bm *BaseModel) Create(db *gorm.DB) error
- func (bm *BaseModel) Delete(db *gorm.DB) error
- func (bm *BaseModel) Description() string
- func (bm *BaseModel) GetPk() uint
- func (bm *BaseModel) SetPK(pk interface{}) error
- func (bm *BaseModel) TableName() string
- func (bm *BaseModel) Update(db *gorm.DB) error
- type BaseModelInterface
- type QuerySet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct {
Desc string `json:"-" gorm:"-"`
Instance any `json:"-" gorm:"-"`
Context map[string]any `json:"-" gorm:"-"`
}
func (*BaseModel) Description ¶
type BaseModelInterface ¶
type QuerySet ¶
type QuerySet interface {
Get(model BaseModelInterface) error
Filter(model BaseModelInterface) error
}
Click to show internal directories.
Click to hide internal directories.