| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.dtos.community.*; |
| | | import com.panzhihua.common.model.dtos.elders.ComEldersAuthGetResultDTO; |
| | | import com.panzhihua.common.model.dtos.elders.ComEldersAuthPageDTO; |
| | |
| | | */ |
| | | @PostMapping("/add/auth") |
| | | public R addAuth(@RequestBody ComEldersAuthGetResultDTO authGetResultDTO){ |
| | | return eldersAuthService.addAuthByEldersApp(authGetResultDTO); |
| | | try { |
| | | return eldersAuthService.addAuthByEldersApp(authGetResultDTO); |
| | | } catch (Exception e) { |
| | | throw new ServiceException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |