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 () { return articleApi.getFormDetail().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) }
}
