
import http from "@/utils/request"
import common from "@/utils/common"

export default {
    post: async function (method, datas = {}) {
        return await http.post({
            "jsonrpc": "2.0",
            "id": common.guid(),
            "method": method,
            "params": [datas]
        });
    },
    get: async function (method, datas = {}) {
        return await http.post( {
            "jsonrpc": "2.0",
            "id": common.guid(),
            "method": method,
            "params": [datas]
        });
    },
}
