suggest.js 2.43 KB
/**
 * Created by jiangmin on 16/5/9.
 */

//接口主域
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.225:8080/platform';
//路由配置
exports.res = [
    {
        //页面渲染
        route: '/suggest/suggest/index',
        method: 'GET',
        view: 'pages/suggest/index',
        src: '/suggest/index'
    },
    //列表
    {
        route: '/suggest/suggest/getSuggestList',
        method: 'POST',
        url: '/suggest/suggest/getSuggestList',
        params: [
            {name: 'page', type: 'Number', def: '1'},
            {name: 'size', type: 'Number', def: '10'},
            {name: 'uid', type: 'String'},//uid
            {name: 'startTime', type: 'String'},//开始时间
            {name: 'endTime', type: 'String'},//结束时间
            {name: 'isHot', type: 'String'},//是否热门(0:不热门,1:热门)
            {name: 'status', type: 'String'},//状态(0:未回复,1:已回复,2:已发送)
            {name: 'clientType', type: 'String'},//来源
            {name: 'appVersion', type: 'String'},//版本号
            {name: 'replyPersonId', type: 'String'}//反馈人
        ]
    },

    {
        //回复APP意见
        route: '/suggest/suggest/replySuggest',
        method: 'POST',
        url: '/suggest/suggest/replySuggest',
        params: [
            {name: 'id', type: 'String'},//id
            {name: 'replyContent', type: 'String'}//回复内容
        ]
    },

    {
        //设置热门/非热门接口
        route: '/suggest/suggest/setHotSuggest',
        method: 'POST',
        url: '/suggest/suggest/setHotSuggest',
        params: [
            {name: 'id', type: 'String'},
            {name: 'isHot', type: 'Number'}
        ]
    },
    {
        //删除APP意见
        route: '/suggest/suggest/deleteSuggest',
        method: 'POST',
        url: '/suggest/suggest/deleteSuggest',
        params: [
            {name: 'id', type: 'String'}
        ]
    },
    {
        //发送APP意见
        route: '/suggest/suggest/publishSuggest',
        method: 'POST',
        url: '/suggest/suggest/publishSuggest',
        params: [
            {name: 'id', type: 'String'}
        ]
    },
    {
        //批量发送APP意见
        route: '/suggest/suggest/batchPublishSuggest',
        method: 'POST',
        url: '/suggest/suggest/batchPublishSuggest',
        params: [
            {name: 'id', type: 'String'}
        ]
    }
];