import config from "@/config";
import http from "@/utils/request";

export default {
    openList: {
        url: `${config.API_URL}/finance/open/list`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    open: {
        url: `${config.API_URL}/finance/open`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    city: {
        url: `${config.API_URL}/finance/city`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    code: {
        url: `${config.API_URL}/finance/code`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    save: {
        url: `${config.API_URL}/finance/save`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
}