How to pass queryParams to API post request using Angular 8

Hi, I have a API call to the server in the below format

/localhost:xxx/api/class/:classId/message?userIds=userId,rollNo&userIds=userId,rollNo&userIds=userId,rollNo

I am trying to make API call like below.

return
this.http.post< any >
(this.url + classId + ‘/message’, body, {params: -----------})

But I’m not getting to pass the params value like above format (userIds=userId,rollNo&userIds=userId,rollNo&userIds=userId,rollNo). How can i achieve this?

Thank You.