|
|
@@ -0,0 +1,27 @@
|
|
|
+package com.goafanti.business.controller;
|
|
|
+
|
|
|
+import com.goafanti.business.bo.InputRestrictProject;
|
|
|
+import com.goafanti.business.service.RestrictProjectService;
|
|
|
+import com.goafanti.common.bo.Result;
|
|
|
+import com.goafanti.common.controller.CertifyApiController;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/api/restrict/Project")
|
|
|
+public class RestrictProjectController extends CertifyApiController {
|
|
|
+ @Resource
|
|
|
+ private RestrictProjectService restrictProjectService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加限制项目
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/add", method = RequestMethod.POST)
|
|
|
+ public Result add(InputRestrictProject in){
|
|
|
+ Result res = res();
|
|
|
+ return res.data(restrictProjectService.add(in));
|
|
|
+ }
|
|
|
+}
|