From d2a1957ec40c70c696ab3260d7f7df90c4539589 Mon Sep 17 00:00:00 2001 From: whywhyo <1511349576@qq.com> Date: 星期五, 21 七月 2023 15:33:31 +0800 Subject: [PATCH] 1254 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHealthNoteController.java | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHealthNoteController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHealthNoteController.java index d5cf1b5..94fa528 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHealthNoteController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHealthNoteController.java @@ -1,10 +1,36 @@ package com.ruoyi.web.controller.zhang; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.domain.ZHealthNote; +import com.ruoyi.domain.dto.ZHealthNowDto; +import com.ruoyi.service.ZHealthNoteService; +import com.ruoyi.service.ZHealthNowService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + /** * @Author Jinquan_Ou * @Description * @Date 2023-07-17 13:30 * @Version 1.0.0 **/ +@RestController +@RequestMapping("/zHealthNote") public class ZHealthNoteController { + @Autowired + private ZHealthNoteService zHealthNoteService; + + @GetMapping() + public AjaxResult listAll(){ + return zHealthNoteService.listAll(); + } + + @PostMapping + public AjaxResult saveOrUpdate(@RequestBody ZHealthNote zHealthNote){ + return zHealthNoteService.saveData(zHealthNote); + } + + } -- Gitblit v1.9.1