|
@@ -66,8 +66,7 @@ public class PromotionController {
|
|
|
*/
|
|
|
@PostMapping("typeMaps")
|
|
|
private R typeMaps() {
|
|
|
- Map<String, String> maps = PromotionTypeEnum.maps();
|
|
|
- return R.ok(maps);
|
|
|
+ return R.ok(PromotionTypeEnum.maps());
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -77,8 +76,7 @@ public class PromotionController {
|
|
|
*/
|
|
|
@PostMapping("statusMaps")
|
|
|
private R statusMaps() {
|
|
|
- Map<String, String> maps = PromotionStatusEnum.maps();
|
|
|
- return R.ok(maps);
|
|
|
+ return R.ok(PromotionStatusEnum.maps());
|
|
|
}
|
|
|
|
|
|
}
|