package initialize import ( "context" model "github.com/flipped-aurora/gin-vue-admin/server/model/system" "github.com/flipped-aurora/gin-vue-admin/server/plugin/plugin-tool/utils" ) func Api(ctx context.Context) { entities := []model.SysApi{ {ApiGroup: "MC", Path: "/MC/getMonitorConfigList", Description: "获取配置列表", Method: "GET"}, {ApiGroup: "MC", Path: "/MC/findMonitorConfig", Description: "查找配置", Method: "GET"}, {ApiGroup: "MC", Path: "/MC/createMonitorConfig", Description: "创建配置", Method: "POST"}, {ApiGroup: "MC", Path: "/MC/deleteMonitorConfig", Description: "删除配置", Method: "DELETE"}, {ApiGroup: "MC", Path: "/MC/deleteMonitorConfigByIds", Description: "批量删除配置", Method: "DELETE"}, {ApiGroup: "MC", Path: "/MC/updateMonitorConfig", Description: "更新配置", Method: "PUT"}, {ApiGroup: "CL", Path: "/CL/getChangeLogList", Description: "获取变更日志列表", Method: "GET"}, {ApiGroup: "CL", Path: "/CL/findChangeLog", Description: "查找变更日志", Method: "GET"}, {ApiGroup: "CL", Path: "/CL/createChangeLog", Description: "创建变更日志", Method: "POST"}, {ApiGroup: "CL", Path: "/CL/deleteChangeLog", Description: "删除变更日志", Method: "DELETE"}, {ApiGroup: "CL", Path: "/CL/deleteChangeLogByIds", Description: "批量删除变更日志", Method: "DELETE"}, {ApiGroup: "CL", Path: "/CL/updateChangeLog", Description: "更新变更日志", Method: "PUT"}, } utils.RegisterApis(entities...) }