/**
 * Created by rockyl on 2020-02-07.
 */

import {fetchApi} from "./common";
import {getCookie} from "./utils";

export async function saveSkin(params) {
	return await fetchApi(`/polaris/saveSkin`, {
		params,
		method: 'post'
	})
}

export async function getSkins(projectId, env) {
	return await fetchApi(`/polaris/getSkins?projectId=${projectId}&env=${env}`)
}

export async function sendDingTalk() {
	return await fetchApi(`/polaris/sendMessage`, { method: 'post' })
}
