| | |
| | | import com.ruoyi.domain.ZAuthority; |
| | | import com.ruoyi.domain.dto.AuthorityDto; |
| | | import com.ruoyi.domain.dto.AuthorityDto2; |
| | | import com.ruoyi.domain.dto.EmpowerDto; |
| | | import com.ruoyi.service.ZAuthorityService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | return zAuthorityService.getOtherAuthority(authorityDto); |
| | | } |
| | | |
| | | // /** |
| | | // * 授权(只有家庭管理员才能调用这个接口) |
| | | // */ |
| | | // @PostMapping("/empower") |
| | | // public AjaxResult empower(){ |
| | | // |
| | | // } |
| | | /** |
| | | * 授权(只有家庭管理员才能调用这个接口) |
| | | */ |
| | | @PostMapping("/empower") |
| | | public AjaxResult empower(@RequestBody EmpowerDto zAuthority){ |
| | | return zAuthorityService.saveZa(zAuthority); |
| | | } |
| | | /** |
| | | * 根据authorityId和家庭id查看已经授权给那些人 |
| | | */ |
| | | @PostMapping("/getInfoByAidFid") |
| | | public AjaxResult empowerGetInfo(@RequestBody ZAuthority zAuthority){ |
| | | return zAuthorityService.listByFidAid(zAuthority); |
| | | } |
| | | /** |
| | | * 根据authorityId和家庭id收回已经授权给那些人 |
| | | */ |
| | | @PostMapping("/deleteInfoByAidFid") |
| | | public AjaxResult deleteEmpower(@RequestBody EmpowerDto zAuthority){ |
| | | return zAuthorityService.deleteZa(zAuthority); |
| | | } |
| | | |
| | | |
| | | |