MCPcopy Create free account
hub / github.com/bytebase/bytebase / getWecomConfig

Function getWecomConfig

backend/plugin/webhook/wecom/wecom.go:24–34  ·  view source on GitHub ↗

getWecomConfig extracts the WeCom configuration from the AppIMSetting.

(setting *storepb.AppIMSetting)

Source from the content-addressed store, hash-verified

22
23// getWecomConfig extracts the WeCom configuration from the AppIMSetting.
24func getWecomConfig(setting *storepb.AppIMSetting) *storepb.AppIMSetting_Wecom {
25 if setting == nil {
26 return nil
27 }
28 for _, s := range setting.Settings {
29 if s.Type == storepb.WebhookType_WECOM {
30 return s.GetWecom()
31 }
32 }
33 return nil
34}
35
36// WebhookResponse is the API message for WeCom webhook response.
37type WebhookResponse struct {

Callers 1

sendDirectMessageMethod · 0.85

Calls 1

GetWecomMethod · 0.45

Tested by

no test coverage detected