|
@@ -0,0 +1,39 @@
|
|
|
|
+package cn.com.ctop.kuaishou.modules.batch.controller;
|
|
|
|
+
|
|
|
|
+import cn.com.ctop.kuaishou.modules.batch.service.IMaterialRefuseService;
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+
|
|
|
|
+import java.util.HashMap;
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
+
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping("/MaterialRefuse")
|
|
|
|
+public class MaterialRefuseController {
|
|
|
|
+ @Autowired
|
|
|
|
+ private IMaterialRefuseService materialRefuseService;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @PostMapping(value = "/getRefuseCreative")
|
|
|
|
+ public Map<String, Object> getRefuseCreative(@RequestBody JSONObject jsonObject) {
|
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
|
+ try {
|
|
|
|
+ List<JSONObject> list = materialRefuseService.getRefuseCreative(jsonObject.getLong("accountId"));
|
|
|
|
+ map.put("code", 0);
|
|
|
|
+ map.put("data", list);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ map.put("code", -1);
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ return map;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+}
|