|
@@ -6,6 +6,9 @@ import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+/**
|
|
|
+ * 下单接口类
|
|
|
+ */
|
|
|
@RestController
|
|
|
@RefreshScope
|
|
|
public class MakeOrderRest {
|
|
@@ -13,8 +16,13 @@ public class MakeOrderRest {
|
|
|
@Value("${project.name}")
|
|
|
private String swagger;
|
|
|
|
|
|
- @RequestMapping("/test")
|
|
|
- public String test(MakeOrderParam makeOrderParam) {
|
|
|
+ /**
|
|
|
+ * 下单接口
|
|
|
+ *
|
|
|
+ * @param makeOrderParam 下单参数
|
|
|
+ */
|
|
|
+ @RequestMapping("/makeOrder")
|
|
|
+ public String makeOrder(MakeOrderParam makeOrderParam) {
|
|
|
return swagger;
|
|
|
}
|
|
|
}
|