⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 icommentable.cs

📁 如果不使用IIS,请先运行 XSP.exe,待提示已侦听 8080端口后
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Web;


namespace DNNLite.DesktopModules.Comment
{
    /// <summary>
    ///ICommentAble 指示允许使用评论的接口
    ///任何模块只要实现了次接口,就可以使用
    ///内置的评论模块
    /// </summary>
    public interface ICommentAble
    {
        /// <summary>
        /// 给评论模块设置要评论的主题等。
        /// 只会在要使用评论的模块加载在
        /// 页面上的
        /// 情况下调用
        /// </summary>
        /// <returns></returns>
        CommentOption GetCommentOption();

        /// <summary>
        /// 在获取评论或发布评论时
        /// 传入评论key以进行验证
        /// </summary>
        /// <param name="commentkey">要验证的key</param>
        /// <returns></returns>
        CommentOption GetCommentOption(string commentkey);


    }

    /// <summary>
    /// 评论设置项
    /// </summary>
    public class CommentOption
    {
        /// <summary>
        /// 返回被评论对象的唯一标识符
        /// </summary>
        public string CommentKey;

        /// <summary>
        /// 返回评论的主题
        /// </summary>
        public string Subject;

        /// <summary>
        /// 返回是否需要进行评论
        /// 如果不需要,就不显示
        /// 评论框
        /// </summary>
        public bool NeedComment;

        /// <summary>
        /// 返回是否允许进行评论
        /// 如果不允许,表示评论已结束
        /// 只读状态
        /// </summary>
        public bool CanComment;
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -