chore(project): rebranded project as 恭学教育 (GongXue Education)
Some checks failed
Deploy to Runner / deploy (push) Failing after 6m7s

- Updated pom.xml project name, description, and URL to 恭学教育.
- Changed LICENSE copyright holder to 恭学教育 (GongXue Education).
- Rebranded README.md with new project title and tagline.
- Replaced @author 芋道源码 with @author 恭学教育 across all Java source files.
- Updated Swagger metadata with 恭学教育 API title and admin@gongxue.com.
- Added Gitea Actions CI pipeline for automated build and deployment.
This commit is contained in:
2026-07-27 15:12:32 +08:00
parent fd54f07889
commit 7426579863
2342 changed files with 2839 additions and 2710 deletions

View File

@@ -5,7 +5,7 @@ import lombok.Data;
/**
* 商品属性项的明细 Response DTO
*
* @author 芋道源码
* @author 恭学教育
*/
@Data
public class ProductPropertyValueDetailRespDTO {

View File

@@ -15,7 +15,7 @@ public class AppProductSpuDetailRespVO {
// ========== 基本信息 =========
@Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道")
@Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "恭学")
private String name;
@Schema(description = "商品简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是一个快乐简介")

View File

@@ -12,7 +12,7 @@ public class AppProductSpuRespVO {
@Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Long id;
@Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道")
@Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "恭学")
private String name;
@Schema(description = "商品简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "清凉小短袖简介")

View File

@@ -14,7 +14,7 @@ import java.util.List;
/**
* 品牌 Convert
*
* @author 芋道源码
* @author 恭学教育
*/
@Mapper
public interface ProductBrandConvert {

View File

@@ -15,7 +15,7 @@ import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.
/**
* 商品 SKU Convert
*
* @author 芋道源码
* @author 恭学教育
*/
@Mapper
public interface ProductSkuConvert {

View File

@@ -19,7 +19,7 @@ import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.
/**
* 商品 SPU Convert
*
* @author 芋道源码
* @author 恭学教育
*/
@Mapper
public interface ProductSpuConvert {

View File

@@ -10,7 +10,7 @@ import lombok.*;
/**
* 商品品牌 DO
*
* @author 芋道源码
* @author 恭学教育
*/
@TableName("product_brand")
@KeySequence("product_brand_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -10,7 +10,7 @@ import lombok.*;
/**
* 商品分类 DO
*
* @author 芋道源码
* @author 恭学教育
*/
@TableName("product_category")
@KeySequence("product_category_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -16,7 +16,7 @@ import java.util.List;
/**
* 商品评论 DO
*
* @author 芋道源码
* @author 恭学教育
*/
@TableName(value = "product_comment", autoResultMap = true)
@KeySequence("product_comment_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -10,7 +10,7 @@ import lombok.*;
/**
* 商品收藏 DO
*
* @author 芋道源码
* @author 恭学教育
*/
@TableName("product_favorite")
@KeySequence("product_favorite_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -9,7 +9,7 @@ import lombok.*;
/**
* 商品属性项 DO
*
* @author 芋道源码
* @author 恭学教育
*/
@TableName("product_property")
@KeySequence("product_property_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -10,7 +10,7 @@ import lombok.*;
/**
* 商品属性值 DO
*
* @author 芋道源码
* @author 恭学教育
*/
@TableName("product_property_value")
@KeySequence("product_property_value_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -16,7 +16,7 @@ import java.util.List;
/**
* 商品 SKU DO
*
* @author 芋道源码
* @author 恭学教育
*/
@TableName(value = "product_sku", autoResultMap = true)
@KeySequence("product_sku_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -18,7 +18,7 @@ import java.util.List;
/**
* 商品 SPU DO
*
* @author 芋道源码
* @author 恭学教育
*/
@TableName(value = "product_spu", autoResultMap = true)
@KeySequence("product_spu_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -12,7 +12,7 @@ import java.util.List;
/**
* 商品分类 Mapper
*
* @author 芋道源码
* @author 恭学教育
*/
@Mapper
public interface ProductCategoryMapper extends BaseMapperX<ProductCategoryDO> {

View File

@@ -9,7 +9,7 @@ import java.util.Arrays;
/**
* 商品评论的审批状态枚举
*
* @author 芋道源码
* @author 恭学教育
*/
@Getter
@AllArgsConstructor

View File

@@ -9,7 +9,7 @@ import java.util.Arrays;
/**
* 商品 SPU 状态
*
* @author 芋道源码
* @author 恭学教育
*/
@Getter
@AllArgsConstructor

View File

@@ -1,6 +1,6 @@
/**
* 属于 product 模块的 framework 封装
*
* @author 芋道源码
* @author 恭学教育
*/
package cn.iocoder.yudao.module.product.framework;

View File

@@ -8,7 +8,7 @@ import org.springframework.context.annotation.Configuration;
/**
* product 模块的 web 组件的 Configuration
*
* @author 芋道源码
* @author 恭学教育
*/
@Configuration(proxyBeanMethods = false)
public class ProductWebConfiguration {

View File

@@ -11,7 +11,7 @@ import java.util.List;
/**
* 商品品牌 Service 接口
*
* @author 芋道源码
* @author 恭学教育
*/
public interface ProductBrandService {

View File

@@ -23,7 +23,7 @@ import static cn.iocoder.yudao.module.product.enums.ErrorCodeConstants.*;
/**
* 品牌 Service 实现类
*
* @author 芋道源码
* @author 恭学教育
*/
@Service
@Validated

View File

@@ -11,7 +11,7 @@ import java.util.List;
/**
* 商品分类 Service 接口
*
* @author 芋道源码
* @author 恭学教育
*/
public interface ProductCategoryService {

View File

@@ -27,7 +27,7 @@ import static cn.iocoder.yudao.module.product.enums.ErrorCodeConstants.*;
/**
* 商品分类 Service 实现类
*
* @author 芋道源码
* @author 恭学教育
*/
@Service
@Validated

View File

@@ -11,7 +11,7 @@ import java.util.List;
/**
* 商品属性项 Service 接口
*
* @author 芋道源码
* @author 恭学教育
*/
public interface ProductPropertyService {

View File

@@ -23,7 +23,7 @@ import static cn.iocoder.yudao.module.product.enums.ErrorCodeConstants.*;
/**
* 商品属性项 Service 实现类
*
* @author 芋道源码
* @author 恭学教育
*/
@Service
@Validated

View File

@@ -10,7 +10,7 @@ import java.util.List;
/**
* 商品 SKU Service 接口
*
* @author 芋道源码
* @author 恭学教育
*/
public interface ProductSkuService {

View File

@@ -31,7 +31,7 @@ import static cn.iocoder.yudao.module.product.enums.ErrorCodeConstants.*;
/**
* 商品 SKU Service 实现类
*
* @author 芋道源码
* @author 恭学教育
*/
@Service
@Validated

View File

@@ -17,7 +17,7 @@ import java.util.Map;
/**
* 商品 SPU Service 接口
*
* @author 芋道源码
* @author 恭学教育
*/
public interface ProductSpuService {

View File

@@ -36,7 +36,7 @@ import static cn.iocoder.yudao.module.product.enums.ErrorCodeConstants.*;
/**
* 商品 SPU Service 实现类
*
* @author 芋道源码
* @author 恭学教育
*/
@Service
@Validated
@@ -168,7 +168,7 @@ public class ProductSpuServiceImpl implements ProductSpuService {
if (ObjectUtil.notEqual(spuDO.getStatus(), ProductSpuStatusEnum.RECYCLE.getStatus())) {
throw exception(SPU_NOT_RECYCLE);
}
// TODO 芋艿:【可选】参与活动中的商品,不允许删除???
// TODO 管理员:【可选】参与活动中的商品,不允许删除???
// 删除 SPU
productSpuMapper.deleteById(id);
@@ -248,7 +248,7 @@ public class ProductSpuServiceImpl implements ProductSpuService {
public void updateSpuStatus(ProductSpuUpdateStatusReqVO updateReqVO) {
// 校验存在
validateSpuExists(updateReqVO.getId());
// TODO 芋艿:【可选】参与活动中的商品,不允许下架???
// TODO 管理员:【可选】参与活动中的商品,不允许下架???
// 更新状态
ProductSpuDO productSpuDO = productSpuMapper.selectById(updateReqVO.getId()).setStatus(updateReqVO.getStatus());

View File

@@ -28,9 +28,9 @@ import static org.junit.jupiter.api.Assertions.*;
/**
* {@link ProductBrandServiceImpl} 的单元测试类
*
* @author 芋道源码
* @author 恭学教育
*/
@Disabled // TODO 芋艿:后续 fix 补充的单测
@Disabled // TODO 管理员:后续 fix 补充的单测
@Import(ProductBrandServiceImpl.class)
public class ProductBrandServiceImplTest extends BaseDbUnitTest {
@@ -107,7 +107,7 @@ public class ProductBrandServiceImplTest extends BaseDbUnitTest {
public void testGetBrandPage() {
// mock 数据
ProductBrandDO dbBrand = randomPojo(ProductBrandDO.class, o -> { // 等会查询到
o.setName("芋道源码");
o.setName("恭学教育");
o.setStatus(CommonStatusEnum.ENABLE.getStatus());
o.setCreateTime(buildTime(2022, 2, 1));
});
@@ -120,7 +120,7 @@ public class ProductBrandServiceImplTest extends BaseDbUnitTest {
brandMapper.insert(cloneIgnoreId(dbBrand, o -> o.setCreateTime(buildTime(2022, 3, 1))));
// 准备参数
ProductBrandPageReqVO reqVO = new ProductBrandPageReqVO();
reqVO.setName("芋道");
reqVO.setName("恭学");
reqVO.setStatus(CommonStatusEnum.ENABLE.getStatus());
reqVO.setCreateTime((new LocalDateTime[]{buildTime(2022, 1, 1), buildTime(2022, 2, 25)}));

View File

@@ -26,9 +26,9 @@ import static org.junit.jupiter.api.Assertions.assertNull;
/**
* {@link ProductCategoryServiceImpl} 的单元测试类
*
* @author 芋道源码
* @author 恭学教育
*/
@Disabled // TODO 芋艿:后续 fix 补充的单测
@Disabled // TODO 管理员:后续 fix 补充的单测
@Import(ProductCategoryServiceImpl.class)
public class ProductCategoryServiceImplTest extends BaseDbUnitTest {

View File

@@ -31,13 +31,13 @@ import static cn.iocoder.yudao.framework.test.core.util.RandomUtils.randomPojo;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
// TODO 芋艿:单测详细 review 下
// TODO 管理员:单测详细 review 下
/**
* {@link ProductCommentServiceImpl} 的单元测试类
*
* @author wangzhs
*/
@Disabled // TODO 芋艿:后续 fix 补充的单测
@Disabled // TODO 管理员:后续 fix 补充的单测
@Import(ProductCommentServiceImpl.class)
public class ProductCommentServiceImplTest extends BaseDbUnitTest {

View File

@@ -32,9 +32,9 @@ import static org.mockito.Mockito.verify;
/**
* {@link ProductSkuServiceImpl} 的单元测试
*
* @author 芋道源码
* @author 恭学教育
*/
@Disabled // TODO 芋艿:后续 fix 补充的单测
@Disabled // TODO 管理员:后续 fix 补充的单测
@Import(ProductSkuServiceImpl.class)
public class ProductSkuServiceTest extends BaseDbUnitTest {

View File

@@ -41,14 +41,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.when;
// TODO @芋艿review 下单元测试
// TODO @管理员review 下单元测试
/**
* {@link ProductSpuServiceImpl} 的单元测试类
*
* @author 芋道源码
* @author 恭学教育
*/
@Disabled // TODO 芋艿:后续 fix 补充的单测
@Disabled // TODO 管理员:后续 fix 补充的单测
@Import(ProductSpuServiceImpl.class)
public class ProductSpuServiceImplTest extends BaseDbUnitTest {
@@ -79,7 +79,7 @@ public class ProductSpuServiceImplTest extends BaseDbUnitTest {
public int generaInt(){return RandomUtil.randomInt(1,9999999);}
// TODO @芋艿:单测后续 review 哈
// TODO @管理员:单测后续 review 哈
@Test
public void testCreateSpu_success() {

View File

@@ -41,9 +41,9 @@ mybatis-plus:
--- #################### 监控相关配置 ####################
--- #################### 芋道相关配置 ####################
--- #################### 恭学相关配置 ####################
# 芋道配置项,设置当前项目所有自定义的配置
# 恭学配置项,设置当前项目所有自定义的配置
yudao:
info:
base-package: cn.iocoder.yudao