Documentation
¶
Index ¶
Constants ¶
View Source
const ( SubjectCategory = "category" SubjectTopic = "topic" SubjectPost = "post" SubjectReport = "report" SubjectUser = "user" SubjectSystem = "system" )
View Source
const ( ActionTopicBlocked = "topicBlocked" ActionTopicUnblocked = "topicUnblocked" ActionPostBlocked = "postBlocked" ActionPostUnblocked = "postUnblocked" ActionReportResolved = "reportResolved" ActionReportRejected = "reportRejected" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CursorPageQuery ¶
type CursorPageQuery struct {
Cursor, PageSize uint64
}
type Entity ¶
type Entity struct {
Id uint64 `gorm:"primaryKey;column:id;autoIncrement;not null;" json:"id"`
ActorUserId uint64 `` /* 133-byte string literal not displayed */
Action string `gorm:"column:action;type:varchar(64);not null;default:'';" json:"action"`
SubjectType string `` /* 134-byte string literal not displayed */
SubjectId uint64 `` /* 127-byte string literal not displayed */
Payload Payload `gorm:"column:payload;type:json;serializer:json" json:"payload"`
CreatedAt time.Time `gorm:"column:created_at;autoCreateTime;<-:create;index:idx_moderation_logs_id_desc,priority:1;" json:"createdAt"`
}
func CursorPage ¶
func CursorPage(q CursorPageQuery) []Entity
Click to show internal directories.
Click to hide internal directories.