Documentation
¶
Index ¶
Constants ¶
View Source
const ( TargetArticle = "article" TargetReply = "reply" )
View Source
const ( ReasonSpam = "spam" ReasonAbuse = "abuse" ReasonIllegal = "illegal" ReasonIrrelevant = "irrelevant" ReasonOther = "other" )
View Source
const ( StatusOpen = "open" StatusResolved = "resolved" StatusRejected = "rejected" )
View Source
const ( ResolutionBanned = "banned" ResolutionIgnored = "ignored" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CursorPageQuery ¶
type Entity ¶
type Entity struct {
Id uint64 `` /* 167-byte string literal not displayed */
TargetType string `` /* 169-byte string literal not displayed */
TargetId uint64 `` /* 168-byte string literal not displayed */
ArticleId uint64 `` /* 129-byte string literal not displayed */
ReporterId uint64 `` /* 136-byte string literal not displayed */
Reason string `gorm:"column:reason;type:varchar(32);not null;default:'';" json:"reason"`
Note string `gorm:"column:note;type:varchar(300);not null;default:'';" json:"note"`
Status string `` /* 214-byte string literal not displayed */
Resolution string `gorm:"column:resolution;type:varchar(32);not null;default:'';" json:"resolution"`
HandlerId uint64 `gorm:"column:handler_id;type:bigint unsigned;not null;default:0;" json:"handlerId"`
HandledAt *time.Time `gorm:"column:handled_at;" json:"handledAt"`
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime;<-:create;" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}
func CursorPage ¶
func CursorPage(q CursorPageQuery) []Entity
Click to show internal directories.
Click to hide internal directories.