Skip to content

Commit

Permalink
优化项目结构,合并模块
Browse files Browse the repository at this point in the history
  • Loading branch information
helltractor committed Jul 8, 2024
1 parent 43fc691 commit 91b8986
Show file tree
Hide file tree
Showing 65 changed files with 417 additions and 373 deletions.
10 changes: 2 additions & 8 deletions enjoy-build/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?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"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand All @@ -10,10 +10,4 @@
</parent>

<artifactId>enjoy-build</artifactId>

<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
37 changes: 25 additions & 12 deletions enjoy-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,58 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>enjoy-common</artifactId>
<version>1.0-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-json</artifactId>
</dependency>

<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>

<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-json</artifactId>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>

<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
</dependency>
<!--支持配置属性类,yml文件中可以提示配置项-->

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
</dependency>

<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
</dependency>

<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>

<!--微信支付-->
<dependency>
<groupId>com.github.wechatpay-apiv3</groupId>
<artifactId>wechatpay-apache-httpclient</artifactId>
</dependency>

<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
@Data
public class CategoryDTO implements Serializable {

//主键
// 主键
private Long id;

//类型 1 菜品分类 2 套餐分类
// 类型 1 菜品分类 2 套餐分类
private Integer type;

//分类名称
// 分类名称
private String name;

//排序
// 排序
private Integer sort;

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
@Data
public class CategoryPageQueryDTO implements Serializable {

//页码
// 页码
private int page;

//每页记录数
// 每页记录数
private int pageSize;

//分类名称
// 分类名称
private String name;

//分类类型 1菜品分类 2套餐分类
// 分类类型 1菜品分类 2套餐分类
private Integer type;

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
public class DishDTO implements Serializable {

private Long id;
//菜品名称
// 菜品名称
private String name;
//菜品分类id
// 菜品分类id
private Long categoryId;
//菜品价格
// 菜品价格
private BigDecimal price;
//图片
// 图片
private String image;
//描述信息
// 描述信息
private String description;
//0 停售 1 起售
// 0 停售 1 起售
private Integer status;
//口味
// 口味
private List<DishFlavor> flavors = new ArrayList<>();

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public class DishPageQueryDTO implements Serializable {

private String name;

//分类id
// 分类id
private Integer categoryId;

//状态 0表示禁用 1表示启用
// 状态 0表示禁用 1表示启用
private Integer status;

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
@Data
public class EmployeePageQueryDTO implements Serializable {

//员工姓名
// 员工姓名
private String name;

//页码
// 页码
private int page;

//每页显示记录数
// 每页显示记录数
private int pageSize;

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
@NoArgsConstructor
@Builder
public class GoodsSalesDTO implements Serializable {
//商品名称
// 商品名称
private String name;

//销量
// 销量
private Integer number;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
public class OrdersCancelDTO implements Serializable {

private Long id;
//订单取消原因

// 订单取消原因
private String cancelReason;

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
public class OrdersConfirmDTO implements Serializable {

private Long id;
//订单状态 1待付款 2待接单 3 已接单 4 派送中 5 已完成 6 已取消 7 退款

// 订单状态 1待付款 2待接单 3 已接单 4 派送中 5 已完成 6 已取消 7 退款
private Integer status;

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,43 @@ public class OrdersDTO implements Serializable {

private Long id;

//订单号
// 订单号
private String number;

//订单状态 1待付款,2待派送,3已派送,4已完成,5已取消
// 订单状态 1待付款,2待派送,3已派送,4已完成,5已取消
private Integer status;

//下单用户id
// 下单用户id
private Long userId;

//地址id
// 地址id
private Long addressBookId;

//下单时间
// 下单时间
private LocalDateTime orderTime;

//结账时间
// 结账时间
private LocalDateTime checkoutTime;

//支付方式 1微信,2支付宝
// 支付方式 1微信,2支付宝
private Integer payMethod;

//实收金额
// 实收金额
private BigDecimal amount;

//备注
// 备注
private String remark;

//用户名
// 用户名
private String userName;

//手机号
// 手机号
private String phone;

//地址
// 地址
private String address;

//收货人
// 收货人
private String consignee;

private List<OrderDetail> orderDetails;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

@Data
public class OrdersPaymentDTO implements Serializable {
//订单号
// 订单号
private String orderNumber;

//付款方式
// 付款方式
private Integer payMethod;

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class OrdersRejectionDTO implements Serializable {

private Long id;

//订单拒绝原因
// 订单拒绝原因
private String rejectionReason;

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,33 @@

@Data
public class OrdersSubmitDTO implements Serializable {
//地址簿id

// 地址簿id
private Long addressBookId;
//付款方式

// 付款方式
private int payMethod;
//备注

// 备注
private String remark;
//预计送达时间

// 预计送达时间
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")

private LocalDateTime estimatedDeliveryTime;
//配送状态 1立即送出 0选择具体时间

// 配送状态 1立即送出 0选择具体时间
private Integer deliveryStatus;
//餐具数量

// 餐具数量
private Integer tablewareNumber;
//餐具数量状态 1按餐量提供 0选择具体数量

// 餐具数量状态 1按餐量提供 0选择具体数量
private Integer tablewareStatus;
//打包费

// 打包费
private Integer packAmount;
//总金额

// 总金额
private BigDecimal amount;
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
@Data
public class PasswordEditDTO implements Serializable {

//员工id
// 员工id
private Long empId;

//旧密码
// 旧密码
private String oldPassword;

//新密码
// 新密码
private String newPassword;

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ public class SetmealDTO implements Serializable {

private Long id;

//分类id
// 分类id
private Long categoryId;

//套餐名称
// 套餐名称
private String name;

//套餐价格
// 套餐价格
private BigDecimal price;

//状态 0:停用 1:启用
// 状态 0:停用 1:启用
private Integer status;

//描述信息
// 描述信息
private String description;

//图片
// 图片
private String image;

//套餐菜品关系
// 套餐菜品关系
private List<SetmealDish> setmealDishes = new ArrayList<>();

}
Loading

0 comments on commit 91b8986

Please sign in to comment.