import api from '../index'

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

  list: () => api.get('magic-api/sys/role/list'),

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

  save: (data: any) => api.post('magic-api/sys/role/save', data),

  delete: (id: number) => api.post('magic-api/sys/role/delete', { id }),
}
