From db93e8671fe9192dcd3ec5b364b65c672073b56e Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 04 Jun 2021 11:39:19 +0800 Subject: [PATCH] 20210604 --- src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java index a202774..11c2544 100644 --- a/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java +++ b/src/main/java/com/xcong/excoin/modules/otc/controller/OtcController.java @@ -9,6 +9,7 @@ import com.xcong.excoin.modules.otc.entity.*; import com.xcong.excoin.modules.otc.service.OtcService; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -16,6 +17,7 @@ import javax.validation.constraints.NotNull; import java.util.Map; +@Slf4j @Validated @RestController @RequiredArgsConstructor @@ -138,4 +140,14 @@ return otcService.updateOtcSetting(otcSettingEntity); } + /** + * 放币 + */ + @PostMapping("/reduceCoin/{id}") + @ControllerEndpoint(operation = "放币", exceptionMessage = "失败") + public FebsResponse reduceCoin(@PathVariable("id") Long id) { + otcService.reduceCoin(id); + return new FebsResponse().success(); + } + } -- Gitblit v1.9.1