|
|
@@ -274,6 +274,31 @@ public class KuaishouItemCollectSamplesController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+ @PutMapping("/update")
|
|
|
+ public JSONObject update(@RequestBody KuaishouItemCollectSamples kuaishouItemCollectSamples) {
|
|
|
+ JSONObject returnJson = new JSONObject();
|
|
|
+ try {
|
|
|
+ Long id = kuaishouItemCollectSamples.getId();
|
|
|
+ if (Check.isNull(id)) {
|
|
|
+ throw new Exception("id不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ int i = kuaishouItemCollectSamplesService.updateKuaishouItemCollectSamples(kuaishouItemCollectSamples);
|
|
|
+ returnJson.put("code", 0);
|
|
|
+ returnJson.put("message", "修改成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ returnJson.put("code", -1);
|
|
|
+ returnJson.put("message", e.getMessage());
|
|
|
+ }
|
|
|
+ return returnJson;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@GetMapping("/detail")
|
|
|
public JSONObject detail(Long id) {
|
|
|
JSONObject returnJson = new JSONObject();
|