buildArk
通过 DSL
语法构建 Message.Ark.
val ark = buildArk("0") {
kvs { // 增加kvs
kv("Key1", "value") // kv
kv("Key2", "value2") {
obj() // empty obj -> { "objKv": [] }
obj {
kv("objKey1", "valueA")
kv("objKey2", "valueB")
}
}
}
}
Content copied to clipboard
根据模板ID构建一个 Message.Ark