11. 静态网页接口

11.1. 获取静态网页分页列表

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 获取静态网页分页列表

Request-example:

curl -X GET -i /api/www/getList

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

array

返回内容

-

└─id

string

主键

-

└─dir

string

路径

-

└─descr

string

描述

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": [
    {
      "id": "",
      "dir": "",
      "descr": ""
    }
  ]
}

11.2. 添加或编辑静态网页

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 添加或编辑静态网页

Query-parameters:

Parameter Type Description Required Since

id

string

主键

false

-

dir

string

路径

false

-

descr

string

描述

false

-

dirTemp

string

zip文件路径

false

-

Request-example:

curl -X GET -i /api/www/addOver?descr=&dirTemp=&dir=&id=

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

object

返回内容

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": {}
}

11.3. 清空静态网页路径

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 清空静态网页路径

Query-parameters:

Parameter Type Description Required Since

id

string

静态网页id

false

-

Request-example:

curl -X GET -i /api/www/clean?id=

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

object

返回内容

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": {}
}

11.4. 删除静态网页

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 删除静态网页

Query-parameters:

Parameter Type Description Required Since

id

string

静态网页id

false

-

Request-example:

curl -X GET -i /api/www/del?id=

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

object

返回内容

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": {}
}

11.5. 静态网页详情

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 静态网页详情

Query-parameters:

Parameter Type Description Required Since

id

string

静态网页id

false

-

Request-example:

curl -X GET -i /api/www/detail?id=

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

object

返回内容

-

└─id

string

主键

-

└─dir

string

路径

-

└─descr

string

描述

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": {
    "id": "",
    "dir": "",
    "descr": ""
  }
}

11.6. 获取静态网页描述

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 获取静态网页描述

Query-parameters:

Parameter Type Description Required Since

id

string

静态网页id

false

-

Request-example:

curl -X GET -i /api/www/getDescr?id=

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

string

返回内容

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": ""
}

11.7. 编辑静态网页描述

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=UTF-8

Description: 编辑静态网页描述

Query-parameters:

Parameter Type Description Required Since

id

string

静态网页id

false

-

descr

string

静态网页描述

false

-

Request-example:

curl -X GET -i /api/www/editDescr?id=&descr=

Response-fields:

Field Type Description Since

success

boolean

请求结果

-

status

string

请求状态 200:请求成功 401:token无效 500:服务器错误

-

msg

string

错误信息

-

obj

object

返回内容

-

Response-example:

{
  "success": true,
  "status": "",
  "msg": "",
  "obj": {}
}