|
@@ -22,7 +22,7 @@ func Quote(c *gin.Context) {
|
|
|
// @Security ApiKeyAuth
|
|
// @Security ApiKeyAuth
|
|
|
// @accept application/json
|
|
// @accept application/json
|
|
|
// @Produce application/json
|
|
// @Produce application/json
|
|
|
-// @Param data body request.QuoteSubscribeReq true "入参"
|
|
|
|
|
|
|
+// @Param data body request.QuoteSubscribeReq true "入参1"
|
|
|
// @Success 200 {object} response.Response{msg=string} "出参"
|
|
// @Success 200 {object} response.Response{msg=string} "出参"
|
|
|
// @Router /Quote/QuoteSubscribe [post]
|
|
// @Router /Quote/QuoteSubscribe [post]
|
|
|
// @Tags 实时行情
|
|
// @Tags 实时行情
|
|
@@ -35,5 +35,7 @@ func QuoteSubscribe(c *gin.Context) {
|
|
|
|
|
|
|
|
if err := quote.QuoteSubscribe(c, req); err != nil {
|
|
if err := quote.QuoteSubscribe(c, req); err != nil {
|
|
|
response.FailWithMessage(err.Error(), c)
|
|
response.FailWithMessage(err.Error(), c)
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
|
|
+ response.OkWithMessage("订阅成功", c)
|
|
|
}
|
|
}
|