feat: update Category model and request struct to use pointers for description and sequence fields
This commit is contained in:
@@ -12,8 +12,8 @@ func (a *accessor) CreateModel(spec categorydomain.CategoryReq) error {
|
||||
ID: uuid.NewString(),
|
||||
Name: spec.Name,
|
||||
Code: spec.Code,
|
||||
Description: spec.Description,
|
||||
Sequence: spec.Sequence,
|
||||
Description: *spec.Description,
|
||||
Sequence: *spec.Sequence,
|
||||
}
|
||||
|
||||
if err := a.db.Create(&data).Error; err != nil {
|
||||
|
||||
Reference in New Issue
Block a user