fix: refactor layout init
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package staffrepository
|
||||
|
||||
import authdomain "github.com/ardeman/project-legalgo-go/internal/domain/auth"
|
||||
|
||||
func (ur *StaffRepository) Create(spec *authdomain.Staff) (*authdomain.Staff, error) {
|
||||
if err := ur.DB.Create(&spec).Error; err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return spec, nil
|
||||
}
|
||||
Reference in New Issue
Block a user