duhuizhe
2024-05-15 aa2c3d4deba76ade0958ff3ced88396e226a4964
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//package com.nuvole.four.client;
//
//import com.nuvole.common.domain.emnu.CommonResultEmnu;
//import com.nuvole.common.domain.result.CommonResult;
//import com.nuvole.common.domain.result.PageBean;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//import org.springframework.web.bind.annotation.GetMapping;
//
//import java.util.Date;
//import java.util.List;
//import java.util.Map;
//
//
//@Component
//@Slf4j
//public class ShopClientFallbackFactory implements FallbackFactory<ShopServiceClient> {
//
//    @Override
//    public ShopServiceClient create(Throwable throwable) {
//        log.error("fallback reason:{}", throwable.getMessage());
//        return new ShopServiceClient() {
//
//            @GetMapping(value = "/v1/shop/pc/storeMerchantShop/getMerchantShopExtendList", consumes = "application/json")
//            @Override
//            public CommonResult<PageBean<Map>> getMerchantShopExtendList(String queryOrgCode, String merchantId, String shopName,
//                                                                         String managerName, String channelId,String channelIdNotNull,
//                                                                         Integer pageNumber, Integer pageSize) {
//                return new CommonResult(CommonResultEmnu.SERVER_ERR);
//            }
//
//            @Override
//            public List<Map> selectShopMsgByIds(String ids) {
//                return null;
//            }
//
//            /**
//             * 商户活动数据统计-列表
//             * @param orgCode       机构code
//             * @param channelId     通道id
//             * @param activityId    活动id
//             * @param startDate     交易开始时间
//             * @param endDate       交易结束时间
//             * @param pageNumber    页码
//             * @param pageSize      每页条数
//             * @return  商户活动数据统计-列表
//             */
//            @Override
//            public CommonResult<PageBean<Map>> merchantActivityList(String orgCode, Long channelId, Long activityId, Date startDate,Date endDate, Integer pageNumber, Integer pageSize) {
//                return new CommonResult(CommonResultEmnu.SERVER_ERR);
//            }
//
//            @Override
//            public CommonResult<Map> merchantActivityCollect(String orgCode, Long channelId, Long activityId, Date startDate,Date endDate) {
//                return new CommonResult(CommonResultEmnu.SERVER_ERR);
//            }
//
//        };
//    }
//}