| 12345678910111213141516171819202122232425262728293031323334353637 |
- 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));
- }
- @RequestMapping(value = "/list", method = RequestMethod.GET)
- public Result list(InputRestrictProject in){
- Result res = res();
- if (in.getUid()==null){
- return res.error(buildError("客户不能为空"));
- }
- return res.data(restrictProjectService.list(in));
- }
- }
|