新增部分模块,和部分初版实体类

This commit is contained in:
clunt 2022-02-09 16:19:39 +08:00
parent 7a66a5b9e4
commit a4c4977dd5
12 changed files with 250 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}

28
ghy-goods/pom.xml Normal file
View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ghy</artifactId>
<groupId>com.ghy</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ghy-goods</artifactId>
<description>
goods商品模块
</description>
<dependencies>
<!-- 通用工具-->
<dependency>
<groupId>com.ghy</groupId>
<artifactId>ghy-common</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -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;
}

View File

@ -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() {
}
}

28
ghy-order/pom.xml Normal file
View File

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ghy</artifactId>
<groupId>com.ghy</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ghy-order</artifactId>
<description>
order订单模块
</description>
<dependencies>
<!-- 通用工具-->
<dependency>
<groupId>com.ghy</groupId>
<artifactId>ghy-common</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -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() {
}
}

27
ghy-payment/pom.xml Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ghy</artifactId>
<groupId>com.ghy</groupId>
<version>1.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ghy-payment</artifactId>
<description>
payment支付财务模块
</description>
<dependencies>
<!-- 通用工具-->
<dependency>
<groupId>com.ghy</groupId>
<artifactId>ghy-common</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -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);
}
}

View File

@ -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() {
}
}

View File

@ -233,6 +233,9 @@
<module>ghy-admin</module> <module>ghy-admin</module>
<module>ghy-framework</module> <module>ghy-framework</module>
<module>ghy-system</module> <module>ghy-system</module>
<module>ghy-goods</module>
<module>ghy-order</module>
<module>ghy-payment</module>
<module>ghy-quartz</module> <module>ghy-quartz</module>
<module>ghy-generator</module> <module>ghy-generator</module>
<module>ghy-common</module> <module>ghy-common</module>