import request from '@/utils/request'

export function summaryList(params: Record<string, any>) {
  return request({ method: 'get', url: '/summary/list', params })
}

export function summaryMemberList(params: Record<string, any>) {
  return request({ method: 'get', url: '/summary/member/list', params })
}

export function summaryStatisticsList(params: Record<string, any>) {
  return request({ method: 'get', url: '/summary/statistics/list', params })
}

export function summaryDraftList(params: Record<string, any>) {
  return request({ method: 'get', url: '/summary/draft/list', params })
}

export function summaryShareList(params: Record<string, any>) {
  return request({ method: 'get', url: '/summary/share/list', params })
}

export function summaryShareAdd(data: Record<string, any>) {
  return request({ method: 'post', url: '/summaryShare/add', data })
}

export function summaryShareTop(data: Record<string, any>) {
  return request({ method: 'post', url: '/summaryShare/top', data })
}

export function summaryShareUnTop(data: Record<string, any>) {
  return request({ method: 'post', url: '/summaryShare/unTop', data })
}

export function summaryShareDelete(data: Record<string, any>) {
  return request({ method: 'delete', url: '/summaryShare/share-delete', params: data })
}

export function summaryAnnouncementList(params: Record<string, any>) {
  return request({ method: 'get', url: '/summary/announcement/list', params })
}

export function summaryBulletinAdd(data: Record<string, any>) {
  return request({ method: 'post', url: '/bulletin/add', data })
}

export function summaryBulletinEdit(data: Record<string, any>) {
  return request({ method: 'put', url: '/bulletin/edit', data })
}

export function summaryBulletinDelete(id: string | number) {
  return request({ method: 'delete', url: `/bulletin/delete?id=${id}` })
}

export function summarySettingList(params: Record<string, any> = {}) {
  return request({ method: 'get', url: '/summarySetting/list', params })
}

export function summarySettingEdit(data: Record<string, any>) {
  return request({ method: 'put', url: '/summarySetting/edit', data })
}

export function summarySettingDelete(data: Record<string, any>) {
  return request({ method: 'delete', url: '/summarySetting/delete', data })
}

export function summaryRemindTaskList(data: Record<string, any>) {
  return request({ method: 'post', url: '/dispatch/task/list', data })
}

export function summaryRemindTaskAdd(data: Record<string, any>) {
  return request({ method: 'post', url: '/dispatch/task/add', data })
}

export function summaryRemindTaskEdit(data: Record<string, any>) {
  return request({ method: 'post', url: '/dispatch/task/edit', data })
}

export function summaryRemindTaskDelete(data: Record<string, any>) {
  return request({ method: 'post', url: '/dispatch/task/delete', data })
}

export function summaryRemindTaskPause(data: Record<string, any>) {
  return request({ method: 'post', url: '/dispatch/task/pause', data })
}

export function summaryRemindTaskResume(data: Record<string, any>) {
  return request({ method: 'post', url: '/dispatch/task/resume', data })
}

export function summaryRemindTaskTrigger(data: Record<string, any>) {
  return request({ method: 'post', url: '/dispatch/task/trigger', data })
}

export function summaryGet(id: string | number) {
  return request({ method: 'get', url: '/summary/get', params: { id } })
}

export function summaryAdd(data: Record<string, any>) {
  return request({ method: 'post', url: '/summary/add', data })
}

export function summaryEdit(data: Record<string, any>) {
  return request({ method: 'put', url: '/summary/edit', data })
}


