2025-02-24 16:48:20 +08:00
|
|
|
package staffrepository
|
|
|
|
|
|
2025-02-27 07:25:25 +08:00
|
|
|
import authdomain "legalgo-BE-go/internal/domain/auth"
|
2025-02-24 16:48:20 +08:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|