zhengyiming
4 天以前 5664a1a616df498cba58b9a8e63a91ac0ba96bab
src/services/api/Dictionary.ts
@@ -2,6 +2,21 @@
// @ts-ignore
import { request } from '@/utils/request';
/** 新增,编辑保险产品方案 POST /api/Dictionary/CreateOrUpdateInsureProductScheme */
export async function createOrUpdateInsureProductScheme(
  body: API.CreateOrUpdateInsureProductSchemeInput,
  options?: API.RequestConfig
) {
  return request<string>('/api/Dictionary/CreateOrUpdateInsureProductScheme', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 新增,编辑保险产品配置 POST /api/Dictionary/CreateOrUpdateInsureProductSetting */
export async function createOrUpdateInsureProductSetting(
  body: API.CreateOrUpdateInsureProductSettingInput,
@@ -13,6 +28,21 @@
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 删除保险产品方案 POST /api/Dictionary/DeleteInsureProductScheme */
export async function deleteInsureProductScheme(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIdeleteInsureProductSchemeParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/Dictionary/DeleteInsureProductScheme', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
@@ -30,6 +60,39 @@
    },
    ...(options || {}),
  });
}
/** 获取保险产品方案下拉列表 POST /api/Dictionary/GetInsureProductSchemeAllList */
export async function getInsureProductSchemeAllList(
  body: API.GetInsureProductSchemePageInput,
  options?: API.RequestConfig
) {
  return request<API.InsureProductSchemeDto[]>('/api/Dictionary/GetInsureProductSchemeAllList', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 获取保险产品方案列表 POST /api/Dictionary/GetInsureProductSchemePage */
export async function getInsureProductSchemePage(
  body: API.GetInsureProductSchemePageInput,
  options?: API.RequestConfig
) {
  return request<API.InsureProductSchemeDtoPageOutput>(
    '/api/Dictionary/GetInsureProductSchemePage',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
/** 获取已启用的保险产品配置下拉列表 POST /api/Dictionary/GetInsureProductSettingAllList */
@@ -65,6 +128,14 @@
  );
}
/** 用户下所配置的所有保险产品 GET /api/Dictionary/GetUserInsureProductSetting */
export async function getUserInsureProductSetting(options?: API.RequestConfig) {
  return request<API.InsureProductSettingDto[]>('/api/Dictionary/GetUserInsureProductSetting', {
    method: 'GET',
    ...(options || {}),
  });
}
/** 修改保险产品配置状态 POST /api/Dictionary/UpdateInsureProductSettingStatus */
export async function updateInsureProductSettingStatus(
  body: API.UpdateInsureProductSettingStatusInput,