mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	统一 DeptApi 的封装,与 yudao-cloud~
This commit is contained in:
		@@ -9,8 +9,6 @@ import org.springframework.stereotype.Service;
 | 
			
		||||
import javax.annotation.Resource;
 | 
			
		||||
import java.util.Collection;
 | 
			
		||||
import java.util.List;
 | 
			
		||||
import java.util.Map;
 | 
			
		||||
import java.util.Set;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 部门 API 实现类
 | 
			
		||||
@@ -40,10 +38,4 @@ public class DeptApiImpl implements DeptApi {
 | 
			
		||||
        deptService.validDepts(ids);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public Map<Long, DeptRespDTO> getDeptMap(Set<Long> ids) {
 | 
			
		||||
        Map<Long, DeptDO> depts = deptService.getDeptMap(ids);
 | 
			
		||||
        return DeptConvert.INSTANCE.convertMap(depts);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,7 @@ public class LoginLogBaseVO {
 | 
			
		||||
    @NotNull(message = "日志类型不能为空")
 | 
			
		||||
    private Integer logType;
 | 
			
		||||
 | 
			
		||||
    @ApiModelProperty(value = "链路追踪编号", required = true, example = "89aca178-a370-411c-ae02-3f0d672be4ab")
 | 
			
		||||
    @ApiModelProperty(value = "链路追踪编号", example = "89aca178-a370-411c-ae02-3f0d672be4ab")
 | 
			
		||||
    @NotEmpty(message = "链路追踪编号不能为空")
 | 
			
		||||
    private String traceId;
 | 
			
		||||
 | 
			
		||||
@@ -36,8 +36,7 @@ public class LoginLogBaseVO {
 | 
			
		||||
    @NotEmpty(message = "用户 IP 不能为空")
 | 
			
		||||
    private String userIp;
 | 
			
		||||
 | 
			
		||||
    @ApiModelProperty(value = "浏览器 UserAgent", required = true, example = "Mozilla/5.0")
 | 
			
		||||
    @NotEmpty(message = "浏览器 UserAgent 不能为空")
 | 
			
		||||
    @ApiModelProperty(value = "浏览器 UserAgent", example = "Mozilla/5.0")
 | 
			
		||||
    private String userAgent;
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -18,8 +18,7 @@ public class LoginLogRespVO extends LoginLogBaseVO {
 | 
			
		||||
    @ApiModelProperty(value = "日志编号", required = true, example = "1024")
 | 
			
		||||
    private Long id;
 | 
			
		||||
 | 
			
		||||
    @ApiModelProperty(value = "用户编号", required = true, example = "666")
 | 
			
		||||
    @NotNull(message = "用户编号不能为空")
 | 
			
		||||
    @ApiModelProperty(value = "用户编号", example = "666")
 | 
			
		||||
    private Long userId;
 | 
			
		||||
 | 
			
		||||
    @ApiModelProperty(value = "用户类型", required = true, example = "2", notes = "参见 UserTypeEnum 枚举")
 | 
			
		||||
 
 | 
			
		||||
@@ -31,6 +31,4 @@ public interface DeptConvert {
 | 
			
		||||
 | 
			
		||||
    DeptRespDTO convert03(DeptDO bean);
 | 
			
		||||
 | 
			
		||||
    Map<Long, DeptRespDTO> convertMap(Map<Long, DeptDO> map);
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user