package com.zswl.cloud.springBtach.server.boot;

import com.github.microservice.auth.client.content.ResultContent;
import com.github.microservice.auth.client.service.EnterpriseService;
import com.zhongshu.payment.client.model.payment.SubOrdersConfirmResponseModel;
import com.zhongshu.payment.client.service.v2.PaymentService2;
import com.zswl.cloud.springBtach.server.core.api.xiaoju.XiaoJuApi;
import com.zswl.cloud.springBtach.server.core.api.ypp.YppApi;
import com.zswl.cloud.springBtach.server.core.controller.TestSpringBatch;
import com.zswl.cloud.springBtach.server.core.service.OrderServiceImp;
import lombok.extern.log4j.Log4j2;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@Log4j2
public class ServerApplicationTests {
    @Autowired
    YppApi piaoPiaoApi;

    @Autowired
    TestSpringBatch testSpringBatch;

    @Autowired
    OrderServiceImp orderService;


    @Autowired
    EnterpriseService enterpriseService;

    @Autowired
    PaymentService2 paymentService2;

    @Autowired
    XiaoJuApi xiaoJuApi;
    @Test
    public void test1() {
        ResultContent<SubOrdersConfirmResponseModel> subOrdersConfirmResponseModelResultContent = paymentService2.subOrdersConfirm("66043b7f41096a5155e6c377", "65fe7c9174d67a7dbd842b74");
        System.out.println(subOrdersConfirmResponseModelResultContent);


////        JSONObject movies = piaoPiaoApi.movies("9", "0", "20");
////        System.out.println(movies);
//        System.out.println(piaoPiaoApi.movie_detail("194856"));
//
//        JSONObject citys = piaoPiaoApi.get_citys();
////
//        JSONUtil.toJsonStr(piaoPiaoApi.movies("103", "1", "40"));
////        System.out.println(citys);
//        System.out.println("dddddddddddddddddddddd");
    }

    @Test
    public void test2() {
        String s = xiaoJuApi.queryToken();

        System.out.println(s);


    }

    @Test
    public void test3(){

//        CreateOrderModel createOrderModel = new CreateOrderModel();
//        createOrderModel.setJobFlowMap(JobFlowMap.P81);
//        ResultContent creat = orderService.creat(createOrderModel);
//
//        log.info("执行结果：{}",JSONUtil.toJsonStr(creat));

    }
}
