wupengfei
2025-04-11 a6a9d5611d19325ff9d6d6db1bc8a2c4489f53e5
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
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 添加系统 模板数据参数字典 POST /api/LgGigWorkerCustomerTemplateParam/AddSystemTemplateDataParamSetting */
export async function addSystemTemplateDataParamSetting(
  body: API.AddSystemTemplateDataParamSettingInput,
  options?: API.RequestConfig
) {
  return request<number>(
    '/api/LgGigWorkerCustomerTemplateParam/AddSystemTemplateDataParamSetting',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
 
/** 获取所有系统 模板数据参数字典 POST /api/LgGigWorkerCustomerTemplateParam/GetAllSystemTemplateDataParamSettingList */
export async function getAllSystemTemplateDataParamSettingList(options?: API.RequestConfig) {
  return request<API.SystemTemplateDataParamSettingOutput[]>(
    '/api/LgGigWorkerCustomerTemplateParam/GetAllSystemTemplateDataParamSettingList',
    {
      method: 'POST',
      ...(options || {}),
    }
  );
}
 
/** 根据模板id获取模板参数列表 POST /api/LgGigWorkerCustomerTemplateParam/GetCustomerTemplateParamListByTemplateId */
export async function getCustomerTemplateParamListByTemplateId(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetCustomerTemplateParamListByTemplateIdParams,
  options?: API.RequestConfig
) {
  return request<API.CustomerTemplateParamListOutput[]>(
    '/api/LgGigWorkerCustomerTemplateParam/GetCustomerTemplateParamListByTemplateId',
    {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
 
/** 保存模板参数 POST /api/LgGigWorkerCustomerTemplateParam/SaveCustomerTemplateParam */
export async function saveCustomerTemplateParam(
  body: API.SaveCustomerTemplateParamInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/LgGigWorkerCustomerTemplateParam/SaveCustomerTemplateParam', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}