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)
| 270 | // @Success 200 {object} model.CommonResponse |
| 271 | // @Router /api/admin/skill-library/reload [post] |
| 272 | func 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 后台技能列表 |
nothing calls this directly
no test coverage detected