init
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package com.newyetai.component.chat.mapstruct;
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import com.newyetai.component.chat.dto.ChatMsgDTO;
|
||||
import com.newyetai.component.chat.entity.ChatMsg;
|
||||
import com.newyetai.component.chat.dto.ChatMsgCreateDTO;
|
||||
|
||||
/**
|
||||
* @author sr on 2025-05-29
|
||||
*/
|
||||
@Mapper
|
||||
public interface ChatMsgMapMapper {
|
||||
|
||||
ChatMsgMapMapper INSTANCE =
|
||||
Mappers.getMapper(ChatMsgMapMapper.class);
|
||||
|
||||
/**
|
||||
* dto to entity
|
||||
*
|
||||
* @param chatMsgDto
|
||||
* @return
|
||||
* @author sr on 2025-05-29
|
||||
*/
|
||||
ChatMsg toEntity(
|
||||
ChatMsgDTO chatMsgDto);
|
||||
|
||||
|
||||
/**
|
||||
* @param chatMsgCreateDTO
|
||||
* @return
|
||||
* @author sr on 2025-05-29
|
||||
*/
|
||||
ChatMsg toEntity(ChatMsgCreateDTO chatMsgCreateDTO);
|
||||
|
||||
ChatMsgDTO toDto(ChatMsg chatMsg);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user