mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-23 13:22:08 +08:00
33 lines
832 B
C#
33 lines
832 B
C#
|
|
using System.Collections.Generic;
|
|||
|
|
using Orchard.Comments.Models;
|
|||
|
|
using Orchard.Mvc.ViewModels;
|
|||
|
|
|
|||
|
|
namespace Orchard.Comments.ViewModels {
|
|||
|
|
public class CommentsIndexViewModel : AdminViewModel {
|
|||
|
|
public IList<CommentEntry> Comments { get; set; }
|
|||
|
|
public CommentIndexOptions Options { get; set; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class CommentEntry {
|
|||
|
|
public Comment Comment { get; set; }
|
|||
|
|
public bool IsChecked { get; set; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public class CommentIndexOptions {
|
|||
|
|
public CommentIndexFilter Filter { get; set; }
|
|||
|
|
public CommentIndexBulkAction BulkAction { get; set; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public enum CommentIndexBulkAction {
|
|||
|
|
None,
|
|||
|
|
Delete,
|
|||
|
|
MarkAsSpam,
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public enum CommentIndexFilter {
|
|||
|
|
All,
|
|||
|
|
Approved,
|
|||
|
|
Spam,
|
|||
|
|
}
|
|||
|
|
}
|