dev
vine_liutk 2023-09-26 17:36:07 +08:00
parent a723e40d25
commit d700385a1c
4 changed files with 12 additions and 12 deletions

View File

@ -62,7 +62,7 @@ class RiceShrimpFlowController extends Controller
'createdBy' => $user,
'updatedBy' => $user,
])
);
)->additional(['message'=>'保存成功']);
}
/**
@ -98,7 +98,7 @@ class RiceShrimpFlowController extends Controller
return RiceShrimpFlowResource::make(
$riceShrimpFlow->loadMissing(['createdBy', 'updatedBy'])
);
)->additional(['message'=>'更新成功']);
}
/**
@ -115,6 +115,6 @@ class RiceShrimpFlowController extends Controller
(new OperationLogService())->inLog(OperationType::Delete, '', $riceShrimpFlow);
return response()->json(null);
return response()->json(['message'=>'删除成功']);
}
}

View File

@ -65,7 +65,7 @@ class RiceShrimpIndustryController extends Controller
'createdBy' => $user,
'updatedBy' => $user,
])
);
)->additional(['message'=>'保存成功']);
}
/**
@ -104,7 +104,7 @@ class RiceShrimpIndustryController extends Controller
return RiceShrimpIndustryResource::make(
$riceShrimpIndustry->loadMissing(['createdBy', 'updatedBy'])
);
)->additional(['message'=>'更新成功']);
}
/**
@ -121,6 +121,6 @@ class RiceShrimpIndustryController extends Controller
(new OperationLogService())->inLog(OperationType::Delete, '', $riceShrimpIndustry);
return response()->json(null);
return response()->json(['message'=>'删除成功']);
}
}

View File

@ -59,7 +59,7 @@ class RiceShrimpPriceController extends Controller
(new OperationLogService())->inLog(OperationType::Create, '', $riceShrimpPrice, $request->input());
return RiceShrimpPriceResource::make($riceShrimpPrice);
return RiceShrimpPriceResource::make($riceShrimpPrice)->additional(['message'=>'保存成功']);
}
/**
@ -93,7 +93,7 @@ class RiceShrimpPriceController extends Controller
return RiceShrimpPriceResource::make(
$riceShrimpPrice->loadMissing(['createdBy', 'updatedBy'])
);
)->additional(['message'=>'更新成功']);
}
/**
@ -110,6 +110,6 @@ class RiceShrimpPriceController extends Controller
(new OperationLogService())->inLog(OperationType::Delete, '', $riceShrimpPrice);
return response()->json(null);
return response()->json(['message'=>'删除成功']);
}
}

View File

@ -60,7 +60,7 @@ class RiceShrimpWeeklyPriceController extends Controller
(new OperationLogService())->inLog(OperationType::Create, '', $riceShrimpWeeklyPrice, $request->input());
return RiceShrimpWeeklyPriceResource::make($riceShrimpWeeklyPrice->loadMissing(['weekObj']));
return RiceShrimpWeeklyPriceResource::make($riceShrimpWeeklyPrice->loadMissing(['weekObj']))->additional(['message'=>'保存成功']);
}
/**
@ -94,7 +94,7 @@ class RiceShrimpWeeklyPriceController extends Controller
return RiceShrimpWeeklyPriceResource::make(
$riceShrimpWeeklyPrice->loadMissing(['createdBy', 'updatedBy', 'weekObj'])
);
)->additional(['message'=>'更新成功']);
}
/**
@ -111,6 +111,6 @@ class RiceShrimpWeeklyPriceController extends Controller
(new OperationLogService())->inLog(OperationType::Delete, '', $riceShrimpWeeklyPrice);
return response()->json(null);
return response()->json(['message'=>'删除成功']);
}
}