提交 a3c17432 编写于 作者: F fengyw

用户工程调整

上级 70c541bc
......@@ -4,9 +4,9 @@ import cn.hutool.core.util.StrUtil;
import com.roncoo.education.common.core.base.Result;
import com.roncoo.education.common.core.tools.EnumUtil;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
......@@ -25,7 +25,7 @@ public class ApiEnumController {
@ApiOperation(value = "枚举通用接口", notes = "返回枚举信息")
@RequestMapping(value = "/view", method = RequestMethod.POST)
public Result<ArrayList> getEnumInfo(@RequestParam(name = "enumName") String enumName) {
public Result<ArrayList> getEnumInfo(@RequestBody String enumName) {
if (StrUtil.isBlank(enumName)) {
return Result.error("请输入要获取的枚举名称");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册