feat: add DingTalk answer feedback workflow

This commit is contained in:
姚章浩
2026-07-21 15:23:57 +08:00
parent f0d3d5b50d
commit 38560c5f41
19 changed files with 1450 additions and 36 deletions
+10
View File
@@ -218,6 +218,16 @@ func TestCardSendDirectPayload(t *testing.T) {
if paramMap["content"] != "Hello from AI" {
t.Errorf("content=%v", paramMap["content"])
}
for key, want := range map[string]any{
"feedbackSelected": "",
"feedbackReasonSelected": "",
"showFeedbackReasons": "false",
"feedbackMessage": "",
} {
if paramMap[key] != want {
t.Errorf("%s=%v, want %v", key, paramMap[key], want)
}
}
if body["userIdType"] != float64(1) {
t.Errorf("userIdType=%v", body["userIdType"])
}