包含 s-file 后端、React 前端、MeshSafe 安全检测对接,以及内外网两套 compose/nginx/配置(仅前端 28180/28280 对外发布,其余端口不暴露)。 说明:deploy/config/application-iw.yml 与 application-ow.yml 按维护者 明确要求原样入库,其中含本机 Docker 用的库口令、RabbitMQ 口令与 JWT 密钥;上生产前需替换。
37 lines
819 B
Java
37 lines
819 B
Java
package com.senmesh.common.util;
|
|
|
|
import com.senmesh.common.dto.BaseDTO;
|
|
import com.senmesh.common.entity.BaseEntity;
|
|
|
|
/**
|
|
* 基础dto工具类
|
|
* @author sr on 2019-12-07
|
|
*/
|
|
public class BaseDtoUtils {
|
|
|
|
/**
|
|
* 创建回写dto数据
|
|
* @param entity
|
|
* @param dto
|
|
* @author sr on 2019-12-07
|
|
*/
|
|
public static void createCopy(BaseEntity entity, BaseDTO dto) {
|
|
dto.setId(entity.getId());
|
|
dto.setDeleted(entity.getDeleted());
|
|
dto.setCreateTime(entity.getCreateTime());
|
|
dto.setCreateBy(entity.getCreateBy());
|
|
}
|
|
|
|
/**
|
|
* 修改回写dto数据
|
|
* @param entity
|
|
* @param dto
|
|
* @author sr on 2019-12-07
|
|
*/
|
|
public static void updateCopy(BaseEntity entity, BaseDTO dto) {
|
|
dto.setUpdateTime(entity.getUpdateTime());
|
|
dto.setUpdateBy(entity.getUpdateBy());
|
|
}
|
|
|
|
}
|