# mall **Repository Path**: mazhenggg/mall ## Basic Information - **Project Name**: mall - **Description**: SPRINGBOOT3.0+JDK17+DDD - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-16 - **Last Updated**: 2023-04-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 系统说明 - 基于 Spring Boot 3.0,JDK17 - 基于DDD(领域驱动设计)设计,划分微服务各层。 - 数据库创建语句在db目录下。 - 使用openfeign远程调用完成微服务之间的访问。 ## TODO - 完善注释,完善接口参数 - 完善单元测试,添加异常处理 - 完善日志 - 完善seate的分布式事务分支,应对数据一致性要求 - 基于rabbitmq的消息队列分支,解耦调用 - 基于Spring Native的分支,增加启动速度,和镜像大小 ### Docker 运行 ``` # 下载并运行 git clone https://gitee.com/mazhenggg/mall.git cd mall && mvn clean install && docker-compose up -d 有修改的话,运行mvn clean install && docker-compose up -d --build ``` ## 接口说明 - curl localhost:8081/api/account/available/{userId} 根据用户id,获取余额 - curl -X POST -H "Content-Type: application/json" -d '{"userId": {userId} , "amount": {amount} }' \ http://localhost:8081/api/account/consume 根据用户id和消费金额消费,同时获取积分 - curl localhost:8082/api/point/{userId} 根据用户id获取积分