import { ResPage, AnnoAudit, Clause } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";

/**
 * @name 语料库-标注审核
 */
// 获取列表
export const getAnnoAuditList = (params: AnnoAudit.ReqAnnoAuditParams) => {
  return http.get<ResPage<Clause.ClauseInfo>>(PORT1 + `/article/audit/list`, params);
};

// 审核流程
export const auditProcess = (params: AnnoAudit.ReqAuditProcessParams) => {
  return http.post(PORT1 + `/article/audit/process`, params);
};

// 条文上传
export const uploadArticel = (params: { articleIds: number[] }) => {
  return http.post(PORT1 + `/article/audit/upload`, params);
};
