Passed
Push — main ( 33cb0c...67dbd0 )
by Abbotton
10:38
created

Alliance::materialsProductCategory()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Abbotton\DouDian\Api;
4
5
use Illuminate\Http\Client\RequestException;
6
use Psr\SimpleCache\InvalidArgumentException;
7
8
class Alliance extends BaseRequest
9
{
10
    /**
11
     * 查询联盟订单明细.
12
     *
13
     * @param array $params
14
     *
15
     * @throws RequestException
16
     * @throws InvalidArgumentException
17
     *
18
     * @return array
19
     */
20
    public function getOrderList(array $params): array
21
    {
22
        return $this->httpPost('alliance/getOrderList', $params);
23
    }
24
25
    /**
26
     * 检索精选联盟商品.
27
     *
28
     * @param array $params
29
     *
30
     * @throws RequestException
31
     * @throws InvalidArgumentException
32
     *
33
     * @return array
34
     */
35
    public function materialsProductsSearch(array $params): array
36
    {
37
        return $this->httpPost('alliance/materialsProductsSearch', $params);
38
    }
39
40
    /**
41
     * 团长活动创建/编辑接口.
42
     *
43
     * @param  array  $params
44
     * @return array
45
     * @throws InvalidArgumentException
46
     * @throws RequestException
47
     */
48
    public function colonelActivityCreateOrUpdate(array $params): array
49
    {
50
        return $this->httpPost('alliance/colonelActivityCreateOrUpdate', $params);
51
    }
52
53
    /**
54
     * 创建活动时候可选择的类目接口.
55
     *
56
     * @param  array  $params
57
     * @return array
58
     * @throws InvalidArgumentException
59
     * @throws RequestException
60
     */
61
    public function activityProductCategoryList(array $params): array
62
    {
63
        return $this->httpPost('alliance/activityProductCategoryList', $params);
64
    }
65
66
    /**
67
     * 团长活动查询接口.
68
     *
69
     * @param  array  $params
70
     * @return array
71
     * @throws InvalidArgumentException
72
     * @throws RequestException
73
     */
74
    public function instituteColonelActivityList(array $params): array
75
    {
76
        return $this->httpPost('alliance/instituteColonelActivityList', $params);
77
    }
78
79
    /**
80
     * 专属团长活动删除接口(下线+删除).
81
     *
82
     * @param  array  $params
83
     * @return array
84
     * @throws InvalidArgumentException
85
     * @throws RequestException
86
     */
87
    public function instituteColonelActivityOperate(array $params): array
88
    {
89
        return $this->httpPost('alliance/instituteColonelActivityOperate', $params);
90
    }
91
92
    /**
93
     * 活动商品查询接口.
94
     *
95
     * @param  array  $params
96
     * @return array
97
     * @throws InvalidArgumentException
98
     * @throws RequestException
99
     */
100
    public function colonelActivityProduct(array $params): array
101
    {
102
        return $this->httpPost('alliance/colonelActivityProduct', $params);
103
    }
104
105
    /**
106
     * 专属团长活动商品审核接口.
107
     *
108
     * @param  array  $params
109
     * @return array
110
     * @throws InvalidArgumentException
111
     * @throws RequestException
112
     */
113
    public function colonelActivityProductAudit(array $params): array
114
    {
115
        return $this->httpPost('alliance/colonelActivityProductAudit', $params);
116
    }
117
118
    /**
119
     * 专属团长活动商品延时接口.
120
     *
121
     * @param  array  $params
122
     * @return array
123
     * @throws InvalidArgumentException
124
     * @throws RequestException
125
     */
126
    public function colonelActivityProductExtension(array $params): array
127
    {
128
        return $this->httpPost('alliance/colonelActivityProductExtension', $params);
129
    }
130
131
    /**
132
     * 类目查询.
133
     *
134
     * @param  array  $params
135
     * @return array
136
     * @throws InvalidArgumentException
137
     * @throws RequestException
138
     */
139
    public function materialsProductCategory(array $params): array
140
    {
141
        return $this->httpPost('alliance/materialsProductCategory', $params);
142
    }
143
}
144