|
@@ -5,6 +5,7 @@ import com.ym.mec.biz.dal.enums.FeeProjectEnum;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -17,7 +18,7 @@ import java.util.Map;
|
|
|
@RestController
|
|
|
public class EduFeeTypeController extends BaseController {
|
|
|
|
|
|
- @PostMapping("getExpenditureType")
|
|
|
+ @GetMapping("/getExpenditureType")
|
|
|
public HttpResponseResult<Map<Integer, String>> getExpenditureType() {
|
|
|
Map<Integer, String> typeMap = new HashMap<>();
|
|
|
for (ExpenditureTypeEnum val : ExpenditureTypeEnum.values()) {
|
|
@@ -26,7 +27,7 @@ public class EduFeeTypeController extends BaseController {
|
|
|
return succeed(typeMap);
|
|
|
}
|
|
|
|
|
|
- @PostMapping("getFeeProject")
|
|
|
+ @GetMapping("/getFeeProject")
|
|
|
public HttpResponseResult<Map<Integer, String>> getFeeProject() {
|
|
|
Map<Integer, String> typeMap = new HashMap<>();
|
|
|
for (FeeProjectEnum val : FeeProjectEnum.values()) {
|