import cn.com.taiji.common.entity.BaseEntity; | import cn.com.taiji.common.entity.BaseEntity; | ||||
import cn.com.taiji.core.entity.msgw.MsgwSendDetails; | |||||
import lombok.Getter; | |||||
import lombok.Setter; | import lombok.Setter; | ||||
@Getter | |||||
@Setter | @Setter | ||||
public class MessageSendDetailsAddResponseDto extends BaseEntity { | public class MessageSendDetailsAddResponseDto extends BaseEntity { | ||||
@ApiModelProperty(value = "子表id",required = true) | @ApiModelProperty(value = "子表id",required = true) | ||||
@NotBlank(message = "id不能为空") | @NotBlank(message = "id不能为空") | ||||
private String sendDetailsId; | |||||
private String id; | |||||
} | } |
package cn.com.taiji.msgw.dto; | package cn.com.taiji.msgw.dto; | ||||
import cn.com.taiji.common.entity.BaseEntity; | import cn.com.taiji.common.entity.BaseEntity; | ||||
import cn.com.taiji.core.entity.msgw.MsgwSendDetails; | import cn.com.taiji.core.entity.msgw.MsgwSendDetails; | ||||
import lombok.Getter; | |||||
import lombok.Setter; | import lombok.Setter; | ||||
@Getter | |||||
@Setter | @Setter | ||||
public class MessageSendDetailsResponseDto extends BaseEntity { | public class MessageSendDetailsResponseDto extends BaseEntity { | ||||
@Override | @Override | ||||
public MessageSendDetailsResponseDto view(MessageSendDetailsRequestDto request) { | public MessageSendDetailsResponseDto view(MessageSendDetailsRequestDto request) { | ||||
MsgwSendDetails sendDetails = sendDetailsRepo.findById(request.getSendDetailsId()).orElse(null); | |||||
MsgwSendDetails sendDetails = sendDetailsRepo.findById(request.getId()).orElse(null); | |||||
MessageSendDetailsResponseDto response = new MessageSendDetailsResponseDto(); | MessageSendDetailsResponseDto response = new MessageSendDetailsResponseDto(); | ||||
response.setSendDetails(sendDetails); | response.setSendDetails(sendDetails); | ||||
return response; | return response; |