Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
8c92088d
Commit
8c92088d
authored
Nov 21, 2024
by
honghy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改发送消息的消费者
parent
6f3e1ae4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
SmsSendConsumerV2.java
...udao/module/system/mq/consumer/sms/SmsSendConsumerV2.java
+3
-4
SmsSendMessageV2.java
.../yudao/module/system/mq/message/sms/SmsSendMessageV2.java
+3
-4
No files found.
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/mq/consumer/sms/SmsSendConsumerV2.java
View file @
8c92088d
package
cn
.
iocoder
.
yudao
.
module
.
system
.
mq
.
consumer
.
sms
;
import
cn.iocoder.yudao.framework.mq.core.stream.AbstractStreamMessageListener
;
import
cn.iocoder.yudao.module.system.mq.message.sms.SmsSendMessage
;
import
cn.iocoder.yudao.framework.mq.core.pubsub.AbstractChannelMessageListener
;
import
cn.iocoder.yudao.module.system.mq.message.sms.SmsSendMessageV2
;
import
cn.iocoder.yudao.module.system.service.sms.SmsSendService
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -10,13 +9,13 @@ import org.springframework.stereotype.Component;
import
javax.annotation.Resource
;
/**
* 针对 {@link SmsSend
Message
} 的消费者
* 针对 {@link SmsSend
ConsumerV2
} 的消费者
*
* @author zzf
*/
@Component
@Slf4j
public
class
SmsSendConsumerV2
extends
Abstract
Stream
MessageListener
<
SmsSendMessageV2
>
{
public
class
SmsSendConsumerV2
extends
Abstract
Channel
MessageListener
<
SmsSendMessageV2
>
{
@Resource
private
SmsSendService
smsSendService
;
...
...
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/mq/message/sms/SmsSendMessageV2.java
View file @
8c92088d
package
cn
.
iocoder
.
yudao
.
module
.
system
.
mq
.
message
.
sms
;
import
cn.iocoder.yudao.framework.common.util.json.core.KeyValue
;
import
cn.iocoder.yudao.framework.mq.core.
stream.AbstractStream
Message
;
import
cn.iocoder.yudao.framework.mq.core.
pubsub.AbstractChannel
Message
;
import
cn.iocoder.yudao.framework.sms.core.client.dto.SmsTemplateDTO
;
import
cn.iocoder.yudao.module.system.dal.dataobject.sms.SmsTemplateDO
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
...
...
@@ -17,7 +16,7 @@ import java.util.List;
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
public
class
SmsSendMessageV2
extends
Abstract
Stream
Message
{
public
class
SmsSendMessageV2
extends
Abstract
Channel
Message
{
/**
* 短信日志编号
...
...
@@ -43,7 +42,7 @@ public class SmsSendMessageV2 extends AbstractStreamMessage {
private
List
<
KeyValue
<
String
,
Object
>>
templateParams
;
@Override
public
String
get
StreamKey
()
{
public
String
get
Channel
()
{
return
"system.sms.send"
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment