Documentation ¶
Overview ¶
Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com
Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com
Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com
Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com
Index ¶
- func Init(database *gorm.DB)
- func Paginate(page int, pageSize int) func(db *gorm.DB) *gorm.DB
- type Cat
- func (model *Cat) Delete(id string) error
- func (model *Cat) Find(id string) (m *Cat, err error)
- func (model *Cat) FindAll() (models []*Cat, err error)
- func (model *Cat) FindMany(ids []string) (models []*Cat, err error)
- func (model *Cat) MapToForm() *CatForm
- func (model *Cat) Save() error
- func (model *Cat) Update() error
- type CatForm
- type FormBase
- type ModelBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CatForm ¶
type CatForm struct { FormBase Name string `json:"name" validate:"required,min=2,max=50"` Type string `json:"type" validate:"required,min=2,max=80"` }
func (*CatForm) MapToModel ¶
Click to show internal directories.
Click to hide internal directories.