Documentation ¶
Index ¶
- func CreateUser(user User) error
- func MakeMigrations()
- type Material
- func (t *Material) CreateMaterial() (Material, error)
- func (t *Material) DeleteMaterial() error
- func (t *Material) GetAllMaterials() ([]Material, error)
- func (t *Material) GetMaterialById() (Material, error)
- func (t *Material) SearchMaterial(search Search) ([]Material, error)
- func (t *Material) UpdateMaterial() (Material, error)
- type Search
- type Todo
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func MakeMigrations ¶
func MakeMigrations()
Types ¶
type Material ¶
type Material struct { ID uint64 `json:"id"` CreatedBy uint64 `json:"created_by"` Name string `json:"name"` Description string `json:"description,omitempty"` Lambda float32 `json:"lambda"` Price float32 `json:"price,omitempty"` }
func (*Material) CreateMaterial ¶
func (*Material) DeleteMaterial ¶
func (*Material) GetAllMaterials ¶
func (*Material) GetMaterialById ¶
func (*Material) SearchMaterial ¶
func (*Material) UpdateMaterial ¶
type Todo ¶
type Todo struct { ID uint64 `json:"id"` CreatedBy uint64 `json:"created_by"` Title string `json:"title"` Description string `json:"description,omitempty"` Status bool `json:"status,omitempty"` }
func (*Todo) CreateTodo ¶
func (*Todo) DeleteTodo ¶
func (*Todo) GetAllTodos ¶
func (*Todo) GetNoteById ¶
func (*Todo) UpdateTodo ¶
Click to show internal directories.
Click to hide internal directories.