1
我想根据QueryString parameter
值返回不同类型的响应。示例根据ServiceStack中的查询字符串参数值返回不同的ResponseDTO?
http://localhost:8080/myservice?Type=low --> return responseType1
http://localhost:8080/myservice?Type=high --> return responseType2
根据URL中的类型值,我想要在服务中使用不同类型的响应。
下面的东西可以吗? http:// localhost:8080/myservice?Type1 = low - >'return responseType1' http:// localhost:8080/myservice?Type2 = high - >'return responseType2'这里我改变了参数意味着我两种情况都有改变RequestDTO。 – chirag