mirror of
https://github.com/larksuite/cli.git
synced 2026-07-09 02:14:02 +08:00
Compare commits
1 Commits
fix/skill-
...
feat/bot-v
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a367d2c02 |
@@ -34,6 +34,8 @@ var VCMeetingJoin = common.Shortcut{
|
||||
{Name: "meeting-number", Required: true, Desc: "meeting number to join"},
|
||||
{Name: "password", Desc: "meeting password (if required)"},
|
||||
{Name: "call-id", Desc: "correlation id forwarded from invite event"},
|
||||
{Name: "view-url", Desc: "view URL forwarded to meeting participants"},
|
||||
{Name: "view-url-status", Desc: "view URL status"},
|
||||
},
|
||||
Validate: func(ctx context.Context, runtime *common.RuntimeContext) error {
|
||||
mn := strings.TrimSpace(runtime.Str("meeting-number"))
|
||||
@@ -95,5 +97,11 @@ func buildMeetingJoinBody(runtime *common.RuntimeContext) map[string]interface{}
|
||||
if cid := strings.TrimSpace(runtime.Str("call-id")); cid != "" {
|
||||
body["call_id"] = cid
|
||||
}
|
||||
if viewURL := strings.TrimSpace(runtime.Str("view-url")); viewURL != "" {
|
||||
body["view_url"] = viewURL
|
||||
}
|
||||
if viewURLStatus := strings.TrimSpace(runtime.Str("view-url-status")); viewURLStatus != "" {
|
||||
body["view_url_status"] = viewURLStatus
|
||||
}
|
||||
return body
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user