zhengyiming
18 小时以前 2e800655947439e8d71f05fddb3ad49770eec9fd
packages/services/api/LifePayAnnouncement.ts
New file
@@ -0,0 +1,69 @@
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
/** 新增编辑公告 POST /api/LifePayAnnouncement/CreateOrEditLifePayAnnouncement */
export async function createOrEditLifePayAnnouncement(
  body: API.CreateEditLifePayAnnouncementInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/LifePayAnnouncement/CreateOrEditLifePayAnnouncement', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 删除公告 GET /api/LifePayAnnouncement/DeleteLifePayAnnouncement */
export async function deleteLifePayAnnouncement(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIdeleteLifePayAnnouncementParams,
  options?: API.RequestConfig
) {
  return request<number>('/api/LifePayAnnouncement/DeleteLifePayAnnouncement', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
/** 获取公告分页 POST /api/LifePayAnnouncement/GetLifePayAnnouncementPage */
export async function getLifePayAnnouncementPage(
  body: API.GetLifePayAnnouncementPageInput,
  options?: API.RequestConfig
) {
  return request<API.CreateEditLifePayAnnouncementOutputPageOutput>(
    '/api/LifePayAnnouncement/GetLifePayAnnouncementPage',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}
/** 获取当前展示中的公告 POST /api/LifePayAnnouncement/GetShowingLifePayAnnouncement */
export async function getShowingLifePayAnnouncement(
  body: API.GetShowingLifePayAnnouncementInput,
  options?: API.RequestConfig
) {
  return request<API.CreateEditLifePayAnnouncementOutput>(
    '/api/LifePayAnnouncement/GetShowingLifePayAnnouncement',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}