// 短信营销
import message from '../../views/message'
import addRecord from '../../views/message/addRecord'
import record from '../../views/message/record'
import temp from '../../views/message/temp'
import addTemp from '../../views/message/addTemp'
import recordDetail from '../../views/message/detail'

export default {
  path: 'message',
  name: '短信营销',
  component: message,
  meta: {},
  redirect: 'message/record',
  children: [
    {
      path: 'record',
      name: '短信群发',
      component: record,
      meta: {}
    },
    {
      path: 'temp',
      name: '模板库',
      component: temp,
      meta: {}
    },
    {
      path: 'temp/add',
      name: '新增模板',
      component: addTemp,
      meta: {type:'add'}
    },
    {
      path: 'temp/edit/:id',
      name: '编辑模板',
      component: addTemp,
      meta: {type:'edit'}
    },
    {
      path: 'record/add',
      name: '新建群发',
      component: addRecord,
      meta: {}
    },
    {
      path: 'record/detail/:id',
      name: '短信群发详情',
      component: recordDetail,
      meta: {}
    }
  ]
};
