| | |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZInfoUser; |
| | | import com.ruoyi.domain.ZfRelation; |
| | | 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(); |
| | |
| | | return zInfoUserService.searchMyRelation(userId); |
| | | } |
| | | |
| | | @PostMapping("/relation") |
| | | public AjaxResult addRelation(@RequestBody ZfRelation zfRelation){ |
| | | return zInfoUserService.addRelation(zfRelation); |
| | | |
| | | } |
| | | |
| | | @PutMapping("/relation") |
| | | public AjaxResult updateRelation(@RequestBody ZfRelation zfRelation){ |
| | | return zInfoUserService.updateRelation(zfRelation); |
| | | } |
| | | |
| | | @DeleteMapping("/relation/{ids}") |
| | | public AjaxResult deleteRelation(@PathVariable Long[] ids){ |
| | | return zInfoUserService.deleteRelation(ids); |
| | | } |
| | | |
| | | |
| | | } |
| | | |