feat: add description and sequence fields to Category model and update request struct
This commit is contained in:
@@ -7,10 +7,12 @@ import (
|
||||
|
||||
func (i *impl) Update(categoryID string, spec categorydomain.CategoryReq) error {
|
||||
updateData := categorydomain.Category{
|
||||
ID: categoryID,
|
||||
Name: spec.Name,
|
||||
Code: spec.Code,
|
||||
UpdatedAt: timeutils.Now(),
|
||||
ID: categoryID,
|
||||
Name: spec.Name,
|
||||
Code: spec.Code,
|
||||
Description: spec.Description,
|
||||
Sequence: spec.Sequence,
|
||||
UpdatedAt: timeutils.Now(),
|
||||
}
|
||||
|
||||
if err := i.categoryRepo.Update(updateData); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user