Commit d2932be5 by 陶光胜

用户资源

parent 2d7646ed
......@@ -45,7 +45,7 @@ public class UserResourceApiServiceImpl implements UserResourceApiService{
public ServiceResponse<UserResourceDTO> getResourceByUserId(Integer userId) {
List<UserResourceDTO> list = this.userResourceService.listUserResourceByUserId(userId);
if(CollectionUtils.isNotEmpty(list)){
ServiceResponse.success(list.get(0));
return ServiceResponse.success(list.get(0));
}
return ServiceResponse.success(new UserResourceDTO());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment