first commit

This commit is contained in:
qianhao.xu
2024-09-23 09:14:22 +08:00
commit fdbe20be5a
407 changed files with 35117 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using DOAN.Model;
using DOAN.Model.Content;
using DOAN.Model.Content.Dto;
namespace DOAN.Service.Content.IService
{
public interface IArticleCategoryService : IBaseService<ArticleCategory>
{
PagedInfo<ArticleCategory> GetList(ArticleCategoryQueryDto parm);
List<ArticleCategory> GetTreeList(ArticleCategoryQueryDto parm);
int AddArticleCategory(ArticleCategory parm);
}
}

View File

@@ -0,0 +1,17 @@
using DOAN.Model;
using DOAN.Model.Content;
using DOAN.Model.Content.Dto;
namespace DOAN.Service.Content.IService
{
public interface IArticleCommentService
{
PagedInfo<ArticleCommentDto> GetMessageList(MessageQueryDto dto);
ArticleComment AddMessage(ArticleComment message);
int PraiseMessage(long mid);
int DeleteMessage(long mid, long userId);
PagedInfo<ArticleCommentDto> GetReplyComments(long mid, MessageQueryDto pager);
PagedInfo<ArticleCommentDto> GetMyMessageList(MessageQueryDto dto);
long TopMessage(long commentId, long top);
}
}

View File

@@ -0,0 +1,11 @@
using DOAN.Model.Content;
namespace DOAN.Service.Content.IService
{
public interface IArticlePraiseService : IBaseService<ArticlePraise>
{
int Praise(ArticlePraise dto);
int CanclePraise(long userid, long articleId);
int PlusPraise(long pid);
}
}

View File

@@ -0,0 +1,32 @@
using DOAN.Model.Content;
using DOAN.Model.Content.Dto;
namespace DOAN.Service.Content.IService
{
public interface IArticleService : IBaseService<Article>
{
PagedInfo<ArticleDto> GetList(ArticleQueryDto parm);
PagedInfo<ArticleDto> GetMyList(ArticleQueryDto parm);
/// <summary>
/// 修改文章管理
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public int UpdateArticle(Article model);
PagedInfo<ArticleDto> GetArticleList(ArticleQueryDto parm);
PagedInfo<ArticleDto> GetMonentList(ArticleQueryDto parm);
PagedInfo<ArticleDto> GetFollowMonentList(ArticleQueryDto parm);
int TopArticle(Article model);
int ChangeComment(Article model);
int ChangeArticlePublic(Article model);
int UpdateArticleHit(long cid);
int PraiseArticle(long cid);
int CancelPraise(long cid);
Article PublishArticle(Article article);
Article PublishMonent(Article article);
ArticleDto GetArticle(long cid, long userId);
int Passed(long[] idsArr);
int Reject(string reason, long[] idsArr);
}
}

View File

@@ -0,0 +1,23 @@
using DOAN.Model;
using DOAN.Model.Content;
using DOAN.Model.Content.Dto;
namespace DOAN.Service.Content.IService
{
/// <summary>
/// 文章话题service接口
/// </summary>
public interface IArticleTopicService : IBaseService<ArticleTopic>
{
PagedInfo<ArticleTopicDto> GetList(ArticleTopicQueryDto parm);
ArticleTopic GetInfo(long TopicId);
ArticleTopic AddArticleTopic(ArticleTopic parm);
int UpdateArticleTopic(ArticleTopic parm);
List<ArticleTopicDto> GetTopicList(ArticleTopicQueryDto parm);
PagedInfo<ArticleTopicDto> ExportList(ArticleTopicQueryDto parm);
}
}