package com.chaozhanggui.admin.system.controller;


import com.chaozhanggui.admin.system.service.DictService;
import com.chaozhanggui.common.system.config.RespBody;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 字典类
 * @author lyf
 */
@CrossOrigin(origins = "*")
@RestController
@RequestMapping("/dict")
@Slf4j
public class DictController {
    @Resource
    private DictService dictService;

    @GetMapping("/getGroup/{code}")
    @ResponseBody
    public RespBody getGroupByCode(@PathVariable(name = "code") String code){
       return dictService.getGroupByCode(code);
    }
}
