Browse Source

入网回调

igl 3 months ago
parent
commit
75099a3963

+ 10 - 11
src/main/java/com/chelvc/cloud/maintain/controller/MerchantController.java

@@ -16,23 +16,14 @@ import com.chelvc.cloud.vehicle.client.dto.BalanceDetailDTO;
 import com.chelvc.cloud.vehicle.client.dto.MerchantDTO;
 import com.chelvc.cloud.vehicle.client.dto.MerchantDTO;
 import com.chelvc.cloud.vehicle.client.dto.MerchantDetailDTO;
 import com.chelvc.cloud.vehicle.client.dto.MerchantDetailDTO;
 import com.chelvc.cloud.vehicle.client.dto.MerchantRankDTO;
 import com.chelvc.cloud.vehicle.client.dto.MerchantRankDTO;
-import com.chelvc.cloud.vehicle.client.param.LocationQueryParam;
-import com.chelvc.cloud.vehicle.client.param.MerchantQueryParam;
-import com.chelvc.cloud.vehicle.client.param.MerchantQueryParamPaging;
-import com.chelvc.cloud.vehicle.client.param.MerchantRankParam;
-import com.chelvc.cloud.vehicle.client.param.OmsCartItemPagingParam;
-import com.chelvc.cloud.vehicle.client.param.QueryMerchantBalanceParam;
+import com.chelvc.cloud.vehicle.client.param.*;
 import com.chelvc.framework.base.annotation.ResponseWrapping;
 import com.chelvc.framework.base.annotation.ResponseWrapping;
 import com.chelvc.framework.base.context.SessionContextHolder;
 import com.chelvc.framework.base.context.SessionContextHolder;
 import com.chelvc.framework.common.model.Pagination;
 import com.chelvc.framework.common.model.Pagination;
 import lombok.RequiredArgsConstructor;
 import lombok.RequiredArgsConstructor;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.PutMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 
 /**
 /**
  * 商家接口
  * 商家接口
@@ -176,4 +167,12 @@ public class MerchantController {
         this.merchantClient.updateMerchantBusinessStatus(id, businessStatus);
         this.merchantClient.updateMerchantBusinessStatus(id, businessStatus);
     }
     }
 
 
+    /**
+     * 子商户入网回调接口
+     *
+     */
+    @PostMapping("/merchant/apply/notify")
+    public void merchantApplyNotify(@RequestBody MerchantApplyRecordParam param) {
+        this.merchantClient.merchantApplyNotify(param);
+    }
 }
 }