📄 icommentservice.cs
字号:
/*
* ICommentService.cs @Microsoft Visual Studio 2008 <.NET Framework 3.5>
* AfritXia
* 2007-12-11
*
* Copyright(c) http://www.AfritXia.NET/
*
*/
using System;
using System.Collections.Generic;
using System.ServiceModel;
using NET.AfritXia.MyHome.Model.Message;
namespace NET.AfritXia.MyHome.ServiceInterface
{
/// <summary>
/// 评论服务接口
/// </summary>
[ServiceContract]
public interface ICommentService : IService
{
/// <summary>
/// 添加留言
/// </summary>
/// <param name="newComment"></param>
[OperationContract]
void Append(Comment newComment);
/// <summary>
/// 删除评论
/// </summary>
/// <param name="commentUID">评论 ID</param>
[OperationContract]
void Delete(int commentUID);
/// <summary>
/// 浏览评论列表
/// </summary>
/// <param name="belongToArticleID">所属文章 ID</param>
/// <returns></returns>
[OperationContract]
IList<Comment> ViewCommentList(int belongToArticleUID);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -