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) }
}
