14 lines
266 B
Go
Raw Normal View History

2025-02-24 16:48:20 +08:00
package userrepository
import (
authdomain "legalgo-BE-go/internal/domain/auth"
2025-02-24 16:48:20 +08:00
)
func (ur *UserRepository) CreateUser(spec *authdomain.User) (*authdomain.User, error) {
if err := ur.DB.Create(&spec).Error; err != nil {
return nil, err
}
return spec, nil
}