Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

AgreeController.java 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package io.renren.controller;
  2. import javax.validation.Valid;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.web.bind.annotation.GetMapping;
  5. import org.springframework.web.bind.annotation.PostMapping;
  6. import org.springframework.web.bind.annotation.RequestBody;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RequestParam;
  9. import org.springframework.web.bind.annotation.RestController;
  10. import io.renren.common.utils.Result;
  11. import io.renren.common.vo.agree.AgreeApplyReq;
  12. import io.renren.common.vo.agree.AgreeApplyResp;
  13. import io.renren.common.vo.agree.AgreePageQueryResp;
  14. import io.renren.common.vo.agree.AgreeQueryResp;
  15. import io.renren.service.AgreeService;
  16. import io.swagger.annotations.Api;
  17. import io.swagger.annotations.ApiOperation;
  18. @RestController
  19. @RequestMapping("/api/acctserial")
  20. @Api(tags="协议管理")
  21. public class AgreeController {
  22. @Autowired
  23. private AgreeService agreeService;
  24. @PostMapping("/agreeApply")
  25. @ApiOperation("协议申请")
  26. public Result<AgreeApplyResp> agreeApply(@Valid @RequestBody AgreeApplyReq agreeSignInfo) throws Exception{
  27. return new Result<AgreeApplyResp>().ok(agreeService.agreeApply(agreeSignInfo));
  28. }
  29. @GetMapping("/agreeQuery")
  30. @ApiOperation("协议单条查询")
  31. public Result<AgreeQueryResp> agreeQuery(@RequestParam("userId") String userId,@RequestParam("agreeNo") String agreeNo) throws Exception{
  32. return new Result<AgreeQueryResp>().ok(agreeService.agreeQuery(userId, agreeNo));
  33. }
  34. @GetMapping("/agreePageQuery")
  35. @ApiOperation("协议分页查询")
  36. public Result<AgreePageQueryResp> agreePageQuery(@RequestParam("userId") String userId) throws Exception{
  37. return new Result<AgreePageQueryResp>().ok(agreeService.agreePageQuery(userId));
  38. }
  39. }