// Package integration contains the built-in integration data and admin
// surface contribution.
package integration

import (
	dataintegration "kra/internal/data/integration"
	"kra/internal/modules/surface"
	"kra/pkg/module"
)

func Definition() module.Definition {
	return module.Definition{
		Name:       "integration",
		Migrations: dataintegration.Migrations(),
		Surface: module.Surface{
			Menus: []module.Menu{{Name: "integrationConfig", Path: "integrationConfig", ParentName: "extensions", Component: "view/systemTools/integration/config.vue", Title: "通信集成", Icon: "connection", Sort: 8}},
			APIs:  surface.APIsForPrefix("/integration/configs", 5),
		},
	}
}
