@@ -31,25 +31,25 @@ public class WxAssistantServiceImpl implements WxAssistantService {
3131 private final BaseWxChannelServiceImpl <?, ?> shopService ;
3232 @ Override
3333 public WxChannelBaseResponse addWindowProduct (AddWindowProductRequest req ) throws WxErrorException {
34- String resJson = shopService .post (ADD_WINDOW_PRODUCT_URL , "{}" );
34+ String resJson = shopService .post (ADD_WINDOW_PRODUCT_URL , req );
3535 return ResponseUtils .decode (resJson , WxChannelBaseResponse .class );
3636 }
3737
3838 @ Override
3939 public GetWindowProductResponse getWindowProduct (WindowProductRequest req ) throws WxErrorException {
40- String resJson = shopService .post (GET_WINDOW_PRODUCT_URL , "{}" );
40+ String resJson = shopService .post (GET_WINDOW_PRODUCT_URL , req );
4141 return ResponseUtils .decode (resJson , GetWindowProductResponse .class );
4242 }
4343
4444 @ Override
4545 public GetWindowProductListResponse getWindowProductList (GetWindowProductListRequest req ) throws WxErrorException {
46- String resJson = shopService .post (LIST_WINDOW_PRODUCT_URL , "{}" );
46+ String resJson = shopService .post (LIST_WINDOW_PRODUCT_URL , req );
4747 return ResponseUtils .decode (resJson , GetWindowProductListResponse .class );
4848 }
4949
5050 @ Override
5151 public WxChannelBaseResponse offWindowProduct (WindowProductRequest req ) throws WxErrorException {
52- String resJson = shopService .post (OFF_WINDOW_PRODUCT_URL , "{}" );
52+ String resJson = shopService .post (OFF_WINDOW_PRODUCT_URL , req );
5353 return ResponseUtils .decode (resJson , WxChannelBaseResponse .class );
5454 }
5555}
0 commit comments