Update microservice.hpp

[#2061] support more data types