import http from "@/http/http.js";
let baseUrl = "/api/web/action/patentQuery/springBoard";
//根据申请人获取专利量接口
export function paCountByApplicantName(name) {
    return http.post(baseUrl, {
        actionType: "paCountByApplicantName",
        actionBody: {
            applicant_name: name //公司名称
        }
    });
}

//根据申请人获取专利详情列表
export function paShortListByApplicantName(name, pageSize, currentPage) {
    return http.post(baseUrl, {
        actionType: "paShortListByApplicantName",
        actionBody: {
            applicant_name: name, //公司名称
            page_size: pageSize,
            current_page: currentPage
        }
    });
}

//根据公司名称得到软件著作权数量
export function softwareCountByAuthor(name) {
    return http.post(baseUrl, {
        actionType: "softwareCountByAuthor",
        actionBody: {
            author: name
        }
    });
}

//根据公司名称得到软件著作权详情
export function softwareListByAuthor(name) {
    return http.post(baseUrl, {
        actionType: "softwareListByAuthor",
        actionBody: {
            author: name, //公司名称
            page_size: 1000,
            current_page: 1
        }
    });
}

//根据公司名称得到著作权量
export function worksCountByAuthor(name) {
    return http.post(baseUrl, {
        actionType: "worksCountByAuthor",
        actionBody: {
            author: name //公司名称
        }
    });
}

//根据公司名称得到著作权详情
export function worksListByAuthor(name) {
    return http.post(baseUrl, {
        actionType: "worksListByAuthor",
        actionBody: {
            author: name, //公司名称
            page_size: 1000,
            current_page: 1
        }
    });
}