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

export default {
    list: {
        url: `${config.API_URL}/cutter/list`,
        name: "剪辑师列表",
        get: async function (params = {}) {
            return await http.get(this.url, params);
        }
    },
    applyList: {
        url: `${config.API_URL}/cutter/apply/list`,
        name: "剪辑师申请列表",
        get: async function (params = {}) {
            return await http.get(this.url, params);
        }
    },
    applyAgreed: {
        url: `${config.API_URL}/cutter/apply/agreed`,
        name: "剪辑师同意申请",
        post: async function (id, data = {}) {
            return await http.post(`${this.url}/${id}`, data);
        }
    },
    applyRefuse: {
        url: `${config.API_URL}/cutter/apply/refuse`,
        name: "剪辑师拒绝申请",
        post: async function (id, data = {}) {
            return await http.post(`${this.url}/${id}`, data);
        }
    }
};
