commit 22e8e3ace5fd982bb973ef0c5ddc3eb7c5a393e2
Author: bunny <1319900154@qq.com>
Date: Tue Dec 12 23:48:23 2023 +0800
初始化
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5ff6309
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,38 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### IntelliJ IDEA ###
+.idea/modules.xml
+.idea/jarRepositories.xml
+.idea/compiler.xml
+.idea/libraries/
+*.iws
+*.iml
+*.ipr
+
+### Eclipse ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
+
+### Mac OS ###
+.DS_Store
\ No newline at end of file
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml
new file mode 100644
index 0000000..5050234
--- /dev/null
+++ b/.idea/dataSources.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ mysql.8
+ true
+ com.mysql.cj.jdbc.Driver
+ jdbc:mysql://60.204.230.80:3306/db_spzx
+
+
+
+ $ProjectFileDir$
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..958e4cc
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..44de3ab
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml
new file mode 100644
index 0000000..2b63946
--- /dev/null
+++ b/.idea/uiDesigner.xml
@@ -0,0 +1,124 @@
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+ -
+
+
+
+
+ -
+
+
+ -
+
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..ae6388b
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,66 @@
+
+
+ 4.0.0
+
+ cn.bunny
+ spzx-parent
+ 1.0-SNAPSHOT
+ pom
+
+ spzx-common
+ spzx-model
+ spzx-manager
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 3.0.5
+
+
+
+ 21
+ 21
+ UTF-8
+ 8.0.30
+ 2.0.21
+ 1.18.20
+ 3.0.1
+
+
+
+
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ ${mybatis.version}
+
+
+
+
+ mysql
+ mysql-connector-java
+ ${mysql.version}
+
+
+
+
+ com.alibaba
+ fastjson
+ ${fastjson.version}
+
+
+
+
+ org.projectlombok
+ lombok
+ ${lombok.version}
+
+
+
+
\ No newline at end of file
diff --git a/spzx-common/common-service/pom.xml b/spzx-common/common-service/pom.xml
new file mode 100644
index 0000000..671effc
--- /dev/null
+++ b/spzx-common/common-service/pom.xml
@@ -0,0 +1,49 @@
+
+
+ 4.0.0
+
+ cn.bunny
+ spzx-common
+ 1.0-SNAPSHOT
+
+
+ common-service
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+
+
+ cn.bunny
+ common-util
+ 1.0-SNAPSHOT
+
+
+
+
+ cn.bunny
+ spzx-model
+ 1.0-SNAPSHOT
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-data-redis
+ provided
+
+
+
+
\ No newline at end of file
diff --git a/spzx-common/common-service/src/main/java/cn/bunny/Main.java b/spzx-common/common-service/src/main/java/cn/bunny/Main.java
new file mode 100644
index 0000000..e2d961b
--- /dev/null
+++ b/spzx-common/common-service/src/main/java/cn/bunny/Main.java
@@ -0,0 +1,7 @@
+package cn.bunny;
+
+public class Main {
+ public static void main(String[] args) {
+ System.out.println("Hello world!");
+ }
+}
\ No newline at end of file
diff --git a/spzx-common/common-service/src/main/java/cn/bunny/config/Knife4jConfig.java b/spzx-common/common-service/src/main/java/cn/bunny/config/Knife4jConfig.java
new file mode 100644
index 0000000..79b5068
--- /dev/null
+++ b/spzx-common/common-service/src/main/java/cn/bunny/config/Knife4jConfig.java
@@ -0,0 +1,25 @@
+package cn.bunny.config;
+
+
+import io.swagger.v3.oas.models.OpenAPI;
+import io.swagger.v3.oas.models.info.Contact;
+import io.swagger.v3.oas.models.info.Info;
+import org.springdoc.core.models.GroupedOpenApi;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class Knife4jConfig {
+ @Bean
+ public GroupedOpenApi adminApi() {// 创建API分组
+ return GroupedOpenApi.builder()
+ .group("admin-api")
+ .pathsToMatch("/admin/**")
+ .build();
+ }
+
+ @Bean
+ public OpenAPI customerOpenApi() {
+ return new OpenAPI().info(new Info().title("接口文档").version("1.0").contact(new Contact()
+ .name("bunny")));
+ }}
diff --git a/spzx-common/common-util/pom.xml b/spzx-common/common-util/pom.xml
new file mode 100644
index 0000000..d62427c
--- /dev/null
+++ b/spzx-common/common-util/pom.xml
@@ -0,0 +1,45 @@
+
+
+ 4.0.0
+
+ cn.bunny
+ spzx-common
+ 1.0-SNAPSHOT
+
+
+ common-util
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+
+ com.alibaba
+ fastjson
+
+
+
+ cn.bunny
+ spzx-model
+ 1.0-SNAPSHOT
+
+
+
+ io.minio
+ minio
+ 8.5.2
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+ provided
+
+
+
\ No newline at end of file
diff --git a/spzx-common/common-util/src/main/java/cn/bunny/Main.java b/spzx-common/common-util/src/main/java/cn/bunny/Main.java
new file mode 100644
index 0000000..e2d961b
--- /dev/null
+++ b/spzx-common/common-util/src/main/java/cn/bunny/Main.java
@@ -0,0 +1,7 @@
+package cn.bunny;
+
+public class Main {
+ public static void main(String[] args) {
+ System.out.println("Hello world!");
+ }
+}
\ No newline at end of file
diff --git a/spzx-common/pom.xml b/spzx-common/pom.xml
new file mode 100644
index 0000000..72d8d83
--- /dev/null
+++ b/spzx-common/pom.xml
@@ -0,0 +1,32 @@
+
+
+ 4.0.0
+
+ cn.bunny
+ spzx-parent
+ 1.0-SNAPSHOT
+
+
+ spzx-common
+ pom
+
+ common-util
+ common-service
+
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+ cn.hutool
+ hutool-all
+ 5.5.2
+
+
+
\ No newline at end of file
diff --git a/spzx-manager/pom.xml b/spzx-manager/pom.xml
new file mode 100644
index 0000000..31a4cd1
--- /dev/null
+++ b/spzx-manager/pom.xml
@@ -0,0 +1,64 @@
+
+
+ 4.0.0
+
+ cn.bunny
+ spzx-parent
+ 1.0-SNAPSHOT
+
+
+ spzx-manager
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-data-redis
+
+
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+
+
+
+
+ mysql
+ mysql-connector-java
+
+
+
+
+ cn.bunny
+ common-service
+ 1.0-SNAPSHOT
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+
+
+
+ com.github.pagehelper
+ pagehelper-spring-boot-starter
+ 1.4.3
+
+
+
\ No newline at end of file
diff --git a/spzx-manager/src/main/java/cn/bunny/MangerApplication.java b/spzx-manager/src/main/java/cn/bunny/MangerApplication.java
new file mode 100644
index 0000000..afa0cbe
--- /dev/null
+++ b/spzx-manager/src/main/java/cn/bunny/MangerApplication.java
@@ -0,0 +1,13 @@
+package cn.bunny;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.context.annotation.ComponentScan;
+
+@SpringBootApplication
+@ComponentScan(basePackages = "cn.bunny")
+public class MangerApplication {
+ public static void main(String[] args) {
+ SpringApplication.run(MangerApplication.class, args);
+ }
+}
\ No newline at end of file
diff --git a/spzx-manager/src/main/java/cn/bunny/controller/IndexController.java b/spzx-manager/src/main/java/cn/bunny/controller/IndexController.java
new file mode 100644
index 0000000..b212504
--- /dev/null
+++ b/spzx-manager/src/main/java/cn/bunny/controller/IndexController.java
@@ -0,0 +1,30 @@
+package cn.bunny.controller;
+
+import cn.bunny.service.SysUserService;
+import cn.bunny.spzx.model.dto.system.LoginDto;
+import cn.bunny.spzx.model.vo.common.Result;
+import cn.bunny.spzx.model.vo.common.ResultCodeEnum;
+import cn.bunny.spzx.model.vo.system.LoginVo;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@Tag(name = "用户接口")
+@RestController
+@RequestMapping("/admin/system/index")
+public class IndexController {
+ @Autowired
+ private SysUserService sysUserService;
+
+ // 用户登录
+ @Operation(summary = "用户登录")
+ @PostMapping("login")
+ public Result login(@RequestBody LoginDto loginDto) {
+ LoginVo loginVo = sysUserService.login(loginDto);
+ return Result.build(loginVo, ResultCodeEnum.SUCCESS);
+ }
+}
diff --git a/spzx-manager/src/main/java/cn/bunny/mapper/SysUserMapper.java b/spzx-manager/src/main/java/cn/bunny/mapper/SysUserMapper.java
new file mode 100644
index 0000000..7bfdf63
--- /dev/null
+++ b/spzx-manager/src/main/java/cn/bunny/mapper/SysUserMapper.java
@@ -0,0 +1,10 @@
+package cn.bunny.mapper;
+
+
+import cn.bunny.spzx.model.entity.system.SysUser;
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface SysUserMapper {
+ SysUser selectUserInfoByUserName(String userName);
+}
diff --git a/spzx-manager/src/main/java/cn/bunny/service/SysUserService.java b/spzx-manager/src/main/java/cn/bunny/service/SysUserService.java
new file mode 100644
index 0000000..b99e6a1
--- /dev/null
+++ b/spzx-manager/src/main/java/cn/bunny/service/SysUserService.java
@@ -0,0 +1,9 @@
+package cn.bunny.service;
+
+import cn.bunny.spzx.model.dto.system.LoginDto;
+import cn.bunny.spzx.model.vo.system.LoginVo;
+
+public interface SysUserService {
+ // 用户登录
+ LoginVo login(LoginDto loginDto);
+}
diff --git a/spzx-manager/src/main/java/cn/bunny/service/impl/SysUserServiceImpl.java b/spzx-manager/src/main/java/cn/bunny/service/impl/SysUserServiceImpl.java
new file mode 100644
index 0000000..08086b0
--- /dev/null
+++ b/spzx-manager/src/main/java/cn/bunny/service/impl/SysUserServiceImpl.java
@@ -0,0 +1,57 @@
+package cn.bunny.service.impl;
+
+
+import cn.bunny.mapper.SysUserMapper;
+import cn.bunny.service.SysUserService;
+import cn.bunny.spzx.model.dto.system.LoginDto;
+import cn.bunny.spzx.model.entity.system.SysUser;
+import cn.bunny.spzx.model.vo.system.LoginVo;
+import com.alibaba.fastjson.JSON;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.stereotype.Service;
+import org.springframework.util.DigestUtils;
+
+import java.util.UUID;
+import java.util.concurrent.TimeUnit;
+
+@Service
+public class SysUserServiceImpl implements SysUserService {
+ @Autowired
+ private SysUserMapper sysUserMapper;
+
+ @Autowired
+ private RedisTemplate redisTemplate;
+
+
+ @Override
+ public LoginVo login(LoginDto loginDto) {
+ // 获取用户提交用户名,LoginDto获取到
+ String userName = loginDto.getUserName();
+
+ // 根据用户名查询数据表 sys_user
+ SysUser sysUser = sysUserMapper.selectUserInfoByUserName(userName);
+
+ // 如果用户名查询不到对应信息,用户不存在,返回错误信息
+ if (sysUser == null) {
+ throw new RuntimeException("用户名不存在");
+ }
+
+ // 获取输入密码,比较输入密码和数据库密码是否一致
+ String databases_password = sysUser.getPassword();
+ String input_password = DigestUtils.md5DigestAsHex(loginDto.getPassword().getBytes());
+
+ if (!input_password.equals(databases_password)) {
+ throw new RuntimeException("密码不正确");
+ }
+
+ String token = UUID.randomUUID().toString().replaceAll("-", "");
+
+ redisTemplate.opsForValue().set("user:login" + token, JSON.toJSONString(sysUser), 7, TimeUnit.DAYS);
+
+ LoginVo loginVo = new LoginVo();
+ loginVo.setToken(token);
+
+ return loginVo;
+ }
+}
diff --git a/spzx-manager/src/main/resources/application-dev.yml b/spzx-manager/src/main/resources/application-dev.yml
new file mode 100644
index 0000000..1b713c5
--- /dev/null
+++ b/spzx-manager/src/main/resources/application-dev.yml
@@ -0,0 +1,18 @@
+server:
+ port: 8501
+
+spring:
+ datasource:
+ type: com.zaxxer.hikari.HikariDataSource
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://60.204.230.80:3306/db_spzx?characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true
+ username: root
+ password: "02120212"
+ data:
+ redis:
+ host: 60.204.230.80
+ port: 6379
+
+mybatis:
+ mapper-locations: classpath:/mapper/*/*.xml
+ config-location: classpath:/mybatis-config.xml
\ No newline at end of file
diff --git a/spzx-manager/src/main/resources/application.yml b/spzx-manager/src/main/resources/application.yml
new file mode 100644
index 0000000..988acd0
--- /dev/null
+++ b/spzx-manager/src/main/resources/application.yml
@@ -0,0 +1,5 @@
+spring:
+ application:
+ name: server-manager
+ profiles:
+ active: dev
diff --git a/spzx-manager/src/main/resources/logback-spring.xml b/spzx-manager/src/main/resources/logback-spring.xml
new file mode 100644
index 0000000..eb59d34
--- /dev/null
+++ b/spzx-manager/src/main/resources/logback-spring.xml
@@ -0,0 +1,56 @@
+
+
+
+ logback
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ INFO
+
+
+ ${CONSOLE_LOG_PATTERN}
+ ${ENCODING}
+
+
+
+
+
+ ${log.path}//log.log
+ true
+
+ %date{yyyy-MM-dd HH:mm:ss} %msg%n
+ ${ENCODING}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/spzx-manager/src/main/resources/mapper/user/SysUserMapper.xml b/spzx-manager/src/main/resources/mapper/user/SysUserMapper.xml
new file mode 100644
index 0000000..76e7a82
--- /dev/null
+++ b/spzx-manager/src/main/resources/mapper/user/SysUserMapper.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+ id,username userName ,password,name,phone,avatar,description,status,create_time,update_time,is_deleted
+
+
+
+
+
\ No newline at end of file
diff --git a/spzx-manager/src/main/resources/mybatis-config.xml b/spzx-manager/src/main/resources/mybatis-config.xml
new file mode 100644
index 0000000..89898c2
--- /dev/null
+++ b/spzx-manager/src/main/resources/mybatis-config.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/spzx-model/pom.xml b/spzx-model/pom.xml
new file mode 100644
index 0000000..3c4cb7a
--- /dev/null
+++ b/spzx-model/pom.xml
@@ -0,0 +1,45 @@
+
+
+ 4.0.0
+
+ cn.bunny
+ spzx-parent
+ 1.0-SNAPSHOT
+
+
+ spzx-model
+
+
+ 21
+ 21
+ UTF-8
+
+
+
+
+
+
+ org.projectlombok
+ lombok
+
+
+
+ com.github.xiaoymin
+ knife4j-openapi3-jakarta-spring-boot-starter
+ 4.1.0
+
+
+
+ com.alibaba
+ easyexcel
+ 3.1.0
+
+
+
+ com.alibaba
+ fastjson
+
+
+
\ No newline at end of file
diff --git a/spzx-model/src/main/java/cn/bunny/Main.java b/spzx-model/src/main/java/cn/bunny/Main.java
new file mode 100644
index 0000000..e2d961b
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/Main.java
@@ -0,0 +1,7 @@
+package cn.bunny;
+
+public class Main {
+ public static void main(String[] args) {
+ System.out.println("Hello world!");
+ }
+}
\ No newline at end of file
diff --git a/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/OrderInfoDto.java b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/OrderInfoDto.java
new file mode 100644
index 0000000..c036f7d
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/OrderInfoDto.java
@@ -0,0 +1,23 @@
+package cn.bunny.spzx.model.dto.h5;
+
+import cn.bunny.spzx.model.entity.order.OrderItem;
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.List;
+
+@Data
+public class OrderInfoDto {
+
+ //送货地址id
+ private Long userAddressId;
+
+ //运费
+ private BigDecimal feightFee;
+
+ //备注
+ private String remark;
+
+ //订单明细
+ private List orderItemList;
+}
\ No newline at end of file
diff --git a/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/ProductSkuDto.java b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/ProductSkuDto.java
new file mode 100644
index 0000000..4dac8b9
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/ProductSkuDto.java
@@ -0,0 +1,28 @@
+package cn.bunny.spzx.model.dto.h5;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+@Data
+@Schema(description = "商品列表搜索条件实体类")
+public class ProductSkuDto {
+
+ @Schema(description = "关键字")
+ private String keyword;
+
+ @Schema(description = "品牌id")
+ private Long brandId;
+
+ @Schema(description = "一级分类id")
+ private Long category1Id;
+
+ @Schema(description = "二级分类id")
+ private Long category2Id;
+
+ @Schema(description = "三级分类id")
+ private Long category3Id;
+
+ @Schema(description = "排序(综合排序:1 价格升序:2 价格降序:3)")
+ private Integer order = 1;
+
+}
\ No newline at end of file
diff --git a/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/UserLoginDto.java b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/UserLoginDto.java
new file mode 100644
index 0000000..01cea0e
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/UserLoginDto.java
@@ -0,0 +1,15 @@
+package cn.bunny.spzx.model.dto.h5;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+@Data
+@Schema(description = "用户登录请求参数")
+public class UserLoginDto {
+
+ @Schema(description = "用户名")
+ private String username ;
+
+ @Schema(description = "密码")
+ private String password ;
+}
\ No newline at end of file
diff --git a/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/UserRegisterDto.java b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/UserRegisterDto.java
new file mode 100644
index 0000000..88589d5
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/h5/UserRegisterDto.java
@@ -0,0 +1,22 @@
+package cn.bunny.spzx.model.dto.h5;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+@Data
+@Schema(description="注册对象")
+public class UserRegisterDto {
+
+ @Schema(description = "用户名")
+ private String username;
+
+ @Schema(description = "密码")
+ private String password;
+
+ @Schema(description = "昵称")
+ private String nickName;
+
+ @Schema(description = "手机验证码")
+ private String code ;
+
+}
\ No newline at end of file
diff --git a/spzx-model/src/main/java/cn/bunny/spzx/model/dto/order/OrderStatisticsDto.java b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/order/OrderStatisticsDto.java
new file mode 100644
index 0000000..313348a
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/order/OrderStatisticsDto.java
@@ -0,0 +1,16 @@
+package cn.bunny.spzx.model.dto.order;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+@Data
+@Schema(description = "搜索条件实体类")
+public class OrderStatisticsDto {
+
+ @Schema(description = "开始时间")
+ private String createTimeBegin;
+
+ @Schema(description = "结束时间")
+ private String createTimeEnd;
+
+}
diff --git a/spzx-model/src/main/java/cn/bunny/spzx/model/dto/product/CategoryBrandDto.java b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/product/CategoryBrandDto.java
new file mode 100644
index 0000000..4cc0adb
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/product/CategoryBrandDto.java
@@ -0,0 +1,16 @@
+package cn.bunny.spzx.model.dto.product;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+@Data
+@Schema(description = "搜索条件实体类")
+public class CategoryBrandDto {
+
+ @Schema(description = "品牌id")
+ private Long brandId;
+
+ @Schema(description = "分类id")
+ private Long categoryId;
+
+}
\ No newline at end of file
diff --git a/spzx-model/src/main/java/cn/bunny/spzx/model/dto/product/ProductDto.java b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/product/ProductDto.java
new file mode 100644
index 0000000..51b2d96
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/product/ProductDto.java
@@ -0,0 +1,23 @@
+package cn.bunny.spzx.model.dto.product;
+
+import cn.bunny.spzx.model.entity.base.BaseEntity;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+@Data
+@Schema(description = "商品搜索条件实体类")
+public class ProductDto extends BaseEntity {
+
+ @Schema(description = "品牌id")
+ private Long brandId;
+
+ @Schema(description = "一级分类id")
+ private Long category1Id;
+
+ @Schema(description = "二级分类id")
+ private Long category2Id;
+
+ @Schema(description = "三级分类id")
+ private Long category3Id;
+
+}
diff --git a/spzx-model/src/main/java/cn/bunny/spzx/model/dto/product/SkuSaleDto.java b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/product/SkuSaleDto.java
new file mode 100644
index 0000000..79e9621
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/product/SkuSaleDto.java
@@ -0,0 +1,12 @@
+package cn.bunny.spzx.model.dto.product;
+
+import lombok.Data;
+
+@Data
+public class SkuSaleDto {
+
+ private Long skuId;
+ private Integer num;
+
+}
+
diff --git a/spzx-model/src/main/java/cn/bunny/spzx/model/dto/system/AssginMenuDto.java b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/system/AssginMenuDto.java
new file mode 100644
index 0000000..ee1da7a
--- /dev/null
+++ b/spzx-model/src/main/java/cn/bunny/spzx/model/dto/system/AssginMenuDto.java
@@ -0,0 +1,19 @@
+package cn.bunny.spzx.model.dto.system;
+
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+
+import java.util.List;
+import java.util.Map;
+
+@Data
+@Schema(description = "请求参数实体类")
+public class AssginMenuDto {
+
+ @Schema(description = "角色id")
+ private Long roleId; // 角色id
+
+ @Schema(description = "选中的菜单id的集合")
+ private List