|
@@ -18,12 +18,12 @@ public class CostTypeController {
|
|
|
CostTypeService costTypeService;
|
|
|
|
|
|
@PostMapping
|
|
|
- public ApiResult save(CostType costType){
|
|
|
+ public ApiResult save(@RequestBody CostType costType){
|
|
|
return costTypeService.save(costType);
|
|
|
}
|
|
|
|
|
|
@PutMapping
|
|
|
- public ApiResult update(CostType costType){
|
|
|
+ public ApiResult update(@RequestBody CostType costType){
|
|
|
return costTypeService.update(costType);
|
|
|
}
|
|
|
|