hjl
2024-07-05 428519bd1056dd90cd4589dbf85b380e403ff254
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package com.ruoyi.admin.api.feignClient;
 
import com.ruoyi.admin.api.entity.*;
import com.ruoyi.admin.api.factory.AdminFallbackFactory;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.List;
 
/**
 * @author HJL
 * @since 2024.05.29
 */
@FeignClient(contextId = "UserClient", value = ServiceNameConstants.ADMIN_SERVICE, fallbackFactory = AdminFallbackFactory.class)
public interface AdminClient {
 
    /**
     * 根据前台用户id查询所有订单信息
     *
     * @param phone 手机号
     * @return 订单信息
     */
    @GetMapping(value = "/order/queryList")
    R<List<Order>> queryList(@RequestParam("phone") String phone);
 
    /**
     * 根据类型获取注册协议、隐私政策、司机操作指南
     *
     * @param type 查询类型
     * @return 详细数据
     */
    @GetMapping(value = "/agreement/dataInfo")
    R<Agreement> dataInfo(@RequestParam("type") Integer type);
 
    /**
     * 新增订单改派
     *
     * @param changeDispatch 改派信息
     * @return 详细数据
     */
    @PostMapping(value = "/changeDispatch/changeDispatchSave")
    R<Boolean> changeDispatchSave(@RequestBody ChangeDispatch changeDispatch);
 
    /**
     * 订单改派详情
     *
     * @param id 订单id
     * @return 改派订单
     */
    @GetMapping(value = "/changeDispatch/changeDispatchOne")
    R<ChangeDispatch> changeDispatchOne(@RequestParam("id") Integer id);
 
    /**
     * 系统通知列表
     *
     * @return 通知公告列表
     */
    @GetMapping(value = "/notices/list")
    R<List<Notices>> noticesList();
 
    /**
     * 轮播图列表
     *
     * @return 轮播图列表
     */
    @GetMapping(value = "/rotate/bannerList")
    R<List<Rotate>> bannerList();
 
    /**
     * 服务优势查询列表
     *
     * @return 服务优势列表
     */
    @GetMapping(value = "/advantage/advantageList")
    R<List<ServeAdvantage>> advantageList();
 
    /**
     * 常见问题查询列表
     *
     * @return 列表
     */
    @GetMapping(value = "/problem/problemList")
    R<List<Problem>> problemList();
 
    /**
     * 获取奖品列表
     *
     * @return 奖品列表
     */
    @GetMapping(value = "/prize/prizeList")
    R<List<Prize>> prizeList();
 
    /**
     * 修改系统设置-关闭/开启审核
     *
     * @return 操作结果
     */
    @GetMapping(value = "/userManage/withdrawProcess")
    R<WithdrawalSetting> withdrawProcess();
 
}