|
|
@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
19
|
19
|
* <p>鉴权:请求头 {@code X-Fe-Ai-Key}(见 {@code fe.internal.ai-key}),不走 JWT。</p>
|
|
20
|
20
|
*/
|
|
21
|
21
|
@RestController
|
|
22
|
|
-@RequestMapping("/internal/fe/drafts")
|
|
|
22
|
+@RequestMapping("/api/mcp/drafts")
|
|
23
|
23
|
@Tag(name = "内网-AI工具", description = "供智能体 HTTP 回调,使用 X-Fe-Ai-Key 鉴权")
|
|
24
|
24
|
public class InternalDraftController {
|
|
25
|
25
|
|
|
|
@@ -29,7 +29,7 @@ public class InternalDraftController {
|
|
29
|
29
|
this.draftService = draftService;
|
|
30
|
30
|
}
|
|
31
|
31
|
|
|
32
|
|
- @PostMapping
|
|
|
32
|
+ @PostMapping("/genernate")
|
|
33
|
33
|
@Operation(summary = "创建用工草稿",
|
|
34
|
34
|
description = "AI 子模块根据对话上下文生成草稿后调用。写入 fe_employment_draft 与 fe_draft_field,"
|
|
35
|
35
|
+ "返回 draftId 供小程序 card_payload / next_action 跳转。",
|