Commit e85e6e0e by 何文超

更新获取商品选择器数据的接口

parent 29f2c09b
......@@ -33,6 +33,16 @@ public class GoodsSelectorController {
return RestResponse.failure(serviceResponse.getCode(), serviceResponse.getMessage());
}
@RequestMapping("get-goods-selector")
public RestResponse getGoodsSelector(Long goodsSelectorId) {
ServiceResponse<GoodsSelectorDTO> serviceResponse = goodsSelectorApiService.getGoodsSelector(goodsSelectorId);
if (serviceResponse.isSuccess()) {
GoodsSelectorVO goodsSelectorVO = EntityUtil.changeEntityByOrika(GoodsSelectorVO.class, serviceResponse.getResult());
return RestResponse.success(goodsSelectorVO);
}
return RestResponse.failure(serviceResponse.getCode(), serviceResponse.getMessage());
}
@RequestMapping("goods-selector-edit-show-back")
public RestResponse goodsSelectorEditShowBack(Long goodsSelectorId) {
......
......@@ -22,13 +22,6 @@ public class GoodsSelectorVO {
*/
private String useType;
/**
* 搜索类型
* 1 skuCode
* 2 skuId
*/
private Integer searchResultType;
private Long findCount;
......@@ -96,14 +89,6 @@ public class GoodsSelectorVO {
this.useType = useType;
}
public Integer getSearchResultType() {
return searchResultType;
}
public void setSearchResultType(Integer searchResultType) {
this.searchResultType = searchResultType;
}
public Long getFindCount() {
return findCount;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment