import { get, post } from '../../http'

/**
 * @description: 获取角色数据列表
 * @param {*} params
 * @return {*}
 */
export const getRolesExamine = async () => {
  return await get<any>('/workload/sentence/list')
}

/**
 * @description: 查看某个用户审核的句子
 * @param {*} params
 * @return {*}
 */
export const getUserCheckContent = async (params: Record<string, any>) => {
  return await get<any>('/sentenceFileContent/userCheckContent', params)
}

/**
 * @description: 查看某个用户绑定单词的句子
 * @param {*} params
 * @return {*}
 */
export const getUserBindWordContent = async (params: Record<string, any>) => {
  return await get<any>('/sentenceFileContent/userBindWordContent', params)
}

/**
 * @description:修改例句为合格
 * @param {*} data
 * @returns {*}
 */
export const updateSentenceStandard = async (params: Record<string, any>) => {
  return await post<any>('/sentenceFileContent/updateStandard', params)
}

/**
 * @description:修改例句为不合格
 * @param {*} data
 * @returns {*}
 */
export const updateUnSentenceStandard = async (params: Record<string, any>) => {
  return await post<any>('/sentenceFileContent/updateUnStandard', params)
}

/**
 * @description:修改例句配置信息为合格
 * @param {*} data
 * @returns {*}
 */
export const updateSentenceConfigStandard = async (
  params: Record<string, any>,
) => {
  return await post<any>('/sentenceFileContentConfig/updateStandard', params)
}

/**
 * @description:修改例句配置信息为不合格
 * @param {*} data
 * @returns {*}
 */
export const updateUnSentenceConfigStandard = async (
  params: Record<string, any>,
) => {
  return await post<any>('/sentenceFileContentConfig/updateUnStandard', params)
}
