guang.info.js
5.44 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/**
* Created by ty on 2016/6/20.
* 资讯管理
*/
module.exports={
namespace:"infoManager",
apis:{
getList:{
title: "资讯管理列表数据",
url: '/guang/article/getList',
params: [
{name: 'articleTitle', type: 'String'},
{name: 'articleGender', type: 'String'},
{name: 'authorId', type: 'Number'},
{name: 'maxSortId', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'orderBy', type: 'String'},
{name: 'startTime', type: 'String'},
{name: 'endTime', type: 'String'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
operation:{
title: "资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)",
url: '/guang/article/updateArticle',
params: [
{name: 'id', type: 'Number'},
{name: 'articleTitle', type: 'String'},
{name: 'articleGender', type: 'String'},
{name: 'authorId', type: 'Number'},
{name: 'maxSortId', type: 'Number'},
{name: 'minSortId', type: 'Number'},
{name: 'articleSummary', type: 'String'},
{name: 'coverImage', type: 'String'},
{name: 'status', type: 'Number'},
{name: 'coverImageType', type: 'Number'},
{name: 'articleType', type: 'Number'},
{name: 'adsImgSize', type: 'String'},
{name: 'isRecommend', type: 'Number'}
]
},
timePublish:{
title: "资讯管理-定时",
url: '/guang/article/timePublish',
params: [
{name: 'id', type: 'Number'},
{name: 'publishTime', type: 'String'}
]
},
delArticle:{
title: "资讯管理-删除",
url: '/guang/article/delArticle',
params: [
{name: 'id', type: 'Number'}
]
},
getAuthorList:{
title: "作者列表",
url: '/guang/article/getAuthorList',
params: [
{name: 'idName', type: 'String'},
]
},
// getSortList:{
// title: "所有分类",
// url: '/guang/article/getSortList'
// },
getTagItems:{
title: "根据是否启用获取标签分类列表",
url: '/guang/tagSort/getTagItems',
params: [
{name: 'status', type: 'Number'},
{name: 'idName', type: 'String'}
]
},
getCategoryNames:{
title: "plus star 频道",
url: '/guang/plustarcategory/getCategoryNames',
params: [
{name: 'status', type: 'Number'},
]
},
addArticle:{
title: "添加文章",
url:"/guang/article/addArticle",
params:[
{name:"articleTitle",type:"String"},
{name:"articleGender",type:"String"},
{name:"authorId",type:"Number"},
{name:"maxSortId",type:"Number"},
{name:"minSortId",type:"Number"},
{name:"articleSummary",type:"String"},
{name:"coverImage",type:"String"},
{name:"coverImageType",type:"Number"},
{name:"articleType",type:"Number"},
{name:"adsImgSize",type:"String"},
{name:"url",type:"String"},
{name:"contentData",type:"String"},
{name:"brands",type:"String"},
{name:"tag",type:"String"}
]
},
updateArticle:{
title: "更新文章",
url:"/guang/article/updateArticle",
params:[
{name:"id",type:"Number"},
{name:"articleTitle",type:"String"},
{name:"articleGender",type:"String"},
{name:"authorId",type:"Number"},
{name:"maxSortId",type:"Number"},
{name:"minSortId",type:"Number"},
{name:"articleSummary",type:"String"},
{name:"coverImage",type:"String"},
{name:"coverImageType",type:"Number"},
{name:"articleType",type:"Number"},
{name:"adsImgSize",type:"String"},
{name:"url",type:"String"},
{name:"contentData",type:"String"},
{name:"brands",type:"String"},
{name:"tag",type:"String"}
]
},
getDetail:{
title: "获取文章详细信息",
url:'/guang/article/getDetail',
params:[
{name:"id",type:"Number"}
]
},
getTags:{
title: "获取标签列表",
url:'/guang/tags/getTags'
},
queryAllGoodsSort:{
title: "标签搜索,所有(没用到)",
apis: {
colorList: {
url: '/erpproduct/product/colorList'
},
materialList: {
url: '/erpproduct/attribute/index',
params: [{
name: 'status',
type: 'String',
def:1
}]
}
}
},
}
}