import { request } from "@/utils/request.js"

/**
 * 接口文档
 */
export default {
    /**
     * 登录接口文档
     * @returns
     */
    login(data = {}) {
        return request({
            url: "apiDoc/login",
            method: "post",
            data
        })
    },

    /**
     * 获取app信息和接口列表
     * @returns
     */
    getAppAndInterfaceList(appId = null) {
        return request({
            url: "apiDoc/getAppAndInterfaceList/" + appId,
            method: "get"
        })
    },

    /**
     * 获取字段列表
     * @returns
     */
    getColumnList(apiId = null) {
        return request({
            url: "apiDoc/getColumnList/" + apiId,
            method: "get"
        })
    }
}
