-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
312 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...server/src/main/java/cn/archliu/horus/server/domain/reach/web/convert/ChannelConvert.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package cn.archliu.horus.server.domain.reach.web.convert; | ||
|
||
import org.mapstruct.Mapper; | ||
import org.mapstruct.factory.Mappers; | ||
|
||
import cn.archliu.horus.infr.domain.reach.entity.HorusReachChannel; | ||
import cn.archliu.horus.infr.domain.reach.entity.HorusReachReceiver; | ||
import cn.archliu.horus.server.domain.reach.web.dto.ReachChannelDTO; | ||
import cn.archliu.horus.server.domain.reach.web.dto.ReachReceiverDTO; | ||
|
||
@Mapper | ||
public interface ChannelConvert { | ||
|
||
ChannelConvert INSTANCE = Mappers.getMapper(ChannelConvert.class); | ||
|
||
HorusReachChannel convert(ReachChannelDTO dto); | ||
|
||
HorusReachReceiver convert(ReachReceiverDTO dto); | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...server/src/main/java/cn/archliu/horus/server/domain/reach/web/dto/ChannelReceiverDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package cn.archliu.horus.server.domain.reach.web.dto; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Data; | ||
import lombok.experimental.Accessors; | ||
|
||
@ApiModel("通道添加接收人") | ||
@Data | ||
@Accessors(chain = true) | ||
public class ChannelReceiverDTO { | ||
|
||
@ApiModelProperty("通道ID") | ||
@NotNull(message = "通达ID不允许为空") | ||
private Long channelId; | ||
|
||
@ApiModelProperty("消息接收人ID") | ||
@NotNull(message = "消息接收人ID不允许为空") | ||
private Long receiverId; | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
horus-server/src/main/java/cn/archliu/horus/server/domain/reach/web/dto/ReachChannelDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package cn.archliu.horus.server.domain.reach.web.dto; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
||
import cn.archliu.horus.common.enums.ComState; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Data; | ||
import lombok.experimental.Accessors; | ||
|
||
@ApiModel("触达通道") | ||
@Data | ||
@Accessors(chain = true) | ||
public class ReachChannelDTO { | ||
|
||
@ApiModelProperty("通道编码") | ||
@NotBlank(message = "通道编码不允许为空!") | ||
private String channelCode; | ||
|
||
@ApiModelProperty("通道名称") | ||
@NotBlank(message = "通道名称不允许为空!") | ||
private String channelName; | ||
|
||
@ApiModelProperty("匹配类别编码") | ||
@NotBlank(message = "匹配类别编码不允许为空!") | ||
private String categoryCode; | ||
|
||
@ApiModelProperty("启用状态") | ||
private ComState enableState = ComState.ENABLED; | ||
|
||
} |
Oops, something went wrong.