MCPcopy Index your code
hub / github.com/53AI/53AIHub / AdminReloadSkillManager

Function AdminReloadSkillManager

api/controller/skill_library_admin.go:272–279  ·  view source on GitHub ↗

AdminReloadSkillManager godoc @Summary 手动重载技能管理器 @Description 手动刷新技能管理器缓存,适用于特殊场景下的技能目录变更同步 @Tags 技能库-后台 @Accept json @Produce json @Security BearerAuth @Success 200 {object} model.CommonResponse @Router /api/admin/skill-library/reload [post]

(c *gin.Context)

Source from the content-addressed store, hash-verified

270// @Success 200 {object} model.CommonResponse
271// @Router /api/admin/skill-library/reload [post]
272func AdminReloadSkillManager(c *gin.Context) {
273 svc := service.NewSkillLibraryService()
274 if err := svc.ReloadSkillManager(c.Request.Context()); err != nil {
275 c.JSON(http.StatusInternalServerError, model.DBError.ToErrorResponse(err))
276 return
277 }
278 c.JSON(http.StatusOK, model.Success.ToResponse(nil))
279}
280
281// AdminListSkillLibraries godoc
282// @Summary 后台技能列表

Callers

nothing calls this directly

Calls 3

ReloadSkillManagerMethod · 0.95
ToErrorResponseMethod · 0.80
ToResponseMethod · 0.80

Tested by

no test coverage detected