package org.sxkj.core.log.wrapper;
|
|
import org.springblade.core.mp.support.BaseEntityWrapper;
|
import org.springblade.core.tool.utils.BeanUtil;
|
import org.sxkj.core.log.dto.OperationLogDTO;
|
import org.sxkj.core.log.model.OperationLog;
|
import org.sxkj.core.log.vo.OperationLogVO;
|
|
import java.util.Objects;
|
|
/**
|
* @Description 操作日志包装类
|
* @Author AIX
|
* @Date 2026/1/15 17:40
|
* @Version 1.0
|
*/
|
public class OperationLogWrapper extends BaseEntityWrapper<OperationLog, OperationLogVO> {
|
|
public static OperationLogWrapper build() {
|
return new OperationLogWrapper();
|
}
|
|
@Override
|
public OperationLogVO entityVO(OperationLog entity) {
|
return Objects.requireNonNull(BeanUtil.copy(entity, OperationLogVO.class));
|
}
|
|
public OperationLog entityDTO(OperationLogDTO operationLogDTO) {
|
return Objects.requireNonNull(BeanUtil.copy(operationLogDTO, OperationLog.class));
|
}
|
|
}
|