huanghongfa
2021-06-10 e56f986f835db1774acc89a16ddf1624ddab2147
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());
        }
    }
    /**