|
@@ -2,14 +2,14 @@ package com.chelvc.cloud.maintain.controller;
|
|
|
|
|
|
import com.chelvc.cloud.vehicle.client.AssetClient;
|
|
import com.chelvc.cloud.vehicle.client.AssetClient;
|
|
import com.chelvc.cloud.vehicle.client.dto.MerchantAssetDTO;
|
|
import com.chelvc.cloud.vehicle.client.dto.MerchantAssetDTO;
|
|
|
|
+import com.chelvc.cloud.vehicle.client.param.WithdrawParam;
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
|
|
+import com.chelvc.framework.base.context.SessionContextHolder;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
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.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 资产管理
|
|
* 资产管理
|
|
@@ -34,4 +34,23 @@ public class AssetController {
|
|
public MerchantAssetDTO getMerchantAsset(@PathVariable("merchantId") Long merchantId) {
|
|
public MerchantAssetDTO getMerchantAsset(@PathVariable("merchantId") Long merchantId) {
|
|
return this.assetClient.getMerchantAsset(merchantId);
|
|
return this.assetClient.getMerchantAsset(merchantId);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 提现接口
|
|
|
|
+ *
|
|
|
|
+ * @param param
|
|
|
|
+ */
|
|
|
|
+ @PutMapping("/asset/withdraw")
|
|
|
|
+ public void withdraw(@RequestBody WithdrawParam param) {
|
|
|
|
+ this.assetClient.withdraw(param);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 提现回调接口
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+ @PutMapping("/asset/withdraw/notify")
|
|
|
|
+ public void withdrawNotify() {
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|