import axios from "axios";

let baseUrl = "http://tm.plus.jdcloud.com/web/trademark/tmqueryCtl/doPost";
//jdbycdetailtm数据
export function getJdbycdetailtmData() {
    return axios.post(baseUrl, {
        actionProcess: "jd",
        sign: "2FviZ9PGws8Pt1fBhq0t90mjUvI",
        actionBody: { timeStamp: 1578295027, channelUserId: "" },
        actionType: "tradeMarkDetail",
        requrl: "/action/tmQuery/springBoard",
        isUser: "no",
        isDecryptUser: "no"
    });
}
//初审公告期号图片
export function getLinkUrl(num) {
    return axios.post(baseUrl, {
        actionProcess: "jd",
        sign: "2FviZ9PGws8Pt1fBhq0t90mjUvI",
        actionBody: {
            sbzch: "14543071",
            zcggqh: num,
            timeStamp: 1578298188,
            channelUserId: ""
        },
        actionType: "noticezcggsearch",
        requrl: "/action/tmQuery/springBoard",
        isUser: "no",
        isDecryptUser: "no"
    });
}
//获取公司信息
export function getCompanyInfo(name) {
    return axios.post(baseUrl, {
        actionProcess: "jd",
        sign: "2FviZ9PGws8Pt1fBhq0t90mjUvI",
        actionBody: {
            company_name: name,
            timeStamp: 1578298969,
            channelUserId: ""
        },
        actionType: "getCompanyInfoNoUser",
        requrl: "/action/tmQuery/springBoard",
        isUser: "no",
        isDecryptUser: "no"
    });
}

// 获取jdtrademark商标注册卡片信息
export function getRegInfo() {
    return axios.post(baseUrl, {
        actionProcess: "jd",
        sign: "2FviZ9PGws8Pt1fBhq0t90mjUvI",
        actionBody: {
            channelUserId: "",
            itemCode: "sbfu",
            timeStamp: 1578362897
        },
        actionType: "getProductListByTypeOneCode",
        isDecryptUser: "no",
        isUser: "no",
        requrl: "/action/tmOrder/springBoard"
    })
}