Blame view

server/interfaces/guang.author.js 1.21 KB
weiqingting authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
/**
 * Created by ty on 2016/6/20.
 * 作者管理
 */

module.exports={
    namespace:"authorManager",
    apis:{
        getList:{
            title: "作者管理列表数据",
            url: '/guang/author/getList',
            params: [
                {name: 'page', type: 'Number'},
                {name: 'size', type: 'Number'}
            ]
        },
        addAuthor:{
            title: "作者管理-添加",
            url: '/guang/author/addAuthor',
            params: [
                {name: 'username', type: 'String'},
                {name: 'avatar', type: 'String'},
                {name: 'authorDesc', type: 'String'}
            ]
        },
        updateAuthor:{
            title: "作者管理-编辑",
            url: '/guang/author/updateAuthor',
            params: [
                {name: 'uid', type: 'Number'},
                {name: 'username', type: 'String'},
                {name: 'avatar', type: 'String'},
                {name: 'authorDesc', type: 'String'}
            ]
        },
        delAuthor:{
            title: "作者管理-删除",
            url: '/guang/author/delAuthor',
            params: [
                {name: 'uid', type: 'Number'}
            ]
        }
    }
}