666
whywhyo
2023-07-16 2039385fa4b4ac688907134ee7c7025fb2aea1fb
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
package com.ruoyi.web.controller.zhang;
 
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.service.ZfFamilyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
/**
 * @Author Jinquan_Ou
 * @Description
 * @Date 2023-07-14 14:43
 * @Version 1.0.0
 **/
 
@RestController
@RequestMapping("/family")
public class ZfFamilyController {
    @Resource
    ZfFamilyService zfFamilyService;
 
    @GetMapping("/all")
    public AjaxResult getAllFamily(){
        return AjaxResult.success(zfFamilyService.list());
    }
 
 
}