wupengfei
8 天以前 bd20a385dd86cf32735578c4c140a0aebf758e45
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
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 广告点击 POST /api/AdvertiseOnShow/AdvertiseOnShowClick */
export async function advertiseOnShowClick(
  body: API.AdvertiseOnShowClickInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/AdvertiseOnShow/AdvertiseOnShowClick', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 新增编辑广告 POST /api/AdvertiseOnShow/CreateOrEditAdvertiseOnShow */
export async function createOrEditAdvertiseOnShow(
  body: API.CreateOrEditAdvertiseOnShowInput,
  options?: API.RequestConfig
) {
  return request<string>('/api/AdvertiseOnShow/CreateOrEditAdvertiseOnShow', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 删除广告 DELETE /api/AdvertiseOnShow/DeleteAdvertiseOnShow */
export async function deleteAdvertiseOnShow(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIdeleteAdvertiseOnShowParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/AdvertiseOnShow/DeleteAdvertiseOnShow', {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 获取广告详情 GET /api/AdvertiseOnShow/GetAdvertiseOnShowInfo */
export async function getAdvertiseOnShowInfo(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetAdvertiseOnShowInfoParams,
  options?: API.RequestConfig
) {
  return request<API.AdvertiseOnShowDto>('/api/AdvertiseOnShow/GetAdvertiseOnShowInfo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 获取广告列表 POST /api/AdvertiseOnShow/GetAdvertiseOnShowList */
export async function getAdvertiseOnShowList(
  body: API.AdvertiseOnShowListInput,
  options?: API.RequestConfig
) {
  return request<API.AdvertiseOnShowDtoPageOutput>('/api/AdvertiseOnShow/GetAdvertiseOnShowList', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 根据页面获取该页需要呈现的广告 GET /api/AdvertiseOnShow/GetAdvertiseOnShowListByPageType */
export async function getAdvertiseOnShowListByPageType(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetAdvertiseOnShowListByPageTypeParams,
  options?: API.RequestConfig
) {
  return request<API.AdvertiseOnShowDto[]>(
    '/api/AdvertiseOnShow/GetAdvertiseOnShowListByPageType',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
 
/** 设置广告状态 POST /api/AdvertiseOnShow/SetAdvertiseOnShowStatus */
export async function setAdvertiseOnShowStatus(
  body: API.AdvertiseOnShowStatusInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/AdvertiseOnShow/SetAdvertiseOnShowStatus', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}