Skip to content

Commit

Permalink
update retail module code enum fix github ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Jzow committed Jul 30, 2024
1 parent ee03e89 commit 2755322
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,51 @@
@Getter
public enum RetailCodeEnum {

ADD_RETAIL_SHIPMENTS_SUCCESS("R0001", "添加零售出库单成功"),
ADD_RETAIL_SHIPMENTS_SUCCESS("R0001", "成功添加零售出库单据"),

ADD_RETAIL_SHIPMENTS_SUCCESS_EN("R0001", "Successfully add retail outbound document"),

ADD_RETAIL_SHIPMENTS_ERROR("R0500", "系统异常,添加零售出库单失败"),
ADD_RETAIL_SHIPMENTS_ERROR("R0500", "系统异常,添加零售出库单据失败"),

ADD_RETAIL_SHIPMENTS_ERROR_EN("R0500", "System exception, failed to add retail outbound document"),

UPDATE_RETAIL_SHIPMENTS_SUCCESS("R0002", "修改零售出库单成功"),
UPDATE_RETAIL_SHIPMENTS_SUCCESS("R0002", "成功修改零售出库单据"),

UPDATE_RETAIL_SHIPMENTS_SUCCESS_EN("R0002", "Successfully modify retail outbound document"),

UPDATE_RETAIL_SHIPMENTS_ERROR("R0501", "系统异常,修改零售出库单失败"),
UPDATE_RETAIL_SHIPMENTS_ERROR("R0501", "系统异常,修改零售出库单据失败"),

UPDATE_RETAIL_SHIPMENTS_ERROR_EN("R0501", "System exception, failed to modify retail outbound document"),

DELETE_RETAIL_SHIPMENTS_SUCCESS("R0003", "删除零售出库单成功"),
DELETE_RETAIL_SHIPMENTS_SUCCESS("R0003", "成功删除零售出库单据"),

DELETE_RETAIL_SHIPMENTS_SUCCESS_EN("R0003", "Successfully delete retail outbound document"),

DELETE_RETAIL_SHIPMENTS_ERROR("R0502", "系统异常,删除零售出库单失败"),
DELETE_RETAIL_SHIPMENTS_ERROR("R0502", "系统异常,删除零售出库单据失败"),

DELETE_RETAIL_SHIPMENTS_ERROR_EN("R0502", "System exception, failed to delete retail outbound document"),

ADD_RETAIL_REFUND_SUCCESS("R0004", "添加零售退货单成功"),
ADD_RETAIL_REFUND_SUCCESS("R0004", "成功添加零售退货单据"),

ADD_RETAIL_REFUND_SUCCESS_EN("R0004", "Successfully add retail return document"),

ADD_RETAIL_REFUND_ERROR("R0503", "系统异常,添加零售退货单失败"),
ADD_RETAIL_REFUND_ERROR("R0503", "系统异常,添加零售退货单据失败"),

ADD_RETAIL_REFUND_ERROR_EN("R0503", "System exception, failed to add retail return document"),

UPDATE_RETAIL_REFUND_SUCCESS("R0005", "修改零售退货单成功"),
UPDATE_RETAIL_REFUND_SUCCESS("R0005", "成功修改零售退货单据"),

UPDATE_RETAIL_REFUND_SUCCESS_EN("R0005", "Successfully modify retail return document"),

UPDATE_RETAIL_REFUND_ERROR("R0504", "系统异常,修改零售退货单失败"),

UPDATE_RETAIL_REFUND_ERROR_EN("R0504", "System exception, failed to modify retail return document"),

DELETE_RETAIL_REFUND_SUCCESS("R0006", "删除零售货单成功"),
DELETE_RETAIL_REFUND_SUCCESS("R0006", "成功删除零售货单据"),

DELETE_RETAIL_REFUND_SUCCESS_EN("R0006", "Successfully delete retail return document"),

DELETE_RETAIL_REFUND_ERROR("R0505", "系统异常,删除零售货单失败"),
DELETE_RETAIL_REFUND_ERROR("R0505", "系统异常,删除零售货单据失败"),

DELETE_RETAIL_REFUND_ERROR_EN("R0505", "System exception, failed to delete retail return document");

Expand Down
12 changes: 6 additions & 6 deletions core/utils/src/test/java/EnumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ public class EnumTest {
public void retailCodeEnumTest() {
RetailCodeEnum successEnum = RetailCodeEnum.ADD_RETAIL_SHIPMENTS_SUCCESS;
assertEquals("R0001", successEnum.getCode());
assertEquals("添加零售出库单成功", successEnum.getMsg());
assertEquals("成功添加零售出库单据", successEnum.getMsg());

RetailCodeEnum errorEnum = RetailCodeEnum.ADD_RETAIL_SHIPMENTS_ERROR;
assertEquals("R0500", errorEnum.getCode());
assertEquals("添加零售出库单失败", errorEnum.getMsg());
assertEquals("系统异常,添加零售出库单据失败", errorEnum.getMsg());

RetailCodeEnum updateEnum = RetailCodeEnum.UPDATE_RETAIL_SHIPMENTS_ERROR;
assertEquals("R0501", updateEnum.getCode());
assertEquals("修改零售出库单失败", updateEnum.getMsg());
assertEquals("系统异常,修改零售出库单据失败", updateEnum.getMsg());

RetailCodeEnum deleteSuccessEnum = RetailCodeEnum.DELETE_RETAIL_SHIPMENTS_SUCCESS;
assertEquals("R0003", deleteSuccessEnum.getCode());
assertEquals("删除零售出库单成功", deleteSuccessEnum.getMsg());
assertEquals("成功删除零售出库单据", deleteSuccessEnum.getMsg());

RetailCodeEnum deleteErrorEnum = RetailCodeEnum.DELETE_RETAIL_SHIPMENTS_ERROR;
RetailCodeEnum deleteErrorEnum = RetailCodeEnum.DELETE_RETAIL_SHIPMENTS_ERROR_EN;
assertEquals("R0502", deleteErrorEnum.getCode());
assertEquals("删除零售出库单失败", deleteErrorEnum.getMsg());
assertEquals("System exception, failed to delete retail outbound document", deleteErrorEnum.getMsg());
}
}

0 comments on commit 2755322

Please sign in to comment.