메소드 | 설명 | |
---|---|---|
AddBlog ( Blog blog ) : Blog |
创建角色
|
|
AddOrUpdateBlog ( Blog blog ) : Blog |
添加或更新日志:不存在则添加,存在则更新
|
|
BlogService ( long>.IRepository |
||
GetBlog ( long id ) : Blog |
根据主键获取实体
|
|
GetBlogs ( |
获取所有用户分页列表
|
|
GetBlogsList ( int topNum ) : IEnumerable |
根据评论数和浏览数获取前topNum条数据
|
|
UpdateBlog ( Blog blog ) : Blog |
更新用户
|
public BlogService ( long>.IRepository |
||
blogRepository | long>.IRepository | |
리턴 | System.Collections.Generic |
public GetBlogs ( |
||
input | ||
리턴 | PagingList |
public GetBlogsList ( int topNum ) : IEnumerable |
||
topNum | int | 多少条 |
리턴 | IEnumerable |