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 `gorm:"column:actor_user_id;not null;default:0;index:idx_moderation_logs_actor_id,priority:1;" json:"actorUserId"`
Action string `gorm:"column:action;type:varchar(64);not null;default:'';" json:"action"`
SubjectType string `` /* 134-byte string literal not displayed */
SubjectId uint64 `gorm:"column:subject_id;not null;default:0;index:idx_moderation_logs_subject,priority:2;" json:"subjectId"`
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.