/* eslint-disable */
// @ts-ignore
import request from '@/http/vue-query';
import type { CustomRequestOptions } from '@/http/types';

import * as API from './types';

/** 用户选择喜好 POST /app/preference/choose */
export async function appPreferenceChoosePost({
  body,
  options,
}: {
  body: API.AppPreferenceChoosePostBody;
  options?: CustomRequestOptions;
}) {
  return request<API.R>('/app/preference/choose', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查询喜好列表 GET /app/preference/list */
export async function appPreferenceListGet({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.RListPreferenceVo>('/app/preference/list', {
    method: 'GET',
    ...(options || {}),
  });
}
