MCPcopy
hub / github.com/larksuite/cli / buildSearchParams

Function buildSearchParams

shortcuts/vc/vc_search.go:141–153  ·  view source on GitHub ↗
(runtime *common.RuntimeContext)

Source from the content-addressed store, hash-verified

139}
140
141func buildSearchParams(runtime *common.RuntimeContext) map[string]interface{} {
142 params := map[string]interface{}{}
143 pageToken := strings.TrimSpace(runtime.Str("page-token"))
144 pageSize, _ := strconv.Atoi(strings.TrimSpace(runtime.Str("page-size")))
145 if pageSize <= 0 {
146 pageSize = defaultVCSearchPageSize
147 }
148 params["page_size"] = strconv.Itoa(pageSize)
149 if pageToken != "" {
150 params["page_token"] = pageToken
151 }
152 return params
153}
154
155func meetingSearchDisplayInfo(item map[string]interface{}) string {
156 if displayInfo := common.GetString(item, "display_info"); displayInfo != "" {

Callers 2

vc_search.goFile · 0.70
TestBuildSearchParamsFunction · 0.70

Calls 1

StrMethod · 0.65

Tested by 1

TestBuildSearchParamsFunction · 0.56