import request from '@/utils/request/index'

/**
 * 曲谱分类列表
 */
export const getMusicSheetCategories = (params: object) => {
  return request({
    url: '/cbs-app/musicSheetCategories/queryTree',
    method: 'get',
    data: params,
    params
  } as any)
}

/**
 * 新增曲谱分类  musicSheetCategories/save
 */
export const saveMusicSheetCategories = (params: object) => {
  return request({
    url: '/cbs-app/musicSheetCategories/save',
    method: 'post',
    data: params
  } as any)
}

/**
 * 停用启用
 */
export const musicSheetCategoriesSwitching = (params: object) => {
  return request({
    url: `/cbs-app/musicSheetCategories/switching/${params}`,
    method: 'post',
    data: params
  } as any)
}

/**
 * 修改
 */
export const resetMusicSheetCategories = (params: object) => {
  return request({
    url: '/cbs-app/musicSheetCategories/update',
    method: 'post',
    data: params
  } as any)
}
