|
@@ -13,10 +13,7 @@ import com.dgtly.common.core.page.PageDomain;
|
|
|
import com.dgtly.common.exception.api.LessParamException;
|
|
|
import com.dgtly.goods.domain.GoodsInfo;
|
|
|
import com.dgtly.goods.service.IGoodsInfoService;
|
|
|
-import io.swagger.annotations.ApiImplicitParam;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import io.swagger.annotations.Example;
|
|
|
-import io.swagger.annotations.ExampleProperty;
|
|
|
+import io.swagger.annotations.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -56,7 +53,11 @@ public class GoodsInfoController extends ApiBaseController {
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "热门商品列表")
|
|
|
- @ApiImplicitParam(name = "params" , paramType = "body")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "params" , paramType = "body"),
|
|
|
+ @ApiImplicitParam(name = "language" , paramType = "header")
|
|
|
+ })
|
|
|
+
|
|
|
@PostMapping("/hotlist")
|
|
|
public Object getHotList(){
|
|
|
PageDomain pg1 = new PageDomain();
|