| | |
| | | // @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, |
| | |
| | | '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 || {}), |
| | | }); |
| | | } |
| | |
| | | }, |
| | | ...(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 */ |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 用户下所配置的所有保险产品 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, |