wupengfei
2025-04-21 524b1febe13e9305e9a27c870e09819e0e363bbd
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
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 新增合作的跟进 POST /api/CooperationApply/AddCooperationApplyFllow */
export async function addCooperationApplyFllow(
  body: API.CreateCooperationApplyFllowInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/CooperationApply/AddCooperationApplyFllow', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 新增修改合作申请 POST /api/CooperationApply/CreateOrUpdateCooperationApply */
export async function createOrUpdateCooperationApply(
  body: API.CreateOrUpdateCooperationApplyInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/CooperationApply/CreateOrUpdateCooperationApply', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 创建平台合作 POST /api/CooperationApply/CreatePlatformCooperationApply */
export async function createPlatformCooperationApply(
  body: API.CreatePlatformCooperationApplyInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/CooperationApply/CreatePlatformCooperationApply', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 获取合作的详情 GET /api/CooperationApply/GetCooperationApplyById */
export async function getCooperationApplyById(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetCooperationApplyByIdParams,
  options?: API.RequestConfig
) {
  return request<API.CooperationApplyDto>('/api/CooperationApply/GetCooperationApplyById', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 获取合作的列表 POST /api/CooperationApply/GetCooperationApplyList */
export async function getCooperationApplyList(
  body: API.GetCooperationApplyInput,
  options?: API.RequestConfig
) {
  return request<API.CooperationApplyDtoPageOutput>(
    '/api/CooperationApply/GetCooperationApplyList',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 设置合作状态 POST /api/CooperationApply/SetStatus */
export async function setStatus(
  body: API.SetCooperationApplyStatusInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/CooperationApply/SetStatus', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}