| | |
| | | package com.ruoyi.web.controller.zhang; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.domain.dto.ZHealthInfoDto; |
| | | import com.ruoyi.service.ZHealthInfoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RestController |
| | | @RequestMapping("/zHealthInfo") |
| | | public class ZHealthInfoController { |
| | | @Autowired |
| | | ZHealthInfoService zHealthInfoService; |
| | | |
| | | /** |
| | | * 查询数据 |
| | | */ |
| | | @GetMapping("/all") |
| | | public AjaxResult listAll(){ |
| | | return zHealthInfoService.selectData(); |
| | | } |
| | | |
| | | /** |
| | | * 新增或修改记录 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:property:edit')") |
| | | @Log(title = "健康记录", businessType = BusinessType.UPDATE) |
| | | @PostMapping |
| | | public AjaxResult edit(@RequestBody ZHealthInfoDto zHealthInfoDto) |
| | | { |
| | | return zHealthInfoService.saveOrUpdateData(zHealthInfoDto); |
| | | } |
| | | |
| | | } |
| | | |