(runtime *common.RuntimeContext)
| 141 | } |
| 142 | |
| 143 | func buildBaseCreateBody(runtime *common.RuntimeContext) map[string]interface{} { |
| 144 | body := map[string]interface{}{"name": runtime.Str("name")} |
| 145 | if folderToken := strings.TrimSpace(runtime.Str("folder-token")); folderToken != "" { |
| 146 | body["folder_token"] = folderToken |
| 147 | } |
| 148 | if timeZone := strings.TrimSpace(runtime.Str("time-zone")); timeZone != "" { |
| 149 | body["time_zone"] = timeZone |
| 150 | } |
| 151 | return body |
| 152 | } |
| 153 | |
| 154 | func augmentBasePermissionGrant(runtime *common.RuntimeContext, out, base map[string]interface{}) { |
| 155 | if grant := common.AutoGrantCurrentUserDrivePermission(runtime, extractBasePermissionToken(base), "bitable"); grant != nil { |
no test coverage detected