like this?
var msg=[
{content: {a: 111, b: "ccc"}, uid: {a: 111, b: 222, c: 333, flag: {f1: false, f2: true, f3: false}}},
{content: {a: 222, b: "ccc"}, uid: {a: 444, b: 555, c: 666, flag: {f1: true, f2: true, f3: false}}}
];
or is it something like this? In the first way, it is very difficult to transfer the uid data to the subcomponents to process the data. the following writing method is much easier for the subcomponents to deal with. This is just the data I simulated. I don"t know what it will be like to receive it from the background in the future. Which of these two formats is more formal?
var msg: [
{content: {a: 111, b: "ccc"}, uid: {num: [111, 222, 333], flag: [false, true, true]}},
{content: {a: 222, b: "ccc"}, uid: {num: [444, 555, 666], flag: [false, true, true]}}
]