import request from '@/services'

/**
 * 查询富文本
 * @param FormId
 * @param FID
 * @returns
 */
export const getRichText = (data: any) => {
  return request.post(
    '/K3Cloud/LQKJ.K3.NSJYBSystem.WebApi.WebApiEditService.SelectRichText,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data
  )
}

/**
 * 更新富文本
 * @param UserId
 * @param RichTextstr 内容
 * @returns
 */
export const uploadRichText = (data: any) => {
  return request.post(
    '/K3Cloud/LQKJ.K3.NSJYBSystem.WebApi.WebApiEditService.UpRichText,LQKJ.K3.NSJYBSystem.WebApi.common.kdsvc',
    data,
    { IsError: true }
  )
}
