import request from '@/utils/request';

/**
 * 获取密钥
 * @param {object} params
 * @returns {array} data  密钥
 */
export const getSecretKey = () => {
  return request.request({
    url: '/key/get',
    method: 'get',
  });
};

/**
 * 创建密钥
 * @param {object} data
 * @returns {array} data  密钥
 */
export const createSecretKey = (data) => {
  return request.request({
    url: '/key/create',
    method: 'post',
    data,
  });
};
