文件名从 src/main/java/com/lunhan/xxx/host/controller/base/BaseController.java 修改 |
| | |
| | | package com.lunhan.xxx.host.controller.base; |
| | | package com.nanjing.water.host.controller.base; |
| | | |
| | | import com.lunhan.xxx.common.ExecutedResult; |
| | | import com.lunhan.xxx.entity.dto.NameValueDTO; |
| | | import com.lunhan.xxx.host.api.NonLogin; |
| | | import com.nanjing.water.common.ExecutedResult; |
| | | import com.nanjing.water.entity.dto.NameValueDTO; |
| | | import com.nanjing.water.host.api.NonLogin; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @GetMapping("listEnumValue/{enumName}") |
| | | public ExecutedResult<List<NameValueDTO>> listEnumValue(@PathVariable String enumName) { |
| | | try { |
| | | Class<?> enumClass = Class.forName("com.lunhan.xxx.entity.enums." + enumName); |
| | | Class<?> enumClass = Class.forName("com.nanjing.water.entity.enums." + enumName); |
| | | Method valuesMethod = enumClass.getMethod("values"); |
| | | Method getValueMethod = enumClass.getMethod("getValue"); |
| | | Method getDescMethod = enumClass.getMethod("getDesc"); |