管理员_帮助信息接口 - dollyy/hulahoop GitHub Wiki

1.列出所有的帮助信息

request :

null

response-success :

{
  "status": 1,
  "data":[
  {
    "id": 1,
    "title": "攻略标签是什么?",
    "content": "<div style='text-align: center;'>从下拉框中为这篇攻略打上关于地点、时长的tag吧!</div>",
    "createTime": 1516594332000,
    "updateTime": 1516954576000
  },
  {
    "id": 2,
    "title": "交换Days",
    "content": "<div><div style='text-align: center;'>•step1:</div><div style='text-align: center;'><img     src='../images/help/uploadStrategy1.png'></div></div><div><div style='text-align: center;'>•step2:</div><div style='text-align: center;'><img src='../images/help/uploadStrategy2.png'></div></div><div><div style='text-align: center;'>•step3:</div><div style='text-align: center;'><img src='../images/help/uploadStrategy3.png'></div></div>",
    "createTime": 1517139266000,
    "updateTime": 1517148165000
  },
  {
    "id": 3,
    "title": "helpInfo1_title",
    "content": "helpInfo1_content",
    "createTime": 1520517097000,
    "updateTime": 1520517097000
  },
  {
    "id": 5,
    "title": "helpInfo1_title_update",
    "content": "helpInfo1_content_update",
    "createTime": 1520517128000,
    "updateTime": 1520517128000
  }
  ]
}

response-failure :

{
  "status": 0,
  "msg": "用户未登录"
}

{
  "status": 0,
  "msg": "非管理员无权操作"
}

2.新增帮助信息

request :

title, content

response-success :

{
  "status": 1,
  "msg": "新增帮助信息成功"
}

response-failure :

{
  "status": 0,
  "msg": "用户未登录"
}

{
  "status": 0,
  "msg": "非管理员无权操作"
}

3.更新帮助信息

request :

title, content

response-success :

{
  "status": 1,
  "msg": "更新帮助信息成功"
}

response-failure :

{
  "status": 0,
  "msg": "用户未登录"
}

{
  "status": 0,
  "msg": "非管理员无权操作"
}

4.删除帮助信息

request :

helpInfoId

response-success :

{
  "status": 1,
  "msg": "删除帮助信息成功"
}

response-failure :

{
  "status": 0,
  "msg": "用户未登录"
}

{
  "status": 0,
  "msg": "非管理员无权操作"
}
⚠️ **GitHub.com Fallback** ⚠️