You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
612 B
20 lines
612 B
package com.woniu.controller;
|
|
|
|
import com.woniu.anno.Idempotent;
|
|
import com.woniu.req.Order;
|
|
import com.woniu.req.RequestData;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@RestController
|
|
@RequestMapping("/order")
|
|
public class OrderController {
|
|
|
|
@RequestMapping("/saveOrder")
|
|
@Idempotent(name = "requestData", type = RequestData.class, field = "token")
|
|
public String saveOrder(@RequestBody RequestData<Order> requestData) {
|
|
return "success";
|
|
}
|
|
|
|
}
|