text: /**
   * Created by dantegg on 2016/11/20.
   */
  
  
  const router = module.exports = require('koa-router')()
  const models = require('../models')
  
  router.post('/follow',async (ctx) =>{
      const body = ctx.request.body
      await models.relation.follow(ctx.session.userId,body.id)
      ctx.body = {status:'OK'}
  })
  
  router.post('/unfollow',async (ctx)=>{
      const body = ctx.request.body
      await models.relation.unfollow(ctx.session.userId,body.id)
      ctx.body = {status:'OK'}
  })