feige
2025-06-23 8d0db2a5b91a38960855ab3f5ee3e92fe363e8e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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);
    }
 
 
}