there are several functions in the project, such as asset query, asset acquisition, asset return, my assets and so on, because the functions are similar (all are checked based on the asset location selected by the user, my assets will be more than a filter condition of the current user id), so I am now writing in the same method, url will take a parameter, the backend will distinguish which function is based on this parameter, and perform different functions through if judgment. I would like to ask whether writing several queries in one method violates the principle of a single duty, whether they should all be written separately, or whether they should be written together, such as asset inquiry, asset acquisition, and asset return. I would like to ask the gods to write a separate method for my assets.