| | |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.ZInfoUser; |
| | | import com.ruoyi.domain.ZfRelation; |
| | | 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 com.ruoyi.service.ZfFamilyService; |
| | | import com.ruoyi.service.ZfRoleService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | |
| | | @Resource |
| | | private ZInfoUserService zInfoUserService; |
| | | |
| | | @Resource |
| | | private ZfFamilyService zfFamilyService; |
| | | |
| | | @Resource |
| | | private ZfRoleService zfRoleService; |
| | | |
| | | // @GetMapping("/all") |
| | | // public AjaxResult listAll(ZInfoUser zInfoUser){ |
| | |
| | | public AjaxResult getInfo() { |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | Long userId = user.getUserId(); |
| | | return AjaxResult.success(zInfoUserService.getById(userId)); |
| | | return AjaxResult.success(zInfoUserService.getInfoById(userId)); |
| | | } |
| | | // |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 授权 |
| | | */ |
| | | @PostMapping("/empower") |
| | | public AjaxResult empower(@RequestBody EmpowerDto empowerDto){ |
| | | |
| | | return zInfoUserService.empower(empowerDto); |
| | | } |
| | | // /** |
| | | // * 授权 |
| | | // */ |
| | | // @PostMapping("/empower") |
| | | // public AjaxResult empower(@RequestBody EmpowerDto empowerDto){ |
| | | // |
| | | // return zInfoUserService.empower(empowerDto); |
| | | // } |
| | | |
| | | /** |
| | | * 家根网 |
| | |
| | | util.exportExcel(response,list,"家谱记录数据"); |
| | | } |
| | | |
| | | /** |
| | | * 家谱2.0 |
| | | */ |
| | | @GetMapping("/list/genealogy2") |
| | | public AjaxResult listGenealogy2(Genealogy genealogy){ |
| | | Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); |
| | | Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); |
| | | return zInfoUserService.listGenealogy2(genealogy,pageNum,pageSize); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |