zhengyiming
2 天以前 add9b3bb61fcc337b02c15e7973967d670e7d3be
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 评论审核 POST /api/Purchase/CommentCheck */
export async function commentCheck(body: API.CommentCheckInput, options?: API.RequestConfig) {
  return request<number>('/api/Purchase/CommentCheck', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 退款处理 POST /api/Purchase/DealWithRefund */
export async function dealWithRefund(body: API.DealWithRefundInput, options?: API.RequestConfig) {
  return request<number>('/api/Purchase/DealWithRefund', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品购买信息删除 GET /api/Purchase/DeleteMyPurchase */
export async function deleteMyPurchase(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIdeleteMyPurchaseParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Purchase/DeleteMyPurchase', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 评论审核列表 POST /api/Purchase/GetCommentsForManage */
export async function getCommentsForManage(
  body: API.GetCommentsForManageInput,
  options?: API.RequestConfig
) {
  return request<API.CommentForManagePageOutput>('/api/Purchase/GetCommentsForManage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 详情页---商品评论 POST /api/Purchase/GetCommentsForProduct */
export async function getCommentsForProduct(
  body: API.GetCommentsForProductInput,
  options?: API.RequestConfig
) {
  return request<API.CommentForProductPageOutput>('/api/Purchase/GetCommentsForProduct', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 我的买入 POST /api/Purchase/GetMyPurchases */
export async function getMyPurchases(body: API.GetMyPurchasesInput, options?: API.RequestConfig) {
  return request<API.MyPurchaseDtoPageOutput>('/api/Purchase/GetMyPurchases', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 最近购买产品 GET /api/Purchase/GetMyRecentPurchases */
export async function getMyRecentPurchases(options?: API.RequestConfig) {
  return request<API.MyRecentPurchaseDto[]>('/api/Purchase/GetMyRecentPurchases', {
    method: 'GET',
    ...(options || {}),
  });
}
 
/** 我的卖出 POST /api/Purchase/GetMySells */
export async function getMySells(body: API.GetMySellsInput, options?: API.RequestConfig) {
  return request<API.MySellDtoPageOutput>('/api/Purchase/GetMySells', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 平台交易列表 POST /api/Purchase/GetPlatFormPurchases */
export async function getPlatFormPurchases(
  body: API.GetPlatFormPurchasesInput,
  options?: API.RequestConfig
) {
  return request<API.PlatFormPurchasePageOutput>('/api/Purchase/GetPlatFormPurchases', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 买入产品确认验收 GET /api/Purchase/MyPurchaseCheck */
export async function myPurchaseCheck(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APImyPurchaseCheckParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Purchase/MyPurchaseCheck', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 购买产品评论 POST /api/Purchase/PurchasedProductComment */
export async function purchasedProductComment(
  body: API.PurchasedProductCommentInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Purchase/PurchasedProductComment', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品评论---点赞 POST /api/Purchase/PurchasedProductCommentThumbsUp */
export async function purchasedProductCommentThumbsUp(
  body: API.PurchasedProductCommentThumbsUpInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Purchase/PurchasedProductCommentThumbsUp', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 购买 POST /api/Purchase/PurchaseProduct */
export async function purchaseProduct(
  body: API.CreatePurchasedProductInput,
  options?: API.RequestConfig
) {
  return request<string>('/api/Purchase/PurchaseProduct', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 退款申请 POST /api/Purchase/RefundApply */
export async function refundApply(body: API.RefundApplyInput, options?: API.RequestConfig) {
  return request<number>('/api/Purchase/RefundApply', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}