| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.websocket.server.PathParam; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.regex.Pattern; |
| | |
| | | return zInfoUserService.empower(empowerDto); |
| | | } |
| | | |
| | | /** |
| | | * 家根网 |
| | | */ |
| | | @GetMapping("/root") |
| | | public AjaxResult listAllPeopleWithTree(){ |
| | | return zInfoUserService.listWithTree(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 找到所有的成员 |
| | | */ |
| | | @GetMapping("/all") |
| | | public AjaxResult listAllPeople(){ |
| | | return zInfoUserService.listAllExceptAdmin(); |
| | | } |
| | | |
| | | /** |
| | | * 新增、修改父子关系 |
| | | */ |
| | | |
| | | @PutMapping("/setParent") |
| | | public AjaxResult addParent(@PathParam("fatherId")Long fatherId,@PathParam("motherId")Long motherId){ |
| | | return zInfoUserService.addParent(fatherId,motherId); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |