Add User Partner and Product

This commit is contained in:
aditya.siregar
2024-06-03 14:40:50 +07:00
parent 67f1dbc850
commit 8a23e72230
46 changed files with 1366 additions and 213 deletions
+6
View File
@@ -72,6 +72,9 @@ func (s *ServiceException) MapErrorsToHTTPCode() int {
case errInvalidLogin:
return http.StatusBadRequest
case errUserIsNotFound:
return http.StatusBadRequest
default:
return http.StatusInternalServerError
}
@@ -89,6 +92,9 @@ func (s *ServiceException) MapErrorsToCode() Code {
case errBadRequest:
return BadRequest
case errUserIsNotFound:
return BadRequest
default:
return ServerError
}