new:MCP及openapi新增技能特殊属性查询

This commit is contained in:
2026-06-12 13:22:09 +08:00
parent d17d340c20
commit 729e08046d
7 changed files with 91 additions and 15 deletions
+5 -1
View File
@@ -213,7 +213,11 @@ func NewRouter(dep Dependencies) http.Handler {
})
r.Get("/{jobId}/{jobGrowId}/skills/", func(w http.ResponseWriter, r *http.Request) {
data, err := dep.OpenAPIService.SkillsByJob(chi.URLParam(r, "jobId"), chi.URLParam(r, "jobGrowId"))
data, err := dep.OpenAPIService.SkillsByJob(
chi.URLParam(r, "jobId"),
chi.URLParam(r, "jobGrowId"),
r.URL.Query().Get("descSpecial"),
)
if err != nil {
writeError(w, http.StatusNotFound, err)
return