{"size": 459, "ext": "js", "max_stars_repo_path": "src/api/anis/source.js", "max_stars_repo_name": "kong-ve/pachou", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/anis/source.js", "max_issues_repo_name": "kong-ve/pachou", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api/anis/source.js", "max_forks_repo_name": "kong-ve/pachou", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.8636363636, "max_line_length": 89, "alphanum_fraction": 0.5904139434}
import axios from "../../utils/axios";

// 谁最懂我相关

// 新增||修改来源
export function add_source_type(data, formName, method = "post") {
    var url = formName === "add" ? "/review/add_source_type" : "/review/add_source_type";
    return axios({
        url: '/review/add_source_type',
        method: method,
        data:data
    });
}

//获取来源数据
export function get_source() {
    return axios({
        url: '/review/get_source',
        method: "get",
    });
}
