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

const limit = {
  getLimitStatus: () => get('group-credit/status'),
  getCreditLimitPages: (params) => post('group-credit/pages', params),
  addCreditLimit: (params) => post('group-credit/add', params),
  viewCreditLimit: (id) => get('group-credit/detail', {groupCreditPk: id}),
  updateCreditLimit: (params) => post('group-credit/update', params),
  deleteCreditLimit: (id) => get('group-credit/delete', {groupCreditPk: id}),
}

export default limit;