Skip to content

频道接口

1. 获取频道列表

/**
* @path /management/blog/post_channel/getAllChannel
* @method POST
* @param
*/
const result = {
data: {
pageData: [
{
id: "3bcda03dcf4ca0e36c3cc96eaa4cf6f8",
name: "理财",
pos: 1,
visible: "1",
count: 54,
},
{
id: "7852436aa3ac6d48b2109e99204e4cc6",
name: "站内原创推荐",
pos: 2,
visible: "1",
count: 8,
},
],
},
code: 200,
success: true,
message: "SUCCESS",
};

2. 更新频道位置

/**
* @path /management/blog/post_channel/updateChannelPos
* @method POST
* @param {[row]}
*/
const result = {
data: null,
code: 200,
success: true,
message: "SUCCESS",
};

3. 更新频道名称

/**
* @path /management/blog/post_channel/updateChannelName
* @method POST
* @param {id,name}
*/
const result = {
data: null,
code: 200,
success: true,
message: "SUCCESS",
};

4. 新增频道

/**
* @path /management/blog/post_channel/addChannel
* @method POST
* @param {name}
*/
const result = {
data: null,
code: 200,
success: true,
message: "SUCCESS",
};

5. 移除频道

/**
* @path /management/blog/post_channel/removeChannel
* @method POST
* @param {id}
*/
const result = {
data: null,
code: 200,
success: true,
message: "SUCCESS",
};

6. 更新频道可见性

/**
* @path /management/blog/post_channel/updateChannelVisible
* @method POST
* @param {id,visible}
*/
const result = {
data: null,
code: 200,
success: true,
message: "SUCCESS",
};