public async Task <ApiResult> UpdateGoodsStock(DeductionStockDto input) { input.ActorId = input.GoodsId.ToString(); var result = await actorService.UpdateGoodsStock(input); return(result); }
public async Task <ApiResult> UnDeductionGoodsStock(DeductionStockDto input) { return(await ApiResult.Ok(true, "商品库存回滚成功").RunAsync(async() => { await SetActorDataIfNotExists(input.GoodsId); ActorData.UnDeductionStock(input.DeductionStock); })); }
public async Task <ApiResult> DeductionGoodsStock(DeductionStockDto input) { input.ActorId = input.GoodsId.ToString(); return(await actorService.DeductionGoodsStock(input)); }