优化出参

This commit is contained in:
dengli
2023-12-16 18:57:34 +08:00
parent 04428cb272
commit dff247e1d3

View File

@@ -127,6 +127,9 @@ public class StockApiController {
ParamUtils.verify("股票代码", stockCode, ParamUtils.STRING_NOT_EMPTY_VERIFY_AND_CONVERT_VALUE); ParamUtils.verify("股票代码", stockCode, ParamUtils.STRING_NOT_EMPTY_VERIFY_AND_CONVERT_VALUE);
IndiaStockVO market = InvestingApis.of().market(StockCode.of(stockCode)); IndiaStockVO market = InvestingApis.of().market(StockCode.of(stockCode));
if (market == null) {
return ServerResponse.createByErrorMsg("tips.msg.221");
}
return ServerResponse.createBySuccess(market.toStockVo()); return ServerResponse.createBySuccess(market.toStockVo());
} }