| | |
| | | |
| | | import com.matrix.core.enums.EnumsManager; |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | public class CommonDataAction { |
| | | |
| | | |
| | | @GetMapping("/getEnums/{enumCode}") |
| | | @RequestMapping("/getEnums/{enumCode}") |
| | | public AjaxResult getEnums(@PathVariable String enumCode) throws ClassNotFoundException { |
| | | return AjaxResult.buildSuccessInstance(EnumsManager.getShowEnum(enumCode)); |
| | | } |