import { defHttp } from '/@/utils/http/axios';
// import { BasicPageParams } from '/@/api/model/baseModel';
// export type LogQueryParam = BasicPageParams & Param;

/**
 * 删除MessageConfig
 * @param ids 删除id数组
 */
const debuggerApi = { debuggerApi: true };

export const getPage = (params) => {
  return defHttp.get({
    ...debuggerApi,
    url: `/dzsbsjjr/page`,
    params,
  });
};
/**
 * 修改或添加用户信息
 * @param params
 * @param isUpdate
 * @constructor
 */

export const addDzsbsjjr = (params, isUpdate: boolean) =>
  defHttp[isUpdate ? 'put' : 'post']({
    ...debuggerApi,
    url: `/dzsbsjjr`,
    params,
  });
/**
 * 详情
 * @param id
 */

  export const getDzsbsjjr  = (id) => {
    return defHttp.get({
      ...debuggerApi,
      url: `/dzsbsjjr/${id}`,
  
    });
  };
 
/**
 * 删除MessageConfig
 * @param ids 删除id数组
 */
export const deleteDzsbsjjr = (ids: string[]) =>
  defHttp.delete({
    ...debuggerApi,
    url: `/dzsbsjjr/deleteByIds?ids=${ids}`,
  
  });
