/*
 * @Author       : qiye
 * @LastEditors: qiye
 * @description  :
 * @updateInfo   :
 * @Date         : 2023-02-28 11:45:50
 * @LastEditTime: 2024-01-03 17:19:32
 */
import { ikHttp } from '@main/api/request'
import { api as schedule } from './schedule'

/**
 * 应用中心
 */
export const applicationApi = {
  // // 添加
  // add: async (params: any) => await ikHttp.post('/server/schedule/add', params),
  // // 删除
  // del: async (id: any) => await ikHttp.post('/schedule/delete', id, textHeader),
  // // 改
  // update: async (param: any) => await ikHttp.post('/schedule/update', param),
  // 查
  select: async (params: any) => await ikHttp.post('/server/application/list/page', params),
}

/**
 * 我的待办
 */

export const taskApi = {
  select: async (params: any) => await ikHttp.post('/server/workbench/todo-task/list/page', params),
}

/**
 * 我的日程
 */
export const scheduleApi = {
  select: async (params: any) => await ikHttp.post('server/schedule/list/page', params),
  add: schedule.add,
  update: schedule.update,
  del: schedule.del,
  countDate: schedule.countDate,
}
