1. 替换原始 code 签名

2. 服务与模块生成器,支持指定起始端口批量端口分配

(cherry picked from commit e99da38fd4)
This commit is contained in:
chenbowen
2025-09-02 10:15:16 +08:00
committed by chenbowen
parent 9540e8fddd
commit b8f9c7016c
778 changed files with 876 additions and 801 deletions

View File

@@ -6,7 +6,7 @@ import lombok.Getter;
/**
* 公众号消息自动回复的匹配模式
*
* @author 芋道源码
* @author ZT
*/
@Getter
@AllArgsConstructor

View File

@@ -6,7 +6,7 @@ import lombok.Getter;
/**
* 公众号消息自动回复的类型
*
* @author 芋道源码
* @author ZT
*/
@Getter
@AllArgsConstructor

View File

@@ -6,7 +6,7 @@ import lombok.Getter;
/**
* 微信公众号消息的发送来源
*
* @author 芋道源码
* @author ZT
*/
@Getter
@AllArgsConstructor

View File

@@ -10,7 +10,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
* 如果你碰到启动的问题,请认真阅读 https://cloud.iocoder.cn/quick-start/ 文章
*
* @author 芋道源码
* @author ZT
*/
@SpringBootApplication
public class MpServerApplication {

View File

@@ -9,7 +9,7 @@ import lombok.*;
/**
* 公众号账号 DO
*
* @author 芋道源码
* @author ZT
*/
@TableName("mp_account")
@KeySequence("mp_account_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -14,7 +14,7 @@ import me.chanjar.weixin.common.api.WxConsts;
* 1. <a href="https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/New_temporary_materials.html">临时素材</a>
* 2. <a href="https://developers.weixin.qq.com/doc/offiaccount/Asset_Management/Adding_Permanent_Assets.html">永久素材</a>
*
* @author 芋道源码
* @author ZT
*/
@TableName("mp_material")
@KeySequence("mp_material_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -19,7 +19,7 @@ import java.util.List;
/**
* 公众号菜单 DO
*
* @author 芋道源码
* @author ZT
*/
@TableName(value = "mp_menu", autoResultMap = true)
@KeySequence("mp_menu_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -22,7 +22,7 @@ import java.util.Set;
/**
* 公众号消息自动回复 DO
*
* @author 芋道源码
* @author ZT
*/
@TableName(value = "mp_auto_reply", autoResultMap = true)
@KeySequence("mp_auto_reply_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -22,7 +22,7 @@ import java.util.List;
/**
* 公众号消息 DO
*
* @author 芋道源码
* @author ZT
*/
@TableName(value = "mp_message", autoResultMap = true)
@KeySequence("mp_message_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -10,7 +10,7 @@ import me.chanjar.weixin.mp.bean.tag.WxUserTag;
/**
* 公众号标签 DO
*
* @author 芋道源码
* @author ZT
*/
@TableName("mp_tag")
@KeySequence("mp_tag_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -17,7 +17,7 @@ import java.util.List;
/**
* 微信公众号粉丝 DO
*
* @author 芋道源码
* @author ZT
*/
@TableName(value = "mp_user", autoResultMap = true)
@KeySequence("mp_user_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -21,7 +21,7 @@ import org.springframework.data.redis.core.StringRedisTemplate;
/**
* 微信公众号的配置类
*
* @author 芋道源码
* @author ZT
*/
@Configuration
public class MpConfiguration {

View File

@@ -29,7 +29,7 @@ import java.util.Map;
/**
* 默认的 {@link MpServiceFactory} 实现类
*
* @author 芋道源码
* @author ZT
*/
@Slf4j
@RequiredArgsConstructor

View File

@@ -10,7 +10,7 @@ import java.util.List;
/**
* {@link WxMpService} 工厂接口
*
* @author 芋道源码
* @author ZT
*/
public interface MpServiceFactory {

View File

@@ -29,7 +29,7 @@ import me.chanjar.weixin.mp.api.WxMpMessageHandler;
*
* @see cn.iocoder.yudao.module.mp.controller.admin.open.MpOpenController#handleMessage(String, String, MpOpenHandleMessageReqVO)
*
* @author 芋道源码
* @author ZT
*/
public class MpContextHolder {

View File

@@ -10,7 +10,7 @@ import jakarta.validation.Validator;
/**
* 公众号工具类
*
* @author 芋道源码
* @author ZT
*/
@Slf4j
public class MpUtils {

View File

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

View File

@@ -15,7 +15,7 @@ import static cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants.ACCOUNT_NOT_EX
/**
* 公众号账号 Service 接口
*
* @author 芋道源码
* @author ZT
*/
public interface MpAccountService {

View File

@@ -17,7 +17,7 @@ import java.util.Map;
*
* 逻辑:粉丝点击菜单时,触发对应的回复
*
* @author 芋道源码
* @author ZT
*/
@Component
public class MenuHandler implements WxMpMessageHandler {

View File

@@ -17,7 +17,7 @@ import java.util.Map;
/**
* 自动回复消息的事件处理器
*
* @author 芋道源码
* @author ZT
*/
@Component
@Slf4j

View File

@@ -16,7 +16,7 @@ import java.util.Map;
/**
* 保存微信消息的事件处理器
*
* @author 芋道源码
* @author ZT
*/
@Component
@Slf4j

View File

@@ -12,7 +12,7 @@ import java.util.Map;
/**
* 接收客服会话管理的事件处理器
*
* @author 芋道源码
* @author ZT
*/
@Component
public class KfSessionHandler implements WxMpMessageHandler {

View File

@@ -22,7 +22,7 @@ import java.util.Map;
*
* 逻辑:粉丝上传地理位置时,也可以触发自动回复
*
* @author 芋道源码
* @author ZT
*/
@Component
@Slf4j

View File

@@ -19,7 +19,7 @@ import java.util.Map;
/**
* 关注的事件处理器
*
* @author 芋道源码
* @author ZT
*/
@Component
@Slf4j

View File

@@ -17,7 +17,7 @@ import java.util.Map;
/**
* 取消关注的事件处理器
*
* @author 芋道源码
* @author ZT
*/
@Component
@Slf4j

View File

@@ -16,7 +16,7 @@ import java.util.List;
/**
* 公众号素材 Service 接口
*
* @author 芋道源码
* @author ZT
*/
public interface MpMaterialService {

View File

@@ -37,7 +37,7 @@ import static cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants.*;
/**
* 公众号素材 Service 接口
*
* @author 芋道源码
* @author ZT
*/
@Service
@Validated

View File

@@ -10,7 +10,7 @@ import java.util.List;
/**
* 公众号菜单 Service 接口
*
* @author 芋道源码
* @author ZT
*/
public interface MpMenuService {

View File

@@ -33,7 +33,7 @@ import static cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants.MENU_SAVE_FAIL
/**
* 公众号菜单 Service 实现类
*
* @author 芋道源码
* @author ZT
*/
@Service
@Validated

View File

@@ -11,7 +11,7 @@ import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
/**
* 公众号的自动回复 Service 接口
*
* @author 芋道源码
* @author ZT
*/
public interface MpAutoReplyService {

View File

@@ -33,7 +33,7 @@ import static cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants.*;
/**
* 公众号的自动回复 Service 实现类
*
* @author 芋道源码
* @author ZT
*/
@Service
@Validated

View File

@@ -14,7 +14,7 @@ import jakarta.validation.Valid;
/**
* 公众号消息 Service 接口
*
* @author 芋道源码
* @author ZT
*/
public interface MpMessageService {

View File

@@ -41,7 +41,7 @@ import static cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants.MESSAGE_SEND_F
/**
* 粉丝消息 Service 实现类
*
* @author 芋道源码
* @author ZT
*/
@Service
@Validated

View File

@@ -16,7 +16,7 @@ import java.util.List;
*
* 为什么要有该 BO 呢?在自动回复、客服消息、菜单回复消息等场景,都涉及到 MP 给粉丝发送消息,所以使用该 BO 统一承接
*
* @author 芋道源码
* @author ZT
*/
@Data
public class MpMessageSendOutReqBO {

View File

@@ -11,7 +11,7 @@ import java.util.List;
/**
* 公众号统计 Service 接口
*
* @author 芋道源码
* @author ZT
*/
public interface MpStatisticsService {

View File

@@ -21,7 +21,7 @@ import static cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants.*;
/**
* 公众号统计 Service 实现类
*
* @author 芋道源码
* @author ZT
*/
@Service
public class MpStatisticsServiceImpl implements MpStatisticsService {

View File

@@ -15,7 +15,7 @@ import static cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants.USER_NOT_EXIST
/**
* 公众号粉丝 Service 接口
*
* @author 芋道源码
* @author ZT
*/
public interface MpUserService {

View File

@@ -37,7 +37,7 @@ import static cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants.USER_UPDATE_TA
/**
* 微信公众号粉丝 Service 实现类
*
* @author 芋道源码
* @author ZT
*/
@Service
@Validated