跳到主要内容

Update a single record

Example DB Table

smartPanda.mdh.brand

CREATE TABLE `brand`
(
`id` int NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT '',
`logo` text,
`logo_url` varchar(255) DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`disabled` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
);

Updates the fields specified in the method name

API set*

Example Request

{
"method": "smartPanda.mdh.brand.setDisabled",
"params": [
1,
0
]
}

Example Response

1

Find the primary key specified in the method name and update the field specified in the method name

API set*By*

Example Request

Script set*By*