mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
🔥 Removing code or files. 移除过时文件
🚚 Moving or renaming files.统一前端展示对象类名大小写
This commit is contained in:
1 parent
5b32422491
commit
39fb1a223a
9 files changed
+10
-169
No files matched your search
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2018-2025, lengleng All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the pig4cloud.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: lengleng (wangiegie@gmail.com)
|
||||
*
|
||||
*/
|
||||
|
||||
package com.pig4cloud.pigx.admin.api.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* 图形验证码
|
||||
*
|
||||
* @author lengleng
|
||||
* @date 2017-12-18
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "图形验证码")
|
||||
public class ImageCode implements Serializable {
|
||||
/**
|
||||
* 随机数
|
||||
*/
|
||||
@ApiModelProperty(value = "随机数")
|
||||
private String code;
|
||||
/**
|
||||
* 验证码过期时间
|
||||
*/
|
||||
@ApiModelProperty(value = "验证码过期时间")
|
||||
private LocalDateTime expireTime;
|
||||
/**
|
||||
* 验证码图片
|
||||
*/
|
||||
@ApiModelProperty(value = "验证码图片")
|
||||
private BufferedImage image;
|
||||
|
||||
public ImageCode(BufferedImage image, String sRand, int defaultImageExpire) {
|
||||
this.image = image;
|
||||
this.code = sRand;
|
||||
this.expireTime = LocalDateTime.now().plusSeconds(defaultImageExpire);
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
/*
|
||||
*
|
||||
* Copyright (c) 2018-2025, lengleng All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the pig4cloud.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: lengleng (wangiegie@gmail.com)
|
||||
*
|
||||
*/
|
||||
|
||||
package com.pig4cloud.pigx.admin.api.vo;
|
||||
|
||||
import com.pig4cloud.pigx.admin.api.entity.SysLog;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author lengleng
|
||||
* @date 2017/11/20
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "日志展示对象")
|
||||
public class LogVO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "日志内容")
|
||||
private SysLog sysLog;
|
||||
@ApiModelProperty(value = "产生日志的用户")
|
||||
private String username;
|
||||
}
|
||||
@@ -1,56 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2025, lengleng All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* Neither the name of the pig4cloud.com developer nor the names of its
|
||||
* contributors may be used to endorse or promote products derived from
|
||||
* this software without specific prior written permission.
|
||||
* Author: lengleng (wangiegie@gmail.com)
|
||||
*/
|
||||
|
||||
package com.pig4cloud.pigx.admin.api.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author: Lucky
|
||||
* @date: 2019/04/28
|
||||
* <p>
|
||||
* 公共参数
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "公共参数展示对象")
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ParamVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 公共参数键
|
||||
*/
|
||||
@ApiModelProperty(value = "公共参数键")
|
||||
private String publicKey;
|
||||
/**
|
||||
* 公共参数值
|
||||
*/
|
||||
@ApiModelProperty(value = "公共参数值")
|
||||
private String publicValue;
|
||||
/**
|
||||
* 公共参数名
|
||||
*/
|
||||
@ApiModelProperty(value = "公共参数名称")
|
||||
private String publicName;
|
||||
}
|
||||
+1
-1
@@ -28,7 +28,7 @@ import lombok.Data;
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "前端日志展示对象")
|
||||
public class PreLogVo {
|
||||
public class PreLogVO {
|
||||
/**
|
||||
* 请求url
|
||||
*/
|
||||
+1
-1
@@ -26,7 +26,7 @@ import lombok.Data;
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "前端角色展示对象")
|
||||
public class RoleVo {
|
||||
public class RoleVO {
|
||||
/**
|
||||
* 角色id
|
||||
*/
|
||||
+2
-2
@@ -23,7 +23,7 @@ package com.pig4cloud.pigx.admin.controller;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pig4cloud.pigx.admin.api.entity.SysLog;
|
||||
import com.pig4cloud.pigx.admin.api.vo.PreLogVo;
|
||||
import com.pig4cloud.pigx.admin.api.vo.PreLogVO;
|
||||
import com.pig4cloud.pigx.admin.service.SysLogService;
|
||||
import com.pig4cloud.pigx.common.core.util.R;
|
||||
import com.pig4cloud.pigx.common.security.annotation.Inner;
|
||||
@@ -93,7 +93,7 @@ public class SysLogController {
|
||||
* @return success/false
|
||||
*/
|
||||
@PostMapping("/logs")
|
||||
public R saveBatchLogs(@RequestBody List<PreLogVo> preLogVoList) {
|
||||
public R saveBatchLogs(@RequestBody List<PreLogVO> preLogVoList) {
|
||||
return R.ok(sysLogService.saveBatchLogs(preLogVoList));
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -22,7 +22,7 @@ package com.pig4cloud.pigx.admin.controller;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.pig4cloud.pigx.admin.api.entity.SysRole;
|
||||
import com.pig4cloud.pigx.admin.api.vo.RoleVo;
|
||||
import com.pig4cloud.pigx.admin.api.vo.RoleVO;
|
||||
import com.pig4cloud.pigx.admin.service.SysRoleMenuService;
|
||||
import com.pig4cloud.pigx.admin.service.SysRoleService;
|
||||
import com.pig4cloud.pigx.common.core.util.R;
|
||||
@@ -127,7 +127,7 @@ public class SysRoleController {
|
||||
@SysLog("更新角色菜单")
|
||||
@PutMapping("/menu")
|
||||
@PreAuthorize("@pms.hasPermission('sys_role_perm')")
|
||||
public R saveRoleMenus(@RequestBody RoleVo roleVo) {
|
||||
public R saveRoleMenus(@RequestBody RoleVO roleVo) {
|
||||
SysRole sysRole = sysRoleService.getById(roleVo.getRoleId());
|
||||
return R.ok(sysRoleMenuService.saveRoleMenus(sysRole.getRoleCode()
|
||||
, roleVo.getRoleId(), roleVo.getMenuIds()));
|
||||
|
||||
+2
-2
@@ -21,7 +21,7 @@ package com.pig4cloud.pigx.admin.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.pig4cloud.pigx.admin.api.entity.SysLog;
|
||||
import com.pig4cloud.pigx.admin.api.vo.PreLogVo;
|
||||
import com.pig4cloud.pigx.admin.api.vo.PreLogVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -42,5 +42,5 @@ public interface SysLogService extends IService<SysLog> {
|
||||
* @param preLogVoList 日志信息
|
||||
* @return true/false
|
||||
*/
|
||||
Boolean saveBatchLogs(List<PreLogVo> preLogVoList);
|
||||
Boolean saveBatchLogs(List<PreLogVO> preLogVoList);
|
||||
}
|
||||
+2
-2
@@ -21,7 +21,7 @@ package com.pig4cloud.pigx.admin.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.pig4cloud.pigx.admin.api.entity.SysLog;
|
||||
import com.pig4cloud.pigx.admin.api.vo.PreLogVo;
|
||||
import com.pig4cloud.pigx.admin.api.vo.PreLogVO;
|
||||
import com.pig4cloud.pigx.admin.mapper.SysLogMapper;
|
||||
import com.pig4cloud.pigx.admin.service.SysLogService;
|
||||
import com.pig4cloud.pigx.common.core.constant.CommonConstants;
|
||||
@@ -49,7 +49,7 @@ public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> impleme
|
||||
* @return true/false
|
||||
*/
|
||||
@Override
|
||||
public Boolean saveBatchLogs(List<PreLogVo> preLogVoList) {
|
||||
public Boolean saveBatchLogs(List<PreLogVO> preLogVoList) {
|
||||
List<SysLog> sysLogs = preLogVoList.stream()
|
||||
.map(pre -> {
|
||||
SysLog log = new SysLog();
|
||||
|
||||
Reference in new issue
Block a user