import { articleApi } from '@api'

export default class ArticleAction {
  getAllClassify (obj) { return articleApi.getAllClassify(obj).then(res => res) }
  getArticle (obj) { return articleApi.getArticle(obj).then(res => res) }
  getArticleDetail (id) { return articleApi.getArticleDetail(id).then(res => res) }
  formCommit (data) { return articleApi.formCommit(data).then(res => res) }
  getBanner (obj) { return articleApi.getBanner(obj).then(res => res) }
  sendCheckedCode (obj) { return articleApi.sendCheckedCode(obj).then(res => res) }
  register (obj) { return articleApi.register(obj).then(res => res) }
  register2 (obj) { return articleApi.register2(obj).then(res => res) }
  getUserInfo (obj) { return articleApi.getUserInfo(obj).then(res => res) }
  getFormDetail (obj) { return articleApi.getFormDetail(obj).then(res => res) }
  getOrder (obj) { return articleApi.getOrder(obj).then(res => res) }
  checkPay (id) { return articleApi.checkPay(id).then(res => res) }
  payEnd (obj) { return articleApi.payEnd(obj).then(res => res) }
  updateUserInfo (obj) { return articleApi.updateUserInfo(obj).then(res => res) }
  getCard (obj) { return articleApi.getCard(obj).then(res => res) }
}
