53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using LiveForum.Code.Base;
|
|
using LiveForum.Model.Dto.PostComments;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LiveForum.IService.Posts
|
|
{
|
|
/// <summary>
|
|
/// 帖子评论服务接口
|
|
/// </summary>
|
|
public interface IPostCommentsService
|
|
{
|
|
/// <summary>
|
|
/// 获取评论列表
|
|
/// </summary>
|
|
/// <param name="request">请求参数</param>
|
|
/// <returns></returns>
|
|
Task<BaseResponse<GetPostCommentsRespDto>> GetPostComments(GetPostCommentsReq request);
|
|
|
|
/// <summary>
|
|
/// 获取评论回复列表
|
|
/// </summary>
|
|
/// <param name="request">请求参数</param>
|
|
/// <returns></returns>
|
|
Task<BaseResponse<GetCommentsRepliesRespDto>> GetCommentsReplies(GetCommentsRepliesReq request);
|
|
|
|
/// <summary>
|
|
/// 发表评论
|
|
/// </summary>
|
|
/// <param name="request">请求参数</param>
|
|
/// <returns></returns>
|
|
Task<BaseResponse<PublishPostCommentsRespDto>> PublishPostComments(PublishPostCommentsReq request);
|
|
|
|
/// <summary>
|
|
/// 删除评论
|
|
/// </summary>
|
|
/// <param name="request">请求参数</param>
|
|
/// <returns></returns>
|
|
Task<BaseResponseBool> DeletePostComments(DeletePostCommentsReq request);
|
|
|
|
/// <summary>
|
|
/// 点赞/取消点赞评论
|
|
/// </summary>
|
|
/// <param name="request">请求参数</param>
|
|
/// <returns></returns>
|
|
Task<BaseResponse<LikeCommentRespDto>> LikeComment(LikeCommentReq request);
|
|
}
|
|
}
|