Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateActivity ¶
func CreateActivity(context *admin.Context, activity *QorActivity, result interface{}) error
CreateActivity creates an activity for this context
func GetActivitiesCount ¶
GetActivitiesCount get activities's count for selected types
Types ¶
type QorActivity ¶
type QorActivity struct { gorm.Model Action string Content string `sql:"size:5000"` Note string `sql:"size:2000"` Type string ResourceType string ResourceID string CreatorName string audited.AuditedModel }
QorActivity default model used to save resource's activities
func GetActivities ¶
func GetActivities(context *admin.Context, result interface{}, types ...string) ([]QorActivity, error)
GetActivities get activities for selected types
Click to show internal directories.
Click to hide internal directories.