I prefer the first structure.
--> In my opinion, related files should be kept together, so I prefer to organize my company's project using this structure. This is advantageous when we are developing a large software project with multiple developers working on it.