|
@@ -3,10 +3,13 @@ package com.zswl.cloud.springBtach.server.core.controller;
|
|
import com.github.microservice.auth.client.content.ResultContent;
|
|
import com.github.microservice.auth.client.content.ResultContent;
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
|
+import com.zhongshu.payment.client.model.order.v2.CreatOrderResultModel;
|
|
|
|
+import com.zswl.cloud.springBatch.client.model.ypp.request.CreateOrdereRquest;
|
|
import com.zswl.cloud.springBtach.server.core.service.YppService;
|
|
import com.zswl.cloud.springBtach.server.core.service.YppService;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.log4j.Log4j2;
|
|
import lombok.extern.log4j.Log4j2;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -23,6 +26,12 @@ public class YppController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation("创建订单")
|
|
|
|
+ @ResourceAuth(value = "user", type = AuthType.User)
|
|
|
|
+ @RequestMapping(value = "create_order", method = RequestMethod.POST)
|
|
|
|
+ public ResultContent<CreatOrderResultModel> create_order2(@RequestBody CreateOrdereRquest createOrdereRquest) {
|
|
|
|
+ return yppService.create_order(createOrdereRquest);
|
|
|
|
+ }
|
|
@ApiOperation("热映电影(pageIndex从0开始)")
|
|
@ApiOperation("热映电影(pageIndex从0开始)")
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
@RequestMapping(value = "movies", method = RequestMethod.GET)
|
|
@RequestMapping(value = "movies", method = RequestMethod.GET)
|