forked from zsy0216/guli-mall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ade0243
Showing
1,046 changed files
with
181,797 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
HELP.md | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
**/target/ | ||
**/log*/ | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
.gradle | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>guli-mall</artifactId> | ||
<groupId>com.zsy</groupId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>mall-common</artifactId> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.baomidou</groupId> | ||
<artifactId>mybatis-plus-boot-starter</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>mysql</groupId> | ||
<artifactId>mysql-connector-java</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.httpcomponents</groupId> | ||
<artifactId>httpcore</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-lang</groupId> | ||
<artifactId>commons-lang</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
</dependency> | ||
|
||
<!-- <dependency>--> | ||
<!-- <groupId>org.hibernate</groupId>--> | ||
<!-- <artifactId>hibernate-validator</artifactId>--> | ||
<!-- <version>5.0.2.Final</version>--> | ||
<!-- </dependency>--> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-web</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.alibaba.cloud</groupId> | ||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.alibaba.cloud</groupId> | ||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-starter-openfeign</artifactId> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>com.google.code.findbugs</groupId> | ||
<artifactId>jsr305</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-test</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.validation</groupId> | ||
<artifactId>validation-api</artifactId> | ||
<version>2.0.1.Final</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
23 changes: 23 additions & 0 deletions
23
mall-common/src/main/java/com/zsy/common/constant/ProductConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.zsy.common.constant; | ||
|
||
public class ProductConstant { | ||
|
||
public enum AttrEnum{ | ||
ATTR_TYPE_BASE(1,"基本属性"),ATTR_TYPE_SALE(0,"销售属性"); | ||
private int code; | ||
private String msg; | ||
|
||
AttrEnum(int code,String msg){ | ||
this.code = code; | ||
this.msg = msg; | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
mall-common/src/main/java/com/zsy/common/constant/WareConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.zsy.common.constant; | ||
|
||
public class WareConstant { | ||
|
||
public enum PurchaseStatusEnum{ | ||
CREATED(0,"新建"),ASSIGNED(1,"已分配"), | ||
RECEIVE(2,"已领取"),FINISH(3,"已完成"), | ||
HASERROR(4,"有异常"); | ||
private int code; | ||
private String msg; | ||
|
||
PurchaseStatusEnum(int code,String msg){ | ||
this.code = code; | ||
this.msg = msg; | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
} | ||
|
||
|
||
public enum PurchaseDetailStatusEnum{ | ||
CREATED(0,"新建"),ASSIGNED(1,"已分配"), | ||
BUYING(2,"正在采购"),FINISH(3,"已完成"), | ||
HASERROR(4,"采购失败"); | ||
private int code; | ||
private String msg; | ||
|
||
PurchaseDetailStatusEnum(int code,String msg){ | ||
this.code = code; | ||
this.msg = msg; | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
mall-common/src/main/java/com/zsy/common/exception/BizCodeEnume.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.zsy.common.exception; | ||
|
||
/*** | ||
* 错误码和错误信息定义类 | ||
* 1. 错误码定义规则为5为数字 | ||
* 2. 前两位表示业务场景,最后三位表示错误码。例如:100001。10:通用 001:系统未知异常 | ||
* 3. 维护错误码后需要维护错误描述,将他们定义为枚举形式 | ||
* 错误码列表: | ||
* 10: 通用 | ||
* 001:参数格式校验 | ||
* 11: 商品 | ||
* 12: 订单 | ||
* 13: 购物车 | ||
* 14: 物流 | ||
* | ||
* | ||
*/ | ||
public enum BizCodeEnume { | ||
UNKNOW_EXCEPTION(10000,"系统未知异常"), | ||
VAILD_EXCEPTION(10001,"参数格式校验失败"); | ||
|
||
private int code; | ||
private String msg; | ||
BizCodeEnume(int code,String msg){ | ||
this.code = code; | ||
this.msg = msg; | ||
} | ||
|
||
public int getCode() { | ||
return code; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
mall-common/src/main/java/com/zsy/common/to/MemberPrice.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Copyright 2019 bejson.com | ||
*/ | ||
package com.zsy.common.to; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
|
||
/** | ||
* Auto-generated: 2019-11-26 10:50:34 | ||
* | ||
* @author bejson.com ([email protected]) | ||
* @website http://www.bejson.com/java2pojo/ | ||
*/ | ||
@Data | ||
public class MemberPrice { | ||
|
||
private Long id; | ||
private String name; | ||
private BigDecimal price; | ||
|
||
} |
19 changes: 19 additions & 0 deletions
19
mall-common/src/main/java/com/zsy/common/to/SkuReductionTo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.zsy.common.to; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
|
||
@Data | ||
public class SkuReductionTo { | ||
|
||
private Long skuId; | ||
private int fullCount; | ||
private BigDecimal discount; | ||
private int countStatus; | ||
private BigDecimal fullPrice; | ||
private BigDecimal reducePrice; | ||
private int priceStatus; | ||
private List<MemberPrice> memberPrice; | ||
} |
13 changes: 13 additions & 0 deletions
13
mall-common/src/main/java/com/zsy/common/to/SpuBoundTo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.zsy.common.to; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Data | ||
public class SpuBoundTo { | ||
|
||
private Long spuId; | ||
private BigDecimal buyBounds; | ||
private BigDecimal growBounds; | ||
} |
Oops, something went wrong.