proxy.js updated

pull/16313/head
Onur Pıçakcı 2 years ago
parent 61e79c7366
commit d15fba7267

@ -19,6 +19,11 @@ public class MemberAppService : BloggingAppServiceBase, IMemberAppService
{
var user = await _userRepository.FindAsync(x => x.UserName == username);
if (user == null)
{
return null;
}
return ObjectMapper.Map<BlogUser, BlogUserDto>(user);
}
}

@ -160,6 +160,12 @@
}, ajaxParams));
};
volo.blogging.posts.getListByUserId = function (userId, ajaxParams) {
return abp.ajax($.extend(true, {
url: abp.appPath + 'api/blogging/posts/user/' + userId + '',
type: 'GET'
}, ajaxParams));
};
})();
// controller volo.blogging.tags
@ -176,7 +182,20 @@
};
})();
// controller volo.blogging.members
(function() {
abp.utils.createNamespace(window, 'volo.blogging.members');
volo.blogging.members.get = function (username, ajaxParams) {
return abp.ajax($.extend(true, {
url: abp.appPath + 'api/blogging/members/' + username + '',
type: 'GET'
}, ajaxParams));
};
})();
})();

Loading…
Cancel
Save