| | |
| | | import com.ruoyi.domain.dto.EmpowerDto; |
| | | import com.ruoyi.domain.dto.Genealogy; |
| | | import com.ruoyi.domain.dto.GenealogyExportDto; |
| | | import com.ruoyi.domain.dto.RelationDto; |
| | | import com.ruoyi.service.ZInfoUserService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | */ |
| | | @GetMapping("/relation") |
| | | public AjaxResult listMyRelation() { |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | return zInfoUserService.searchMyRelation(userId); |
| | | return zInfoUserService.searchMyRelation(); |
| | | } |
| | | |
| | | @PostMapping("/relation") |
| | | public AjaxResult addRelation(@RequestBody ZfRelation zfRelation){ |
| | | return zInfoUserService.addRelation(zfRelation); |
| | | |
| | | } |
| | | |
| | | @PutMapping("/relation") |