wupengfei
8 天以前 9b8c27edd8942f84da68c36d9292e14e5f93cc14
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 产品广告下架 GET /api/Product/AdvertiseOffShelf */
export async function advertiseOffShelf(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIadvertiseOffShelfParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Product/AdvertiseOffShelf', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 产品广告上架 GET /api/Product/AdvertiseOnShelf */
export async function advertiseOnShelf(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIadvertiseOnShelfParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Product/AdvertiseOnShelf', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 产品关注/取消关注 GET /api/Product/AttentOrNot */
export async function attentOrNot(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIattentOrNotParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Product/AttentOrNot', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 保存/发布产品 POST /api/Product/CreateProduct */
export async function createProduct(body: API.CreateProductInput, options?: API.RequestConfig) {
  return request<string>('/api/Product/CreateProduct', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品广告新增上架 POST /api/Product/CreateProductAdvertise */
export async function createProductAdvertise(
  body: API.CreateProductAdvertiseInput,
  options?: API.RequestConfig
) {
  return request<string>('/api/Product/CreateProductAdvertise', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 删除产品 GET /api/Product/DeleteProduct */
export async function deleteProduct(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIdeleteProductParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Product/DeleteProduct', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 首页产品热销榜 POST /api/Product/GetHotProductAdvertise */
export async function getHotProductAdvertise(
  body: API.GetHotProductAdvertiseInput,
  options?: API.RequestConfig
) {
  return request<API.HotProductAdvertiseInfo[]>('/api/Product/GetHotProductAdvertise', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品服务--产品热销榜 POST /api/Product/GetHotProductAdvertiseByCategory */
export async function getHotProductAdvertiseByCategory(
  body: API.GetProductAdvertiseByCategoryInput,
  options?: API.RequestConfig
) {
  return request<API.HotProductAdvertiseInfoPageOutput>(
    '/api/Product/GetHotProductAdvertiseByCategory',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 获取产品广告位最后排序 GET /api/Product/GetMaxAdvertiseSequence */
export async function getMaxAdvertiseSequence(options?: API.RequestConfig) {
  return request<number>('/api/Product/GetMaxAdvertiseSequence', {
    method: 'GET',
    ...(options || {}),
  });
}
 
/** 我的关注(产品) POST /api/Product/GetMyAttentions */
export async function getMyAttentions(
  body: API.GetMyProductAttentionsInput,
  options?: API.RequestConfig
) {
  return request<API.MyProductAttentionInfoPageOutput>('/api/Product/GetMyAttentions', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 我的产品 POST /api/Product/GetMyProducts */
export async function getMyProducts(body: API.GetMyProductsInput, options?: API.RequestConfig) {
  return request<API.MyProductInfoPageOutput>('/api/Product/GetMyProducts', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 最近发布产品 GET /api/Product/GetMyRecentProducts */
export async function getMyRecentProducts(options?: API.RequestConfig) {
  return request<API.MyRecentProductDto[]>('/api/Product/GetMyRecentProducts', {
    method: 'GET',
    ...(options || {}),
  });
}
 
/** 获取产品详情 GET /api/Product/GetProduct */
export async function getProduct(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetProductParams,
  options?: API.RequestConfig
) {
  return request<API.ProductDetail>('/api/Product/GetProduct', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 产品广告详情 GET /api/Product/GetProductAdvertise */
export async function getProductAdvertise(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetProductAdvertiseParams,
  options?: API.RequestConfig
) {
  return request<API.ProductAdvertiseDetail>('/api/Product/GetProductAdvertise', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 产品服务--推荐产品 POST /api/Product/GetProductAdvertiseForRecommend */
export async function getProductAdvertiseForRecommend(
  body: API.GetHotProductAdvertiseInput,
  options?: API.RequestConfig
) {
  return request<API.HotProductAdvertiseInfo[]>('/api/Product/GetProductAdvertiseForRecommend', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品广告列表 POST /api/Product/GetProductAdvertisesForManage */
export async function getProductAdvertisesForManage(
  body: API.GetProductAdvertisesForManageInput,
  options?: API.RequestConfig
) {
  return request<API.ProductAdvertiseForManagePageOutput>(
    '/api/Product/GetProductAdvertisesForManage',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 产品详情 GET /api/Product/GetProductForDetail */
export async function getProductForDetail(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetProductForDetailParams,
  options?: API.RequestConfig
) {
  return request<API.ProductDetailInfo>('/api/Product/GetProductForDetail', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 产品服务--产品服务商 POST /api/Product/GetProductsByCategory */
export async function getProductsByCategory(
  body: API.GetProductByCategoryInput,
  options?: API.RequestConfig
) {
  return request<API.ProductDetailForHomePagePageOutput>('/api/Product/GetProductsByCategory', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 首页产品列表 POST /api/Product/GetProductsForHomePage */
export async function getProductsForHomePage(
  body: API.GetProductForHomePageInput,
  options?: API.RequestConfig
) {
  return request<API.ProductDetailForHomePagePageOutput>('/api/Product/GetProductsForHomePage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品管理列表 POST /api/Product/GetProductsForManage */
export async function getProductsForManage(
  body: API.GetProductsForManageInput,
  options?: API.RequestConfig
) {
  return request<API.ProductForManagePageOutput>('/api/Product/GetProductsForManage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品审核列表 POST /api/Product/GetProductsWaitForCheck */
export async function getProductsWaitForCheck(
  body: API.GetProductsWaitForCheckInput,
  options?: API.RequestConfig
) {
  return request<API.ProductWaitForCheckPageOutput>('/api/Product/GetProductsWaitForCheck', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 小程序---我的统计信息 GET /api/Product/GetUserAttentions */
export async function getUserAttentions(options?: API.RequestConfig) {
  return request<API.UserAttentionsDto>('/api/Product/GetUserAttentions', {
    method: 'GET',
    ...(options || {}),
  });
}
 
/** 产品下架 GET /api/Product/OffShelf */
export async function offShelf(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIoffShelfParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Product/OffShelf', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 产品上架 GET /api/Product/OnShelf */
export async function onShelf(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIonShelfParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Product/OnShelf', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 产品浏览 POST /api/Product/ProductBrowse */
export async function productBrowse(body: API.ProductViewInput, options?: API.RequestConfig) {
  return request<number>('/api/Product/ProductBrowse', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品审核 POST /api/Product/ProductCheck */
export async function productCheck(body: API.ProductCheckInput, options?: API.RequestConfig) {
  return request<number>('/api/Product/ProductCheck', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品点赞 POST /api/Product/ProductThumbsUp */
export async function productThumbsUp(body: API.ProductThumbsUpInput, options?: API.RequestConfig) {
  return request<number>('/api/Product/ProductThumbsUp', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品编辑 POST /api/Product/UpdateProduct */
export async function updateProduct(body: API.UpdateProductInput, options?: API.RequestConfig) {
  return request<number>('/api/Product/UpdateProduct', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 产品广告编辑上架 POST /api/Product/UpdateProductAdvertise */
export async function updateProductAdvertise(
  body: API.UpdateProductAdvertiseInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/Product/UpdateProductAdvertise', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 用户产品广告投放 POST /api/Product/UserCreateProductAdvertise */
export async function userCreateProductAdvertise(
  body: API.UserCreateProductAdvertiseInput,
  options?: API.RequestConfig
) {
  return request<string>('/api/Product/UserCreateProductAdvertise', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}