Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

801 B
Raw Blame
package query

import (
	"time"

	"github.com/getfider/fider/app/models/entity"
)

type ModerationItem struct {
	Type       string                `json:"type"` // "post" or "comment"
	ID         int                   `json:"id"`
	PostID     int                   `json:"postId,omitempty"`
	PostNumber int                   `json:"postNumber,omitempty"`
	PostSlug   string                `json:"postSlug,omitempty"`
	Title      string                `json:"title,omitempty"`
	Content    string                `json:"content"`
	User       *entity.UserWithEmail `json:"user"`
	CreatedAt  time.Time             `json:"createdAt"`
	PostTitle  string                `json:"postTitle,omitempty"`
}

type GetModerationItems struct {
	Result []*ModerationItem
}

type GetModerationCount struct {
	Result int
}