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

export default {
    detail: {
        url: `${config.API_URL}/mer/renew/detail`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    qrcode: {
        url: `${config.API_URL}/mer/renew/qrcode`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    list: {
        url: `${config.API_URL}/mer/renew/list`,
        name: "-",
        get: async function (params) {
            return await http.get(this.url, params);
        },
    },
    passwd: {
        url: `${config.API_URL}/mer/staff/passwd`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    batch: {
        url: `${config.API_URL}/mer/staff/batch`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
    del: {
        url: `${config.API_URL}/mer/staff/del`,
        name: "-",
        post: async function (params) {
            return await http.post(this.url, params);
        },
    },
}