|
|
|
@ -12,10 +12,7 @@ import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import javax.validation.Valid; |
|
|
|
@ -34,6 +31,11 @@ public class AppShopOrderController {
|
|
|
|
|
@Resource |
|
|
|
|
private PayOrderService payOrderService; |
|
|
|
|
|
|
|
|
|
@GetMapping("/") |
|
|
|
|
public String index(){ |
|
|
|
|
return "Welcome to Zsw"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@PostMapping("/create") |
|
|
|
|
@ApiOperation("创建商城订单") |
|
|
|
|
// @PreAuthenticated // TODO 暂时不加登陆验证,前端暂时没做好
|
|
|
|
|