C# 클래스 ChiakiYu.Service.Blogs.BlogService

상속: IBlogService
파일 보기 프로젝트 열기: andyshao/ChiakiYu

공개 메소드들

메소드 설명
AddBlog ( Blog blog ) : Blog

创建角色

AddOrUpdateBlog ( Blog blog ) : Blog

添加或更新日志:不存在则添加,存在则更新

BlogService ( long>.IRepository blogRepository ) : System.Collections.Generic
GetBlog ( long id ) : Blog

根据主键获取实体

GetBlogs ( GetBlogsInput input ) : PagingList

获取所有用户分页列表

GetBlogsList ( int topNum ) : IEnumerable

根据评论数和浏览数获取前topNum条数据

UpdateBlog ( Blog blog ) : Blog

更新用户

메소드 상세

AddBlog() 공개 메소드

创建角色
public AddBlog ( Blog blog ) : Blog
blog Blog
리턴 Blog

AddOrUpdateBlog() 공개 메소드

添加或更新日志:不存在则添加,存在则更新
public AddOrUpdateBlog ( Blog blog ) : Blog
blog Blog 日志实体
리턴 Blog

BlogService() 공개 메소드

public BlogService ( long>.IRepository blogRepository ) : System.Collections.Generic
blogRepository long>.IRepository
리턴 System.Collections.Generic

GetBlog() 공개 메소드

根据主键获取实体
public GetBlog ( long id ) : Blog
id long 日志id
리턴 Blog

GetBlogs() 공개 메소드

获取所有用户分页列表
public GetBlogs ( GetBlogsInput input ) : PagingList
input ChiakiYu.Service.Blogs.Dto.GetBlogsInput
리턴 PagingList

GetBlogsList() 공개 메소드

根据评论数和浏览数获取前topNum条数据
public GetBlogsList ( int topNum ) : IEnumerable
topNum int 多少条
리턴 IEnumerable

UpdateBlog() 공개 메소드

更新用户
public UpdateBlog ( Blog blog ) : Blog
blog Blog
리턴 Blog