diff --git a/ghy-common/src/main/java/com/ghy/common/enums/CheckStatus.java b/ghy-common/src/main/java/com/ghy/common/enums/CheckStatus.java new file mode 100644 index 00000000..5195351d --- /dev/null +++ b/ghy-common/src/main/java/com/ghy/common/enums/CheckStatus.java @@ -0,0 +1,29 @@ +package com.ghy.common.enums; + +/** + * 商品审核状态 + * + * @author clunt + */ +public enum CheckStatus { + + WAIT_CHECK("0", "待审核"), + CHECK_SUCCESS("1", "审核通过"), + CHECK_FAIL("2", "审核失败"); + + private final String code; + private final String desc; + + CheckStatus(String code, String desc) { + this.code = code; + this.desc = desc; + } + + public String getCode() { + return code; + } + + public String getDesc() { + return desc; + } +} diff --git a/ghy-common/src/main/java/com/ghy/common/enums/GoodsStatus.java b/ghy-common/src/main/java/com/ghy/common/enums/GoodsStatus.java new file mode 100644 index 00000000..1863fde0 --- /dev/null +++ b/ghy-common/src/main/java/com/ghy/common/enums/GoodsStatus.java @@ -0,0 +1,27 @@ +package com.ghy.common.enums; + +/** + * 商品状态 + */ +public enum GoodsStatus { + + OK("0", "正常"), + DISABLE("1", "停用"), + DELETED("2", "删除");; + + private final String code; + private final String desc; + + GoodsStatus(String code, String desc) { + this.code = code; + this.desc = desc; + } + + public String getCode() { + return code; + } + + public String getDesc() { + return desc; + } +} diff --git a/ghy-common/src/main/java/com/ghy/common/enums/OrderStatus.java b/ghy-common/src/main/java/com/ghy/common/enums/OrderStatus.java new file mode 100644 index 00000000..01a902f3 --- /dev/null +++ b/ghy-common/src/main/java/com/ghy/common/enums/OrderStatus.java @@ -0,0 +1,29 @@ +package com.ghy.common.enums; + +/** + * 订单状态 + * + * @author clunt + */ +public enum OrderStatus { + + WAIT_PAY("0", "待支付"), + PAID("1", "已支付"), + CANCEL("2", "已取消"); + + private final String code; + private final String desc; + + OrderStatus(String code, String desc) { + this.code = code; + this.desc = desc; + } + + public String getCode() { + return code; + } + + public String getDesc() { + return desc; + } +} diff --git a/ghy-goods/pom.xml b/ghy-goods/pom.xml new file mode 100644 index 00000000..850b6717 --- /dev/null +++ b/ghy-goods/pom.xml @@ -0,0 +1,28 @@ + + + + + ghy + com.ghy + 1.0.0 + + 4.0.0 + + ghy-goods + + + goods商品模块 + + + + + + + com.ghy + ghy-common + + + + + diff --git a/ghy-goods/src/main/java/com/ghy/goods/domain/Goods.java b/ghy-goods/src/main/java/com/ghy/goods/domain/Goods.java new file mode 100644 index 00000000..c8178d0f --- /dev/null +++ b/ghy-goods/src/main/java/com/ghy/goods/domain/Goods.java @@ -0,0 +1,27 @@ +package com.ghy.goods.domain; + +import com.ghy.common.annotation.Excel; +import com.ghy.common.core.domain.BaseEntity; + +import java.math.BigDecimal; + +public class Goods extends BaseEntity { + + private static final long serialVersionUID = 1L; + + @Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC) + private Long goodsId; + + @Excel(name = "编码") + private String goodsCode; + + @Excel(name = "名称") + private String goodsName; + + @Excel(name = "价格") + private BigDecimal goodsPrice; + + /** 状态(0正常 1停用) */ + @Excel(name = "状态", readConverterExp = "0=正常,1=停用") + private String status; +} diff --git a/ghy-goods/src/test/java/com/ghy/goods/GoodsApplicationTests.java b/ghy-goods/src/test/java/com/ghy/goods/GoodsApplicationTests.java new file mode 100644 index 00000000..f2ee3e43 --- /dev/null +++ b/ghy-goods/src/test/java/com/ghy/goods/GoodsApplicationTests.java @@ -0,0 +1,13 @@ +package com.ghy.goods; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class GoodsApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/ghy-order/pom.xml b/ghy-order/pom.xml new file mode 100644 index 00000000..5816f19b --- /dev/null +++ b/ghy-order/pom.xml @@ -0,0 +1,28 @@ + + + + + ghy + com.ghy + 1.0.0 + + 4.0.0 + + ghy-order + + + order订单模块 + + + + + + + com.ghy + ghy-common + + + + + diff --git a/ghy-order/src/test/java/com/ghy/order/GhyOrderApplicationTests.java b/ghy-order/src/test/java/com/ghy/order/GhyOrderApplicationTests.java new file mode 100644 index 00000000..5971adc4 --- /dev/null +++ b/ghy-order/src/test/java/com/ghy/order/GhyOrderApplicationTests.java @@ -0,0 +1,13 @@ +package com.ghy.order; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class GhyOrderApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/ghy-payment/pom.xml b/ghy-payment/pom.xml new file mode 100644 index 00000000..da86b09d --- /dev/null +++ b/ghy-payment/pom.xml @@ -0,0 +1,27 @@ + + + + ghy + com.ghy + 1.0.0 + + 4.0.0 + + ghy-payment + + + payment支付财务模块 + + + + + + + com.ghy + ghy-common + + + + + diff --git a/ghy-payment/src/main/java/com/ghy/payment/PaymentApplication.java b/ghy-payment/src/main/java/com/ghy/payment/PaymentApplication.java new file mode 100644 index 00000000..5e0ce97d --- /dev/null +++ b/ghy-payment/src/main/java/com/ghy/payment/PaymentApplication.java @@ -0,0 +1,13 @@ +package com.ghy.payment; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class PaymentApplication { + + public static void main(String[] args) { + SpringApplication.run(PaymentApplication.class, args); + } + +} diff --git a/ghy-payment/src/test/java/com/ghy/payment/PaymentApplicationTests.java b/ghy-payment/src/test/java/com/ghy/payment/PaymentApplicationTests.java new file mode 100644 index 00000000..224b9d27 --- /dev/null +++ b/ghy-payment/src/test/java/com/ghy/payment/PaymentApplicationTests.java @@ -0,0 +1,13 @@ +package com.ghy.payment; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class PaymentApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/pom.xml b/pom.xml index 19dc39cb..800aa5b5 100644 --- a/pom.xml +++ b/pom.xml @@ -233,6 +233,9 @@ ghy-admin ghy-framework ghy-system + ghy-goods + ghy-order + ghy-payment ghy-quartz ghy-generator ghy-common