operations.category.js
2.94 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
/**
* Created by ty on 2016/6/21.
* 分类管理
*/
module.exports={
namespace:"category",
apis:{
getCategoryList:{
title: "分类列表",
url: "/category/getCategoryList",
params: [
{name: "platform", type: "string"},
{name: "status", type: "string"}
]
},
updateCategoryStatus:{
title: "更新分类状态",
url: "/category/updateCategoryStatus",
params: [
{name: "id", type: "number"},
{name: "status", type: "number"}
]
},
getOneCategory:{
title: "根据id获取分类对象",
url: "/category/getOneCategory",
params:[
{name:'id', type:'number'}
]
},
addCategory:{
title: "添加分类",
url: "/category/addCategory",
params:[
{name: "sortName", type: "string"},
{name: "sortNameEn", type: "string"},
{name: "sortIco", type: "string"},
{name: "sortIcoBig", type: "string"},
{name: "sortUrl", type: "string"},
{name: "firstSortId", type: "string"},
{name: "secondSortId", type: "string"},
{name: "threadSortId", type: "string"},
{name: "platform", type: "string"},
{name: "orderBy", type: "string"},
{name: "isNew", type: "string"},
{name: "isHot", type: "string"},
{name: "contentCode", type: "string"},
{name: "separativeSign", type: "string"},
{name: "sortNameColor", type: "string"},
{name: "isNewPage", type: "string"}
]
},
updateCategory:{
title: "修改分类",
url: "/category/updateCategory",
params:[
{name: "id", type: "number"},
{name: "sortName", type: "string"},
{name: "sortNameEn", type: "string"},
{name: "sortIco", type: "string"},
{name: "sortIcoBig", type: "string"},
{name: "sortUrl", type: "string"},
{name: "firstSortId", type: "string"},
{name: "secondSortId", type: "string"},
{name: "threadSortId", type: "string"},
{name: "platform", type: "string"},
{name: "orderBy", type: "string"},
{name: "isNew", type: "string"},
{name: "isHot", type: "string"},
{name: "contentCode", type: "string"},
{name: "separativeSign", type: "string"},
{name: "sortNameColor", type: "string"},
{name: "isNewPage", type: "string"}
]
},
getCategories:{
title: "获取分类列表",
url: "/category/getCategories"
}
}
}