POST api/admin/system/update
【管理员】【系统设置】 修改系统配置 只要传 value key
Request Information
URI Parameters
None.
Body Parameters
Collection of TB_System_Config| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| key | string |
None. |
|
| value | string |
None. |
|
| status | integer |
None. |
|
| description | string |
None. |
|
| createAt | date |
None. |
|
| updateAt | date |
None. |
|
| more | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"id": 1,
"key": "sample string 2",
"value": "sample string 3",
"status": 4,
"description": "sample string 5",
"createAt": "2026-01-12T07:45:18.0624867+08:00",
"updateAt": "2026-01-12T07:45:18.0624867+08:00",
"more": "sample string 8"
},
{
"id": 1,
"key": "sample string 2",
"value": "sample string 3",
"status": 4,
"description": "sample string 5",
"createAt": "2026-01-12T07:45:18.0624867+08:00",
"updateAt": "2026-01-12T07:45:18.0624867+08:00",
"more": "sample string 8"
}
]
application/xml, text/xml
Sample:
<ArrayOfTB_System_Config xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Web.Api">
<TB_System_Config>
<createAt>2026-01-12T07:45:18.0624867+08:00</createAt>
<description>sample string 5</description>
<id>1</id>
<key>sample string 2</key>
<more>sample string 8</more>
<status>4</status>
<updateAt>2026-01-12T07:45:18.0624867+08:00</updateAt>
<value>sample string 3</value>
</TB_System_Config>
<TB_System_Config>
<createAt>2026-01-12T07:45:18.0624867+08:00</createAt>
<description>sample string 5</description>
<id>1</id>
<key>sample string 2</key>
<more>sample string 8</more>
<status>4</status>
<updateAt>2026-01-12T07:45:18.0624867+08:00</updateAt>
<value>sample string 3</value>
</TB_System_Config>
</ArrayOfTB_System_Config>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
【管理员】【系统设置】 修改系统配置 只要传 value key
MyResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
-1表示失败,0表示成功 |
integer |
None. |
| msg |
错误信息 |
string |
None. |
| data |
响应消息 |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2",
"data": {}
}
application/xml, text/xml
Sample:
<MyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tools"> <code>1</code> <data /> <msg>sample string 2</msg> </MyResponse>