-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SAC-12 Category RUD #41
Conversation
backend/src/services/category.go
Outdated
CreateCategory(category models.Category) (*models.Category, error) | ||
} | ||
CreateCategory(category models.CreateUpdateCategoryRequestBody) (*models.Category, error) | ||
GetCategories() (*[]models.Category, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GetCategories() (*[]models.Category, error) | |
GetCategories() ([]models.Category, error) |
for consistency, let's return an empty slice instead of a nil pointer. Agreed @DOOduneye ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits just for consistency, I can fix if you'd like
also CI seems to be failing |
Co-authored-by: Garrett Ladley <[email protected]>
Co-authored-by: Garrett Ladley <[email protected]>
Co-authored-by: Garrett Ladley <[email protected]>
Co-authored-by: Garrett Ladley <[email protected]>
Co-authored-by: Garrett Ladley <[email protected]>
Description
This Pull Request handles the remaining CRUD logic for the Category entity (RUD)
How Has This Been Tested?
A complete test suite has been written in category_test under the tests directory.
Checklist