Automagicaly create CRUD APIs for your gorm models.
type BaseModel struct {
ID uint `gorm:"primarykey"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type User struct {
BaseModel
Username string `json:"username" gorm:"size:100"`
Password string `json:"password" gorm:"size:128"`
}
crudist.Handle(c, "user/", &User{})
Result routs:
GET /user/
GET /user/:id/
POST /user/
PATCH /user/
DELETE /user/