adsa-cms: github.com/mmanjoura/adsa-cms/activity Index | Files

package activity

import "github.com/mmanjoura/adsa-cms/activity"

Index

Package Files

activity.go controller.go resource.go

func CreateActivity Uses

func CreateActivity(context *admin.Context, activity *QorActivity, result interface{}) error

CreateActivity creates an activity for this context

func GetActivities Uses

func GetActivities(context *admin.Context, types ...string) ([]QorActivity, error)

GetActivities get activities for selected types

func Register Uses

func Register(res *admin.Resource)

Register register activity feature for an qor resource

type QorActivity Uses

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

Package activity imports 14 packages (graph) and is imported by 2 packages. Updated 2017-06-08. Refresh now. Tools for package owners.