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

/**
 * @name 标注-标注分工
 */
// 获取列表
export const getAnnoDivisionList = (params: AnnoDivision.ReqAnnoDivisionParams) => {
  return http.get<ResPage<Clause.ClauseInfo>>(PORT1 + `/article/allocation/list`, params);
};

// 条文分配
export const divideArticle = (params: AnnoDivision.ReqDivideArticleParams) => {
  return http.post(PORT1 + `/article/allocation/divide`, params);
};

// 取消分配
export const cancelDivide = (params: { articleIds: number[] }) => {
  return http.post(PORT1 + `/article/allocation/cancel`, params);
};
