import { get, post, put, del } from '../../http'

/**
 * @description: 获取个性化装扮列表-查询列表
 * @param {*} params
 * @returns {*}
 */
export const getPersonalList = async (params: Record<string, any>) => {
  return await get<any>('/userPersonalityConfig/list', params)
}

/**
 * @description: 新增个性化装扮
 * @param {*} data
 * @returns {*}
 */
export const addPersonalData = async (data: Record<string, any>) => {
  return await post<any>('/userPersonalityConfig', data)
}

/**
 * @description: 更新个性化装扮
 * @param {*} data
 * @returns {*}
 */
export const updatePersonalData = async (data: Record<string, any>) => {
  return await put('/userPersonalityConfig', data)
}

/**
 * @description: 通过id删除个性化装扮
 * @param {*} id
 * @returns {*}
 */
export const DeletePersonalData = async (id: string) => {
  return await del(`/userPersonalityConfig/${id}`)
}
