wupengfei
2025-04-07 1ea740c51e84a80e6eb069846ba4a58438f9795c
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
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 新增企业材料信息 POST /api/EnterpriseMaterial/AddEnterpriseMaterial */
export async function addEnterpriseMaterial(
  body: API.AddEnterpriseMaterialInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/EnterpriseMaterial/AddEnterpriseMaterial', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 获取企业材料信息详情 POST /api/EnterpriseMaterial/GetEnterpriseMaterialDetail */
export async function getEnterpriseMaterialDetail(
  body: API.QueryEnterpriseMaterialDetailInput,
  options?: API.RequestConfig
) {
  return request<API.EnterpriseMaterialDetailOutput>(
    '/api/EnterpriseMaterial/GetEnterpriseMaterialDetail',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 根据用户id和材料类型获取企业材料id GET /api/EnterpriseMaterial/GetEnterpriseMaterialIdByUserId */
export async function getEnterpriseMaterialIdByUserId(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetEnterpriseMaterialIdByUserIdParams,
  options?: API.RequestConfig
) {
  return request<string>('/api/EnterpriseMaterial/GetEnterpriseMaterialIdByUserId', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
 
/** 获取企业材料管理分页列表 POST /api/EnterpriseMaterial/GetEnterpriseMaterialManagePage */
export async function getEnterpriseMaterialManagePage(
  body: API.QueryEnterpriseMaterialManageListInput,
  options?: API.RequestConfig
) {
  return request<API.EnterpriseMaterialManageListOutputPageOutput>(
    '/api/EnterpriseMaterial/GetEnterpriseMaterialManagePage',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 获取我的企业四流材料列表 POST /api/EnterpriseMaterial/GetMyEnterpriseMaterialPage */
export async function getMyEnterpriseMaterialPage(
  body: API.PageInput,
  options?: API.RequestConfig
) {
  return request<API.MyEnterpriseMaterialListOutputPageOutput>(
    '/api/EnterpriseMaterial/GetMyEnterpriseMaterialPage',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 更新企业材料信息 POST /api/EnterpriseMaterial/UpdateEnterpriseMaterial */
export async function updateEnterpriseMaterial(
  body: API.UpdateEnterpriseMaterialInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/EnterpriseMaterial/UpdateEnterpriseMaterial', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}