我在这里看到了很多帖子,但没有找到答案。让我解释一下。我有一个网站和一个facebook页面facebook。com/example.COM。在网站中,每个页面都有一个点赞按钮,因此用户可以点赞示例。com/page,例如。com/page2.所以我不知道当像page1这样的用户在facebook .com/example上增加的时候,有没有可能。com>页面?因此,继续:
facebook . com/example . com has 2 likes.
example . com/page1 has 1 like.
example . com/page1
因此,这段代码应该做的是计算出用户有多少个“赞”,然后将该值作为“UserPhoto.Likes”值返回。目前,我正在获取整个'UserPhoto‘模型,并计算出’like‘,但没有像我希望的那样将这两个模型放在一起。
[HttpGet("{userId}/photo/{photoId}")]
public async Task<IQueryable> GetUserPhoto(int userId, int photoId)
{
var photos = _context.UserPhotos.Where(x =&g
我正在使用Java语言中的YouTube Data API V3,并且我正在尝试“喜欢”一个视频。我使用以下方法:
private static String insertPlaylistItem(String playlistId, String videoId) throws IOException {
// Define a resourceId that identifies the video being added to the
// playlist.
ResourceId resourceId = new ResourceId(