CeDo
2021-06-15 3b855b9c20751a5fee840e686988e8e094773a54
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/EldersAuthApi.java
@@ -1,5 +1,6 @@
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;
@@ -56,7 +57,11 @@
     */
    @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());
        }
    }
    /**