Compare commits
No commits in common. "20b6bbe7637a3f5eaebce3e6b6875784c162bece" and "0b6a2f57aee9b3ed3355f1545a3315aae3ce2df0" have entirely different histories.
20b6bbe763
...
0b6a2f57ae
@ -1,35 +0,0 @@
|
||||
package cn.iocoder.yudao.module.app.dict.controller;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.module.system.api.dict.DictDataApi;
|
||||
import cn.iocoder.yudao.module.system.api.dict.dto.DictDataRespDTO;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
/**
|
||||
* 通用的非PC查字典数据
|
||||
*
|
||||
* @author 小李
|
||||
* @date 11:20 2024/11/6
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/userClient/dict")
|
||||
public class DictController {
|
||||
|
||||
@Resource
|
||||
private DictDataApi dictDataApi;
|
||||
|
||||
@GetMapping("/type")
|
||||
@Operation(summary = "根据类型查该类型的所有数据")
|
||||
public CommonResult<?> getDictByType(@RequestParam("type") String type) {
|
||||
return success(dictDataApi.getDictDataList(type));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user