first commit
This commit is contained in:
13
DOAN.Service/Content/IService/IArticleCategoryService.cs
Normal file
13
DOAN.Service/Content/IService/IArticleCategoryService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
17
DOAN.Service/Content/IService/IArticleCommentService.cs
Normal file
17
DOAN.Service/Content/IService/IArticleCommentService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
11
DOAN.Service/Content/IService/IArticlePraiseService.cs
Normal file
11
DOAN.Service/Content/IService/IArticlePraiseService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
32
DOAN.Service/Content/IService/IArticleService.cs
Normal file
32
DOAN.Service/Content/IService/IArticleService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
23
DOAN.Service/Content/IService/IArticleTopicService.cs
Normal file
23
DOAN.Service/Content/IService/IArticleTopicService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user