mall:优化订单表的设计

This commit is contained in:
YunaiV
2022-08-05 00:28:40 +08:00
parent 33a01e78bf
commit cfde3dcacb
11 changed files with 216 additions and 89 deletions

View File

@ -13,12 +13,13 @@ import java.util.Arrays;
*/
@Getter
@AllArgsConstructor
public enum DeliveryModeEnum implements IntArrayValuable {
public enum DeliveryTypeEnum implements IntArrayValuable {
SHOP_DELIVERY(1, "商家配送"),
USER_PICK_UP(2, "用户自提");
// TODO 芋艿英文单词需要再想下
EXPRESS(1, "快递发货"),
USER(2, "用户自提"),;
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(DeliveryModeEnum::getMode).toArray();
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(DeliveryTypeEnum::getMode).toArray();
/**
* 配送方式