import api from '../index'

export default {
  page: (data: {
    keyword?: string
    status?: string
    user_id?: number
    page?: number
    size?: number
  }) => api.post('magic-api/biz/request/page', data),

  detail: (id: number) => api.get('magic-api/biz/request/detail', { params: { id } }),

  submit: (data: any) => api.post('magic-api/biz/request/submit', data),

  approve: (data: any) => api.post('magic-api/biz/request/approve', data),
}
