public class ModifyStockRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
cardId |
private Integer |
increaseStockValue |
private Integer |
reduceStockValue |
| Constructor and Description |
|---|
ModifyStockRequest() |
| Modifier and Type | Method and Description |
|---|---|
static ModifyStockRequest |
increaseStock(String cardId,
int increaseStockValue)
增加库存
|
static ModifyStockRequest |
reduceStock(String cardId,
int reduceStockValue)
减少库存
|
private final String cardId
private final Integer increaseStockValue
private final Integer reduceStockValue
public static ModifyStockRequest increaseStock(String cardId, int increaseStockValue)
cardId - the card idincreaseStockValue - the increase stock valuepublic static ModifyStockRequest reduceStock(String cardId, int reduceStockValue)
cardId - the card idreduceStockValue - the reduce stock valueCopyright © 2023. All rights reserved.