Skip to content

Latest commit

 

History

History
82 lines (65 loc) · 1.68 KB

File metadata and controls

82 lines (65 loc) · 1.68 KB

简要描述:

  • 更新数据库表内数据,一次只能更新一条数据

请求URL:

  • /

请求方式:

  • POST

参数:

{
   action:    updateDataToDb,
   database:    appinfo.db,
   tableName:    historycache,
   RowDataRequests:
   [
       {
           primary:    true,
           title:    id,
           value:    1,
           dataType:    integer
       }
       {
           primary:    false,
           title:    key,
           value:    GetHomeInfo,
           dataType:    text
       },
       {
           primary:    false,
           title:    value,
           value:    ,
           dataType:    text
       },
       {
           primary:    false,
           title:    bak,
           value:    lll,
           dataType:    
       }
   ]
}

参数名 必选 类型 说明
action string 执行动作
database string 待操作数据库名称
tableName string 待操作表名称
RowDataRequests array 需要添加的数据数组
title String 列名称
primary boolean 是否是主键
value String 对应列要添加的数据
dataType String 数据类型

返回示例

{
    code: 200,
    msg: success
}

返回参数说明

参数名 类型 说明
code int 返回结果状态 200表示成功,不是200则提示msg信息
msg String 返回状态文本,code不是200则提示msg信息

备注

  • 更多返回错误代码请看首页的错误代码描述