提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.convert.message; |
H |
2 |
|
|
3 |
import com.iailab.module.system.api.sms.dto.send.SmsSendSingleToUserReqDTO; |
|
4 |
import org.mapstruct.Mapper; |
|
5 |
import org.mapstruct.Mapping; |
|
6 |
import org.mapstruct.factory.Mappers; |
|
7 |
|
|
8 |
import java.util.Map; |
|
9 |
|
|
10 |
@Mapper |
|
11 |
public interface BpmMessageConvert { |
|
12 |
|
|
13 |
BpmMessageConvert INSTANCE = Mappers.getMapper(BpmMessageConvert.class); |
|
14 |
|
|
15 |
@Mapping(target = "mobile", ignore = true) |
|
16 |
@Mapping(source = "userId", target = "userId") |
|
17 |
@Mapping(source = "templateCode", target = "templateCode") |
|
18 |
@Mapping(source = "templateParams", target = "templateParams") |
|
19 |
SmsSendSingleToUserReqDTO convert(Long userId, String templateCode, Map<String, Object> templateParams); |
|
20 |
|
|
21 |
} |