repositorypackage
0.0.0-20190717155416-1901d52b60d7
Repository: https://github.com/kisrobot/activity.git
Documentation: pkg.go.dev
# README
Activity
Activity is dependant on QOR Admin. It provides QOR Admin with an activity tracking feature for any Resource.
Applying Activity to a Resource will add Comment
and Track
data/state changes within the QOR Admin interface.
Usage
import "github.com/kisrobot/admin"
func main() {
Admin := admin.New(&qor.Config{DB: db})
order := Admin.AddResource(&models.Order{})
// Register Activity for Order resource
activity.Register(order)
}
The above code snippet will add an activity tracking feature to the Order resource in a hypothetical project, which would look a bit like the screenshot below in QOR Admin:
License
Released under the MIT License.