adsa-cms: Index | Files

package activity

import ""


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 {
    Action       string
    Content      string `sql:"size:5000"`
    Note         string `sql:"size:2000"`
    Type         string
    ResourceType string
    ResourceID   string
    CreatorName  string

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.