Свойство | Type | Description |
---|
Méthode | Description | |
---|---|---|
Add ( |
创建主题
|
|
Delete ( long id ) : Task |
删除主题
|
|
Edit ( long id, |
编辑主题
|
|
Get ( long id ) : Task |
获取指定ID的主题
|
|
IncreaseVisit ( long topicID ) : void | ||
Query ( int pageIndex, int pageSize, string category = null, string keywords = null, bool isRecommand = null, bool isTop = null ) : Task |
||
QueryByUser ( long userID, int count ) : Task
|
查询用户创建的主题,返回指定数量的数据
|
|
QueryByUser ( long userID, int pageIndex, int pageSize ) : Task |
查询用户创建的主题,返回分页数据
|
|
QueryByUserCollect ( long userID, int pageIndex, int pageSize ) : Task |
||
QueryByUserComment ( long userID, int count ) : Task
|
查询用户最新评论的主题
|
|
QueryByUserComment ( long userID, int pageIndex, int pageSize ) : Task |
查询用户最新评论的主题,返回分页数据
|
|
QueryNoComment ( int count ) : Task
|
||
SetLock ( long id ) : Task |
设置主题锁定状态
|
|
SetRecommand ( long id ) : Task |
设置主题精华
|
|
SetTop ( long id ) : Task |
设置主题置顶
|
|
TopicService ( IServiceProvider serviceProvider, |
||
Transform ( ) : Task
|
public Add ( |
||
model | ||
Résultat | Task |
public Edit ( long id, |
||
id | long | |
model | ||
Résultat | Task |
public IncreaseVisit ( long topicID ) : void | ||
topicID | long | |
Résultat | void |
public Query ( int pageIndex, int pageSize, string category = null, string keywords = null, bool isRecommand = null, bool isTop = null ) : Task |
||
pageIndex | int | |
pageSize | int | |
category | string | |
keywords | string | |
isRecommand | bool | |
isTop | bool | |
Résultat | Task |
public QueryByUser ( long userID, int count ) : Task
|
||
userID | long | |
count | int | |
Résultat | Task
|
public QueryByUser ( long userID, int pageIndex, int pageSize ) : Task |
||
userID | long | |
pageIndex | int | |
pageSize | int | |
Résultat | Task |
public QueryByUserCollect ( long userID, int pageIndex, int pageSize ) : Task |
||
userID | long | |
pageIndex | int | |
pageSize | int | |
Résultat | Task |
public QueryByUserComment ( long userID, int count ) : Task
|
||
userID | long | |
count | int | |
Résultat | Task
|
public QueryByUserComment ( long userID, int pageIndex, int pageSize ) : Task |
||
userID | long | |
pageIndex | int | |
pageSize | int | |
Résultat | Task |
public QueryNoComment ( int count ) : Task
|
||
count | int | |
Résultat | Task
|
public TopicService ( IServiceProvider serviceProvider, |
||
serviceProvider | IServiceProvider | |
categoryService | ||
Résultat | DotNetClub.Domain.Entity |