|
|
@@ -1,10 +1,18 @@
|
|
|
package com.izouma.ticketExchange.web;
|
|
|
|
|
|
+import com.izouma.ticketExchange.exception.BusinessException;
|
|
|
+import com.izouma.ticketExchange.exception.TppException;
|
|
|
import com.izouma.ticketExchange.service.TppService;
|
|
|
+import com.taobao.api.request.FilmDataThirdPartySoonshowsGetRequest;
|
|
|
+import com.taobao.api.response.FilmDataThirdPartySoonshowsGetResponse;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
+import org.springframework.retry.annotation.Backoff;
|
|
|
+import org.springframework.retry.annotation.Retryable;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
@RestController
|
|
|
@AllArgsConstructor
|
|
|
public class TppController {
|
|
|
@@ -29,4 +37,10 @@ public class TppController {
|
|
|
public void syncSchedule() {
|
|
|
tppService.syncSchedules();
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/sync/getSoonShows")
|
|
|
+ public List<FilmDataThirdPartySoonshowsGetResponse.Show> syncSchedule(Long cityId) throws Exception {
|
|
|
+ return tppService.getSoonShows(cityId);
|
|
|
+ }
|
|
|
+
|
|
|
}
|