import { http } from '../http'

/*
 ** 句子收藏
 */
const sentenceCollectApi = {
  // 获取当前用户收藏的句子
  getLangSenseCollectList: (params: anyObj) =>
    http.request({
      url: '/langSenseSentenceCollect/queryCurrentUserCollect',
      params,
    }),
  // 收藏句子
  collectSentence: (data: anyObj) =>
    http.request({
      url: '/langSenseSentenceCollect/collectSentence',
      method: 'POST',
      data,
    }),
  // 取消收藏句子
  cancelCollectSentence: (data: anyObj) =>
    http.request({
      url: '/langSenseSentenceCollect/cancelCollectSentence',
      method: 'POST',
      data,
    }),
}

export default sentenceCollectApi
