若依 2.0

This commit is contained in:
RuoYi
2020-06-10 11:31:13 +08:00
committed by 疯狂的狮子li
parent cc50a7c8d1
commit d5d7e9b782
61 changed files with 1306 additions and 305 deletions

View File

@@ -4,7 +4,7 @@
<parent>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi</artifactId>
<version>1.0.0</version>
<version>2.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -5,7 +5,7 @@
<parent>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-api</artifactId>
<version>1.0.0</version>
<version>2.0.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@@ -3,6 +3,7 @@ package com.ruoyi.system.api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.SysOperLog;
@@ -20,9 +21,20 @@ public interface RemoteLogService
* 保存系统日志
*
* @param sysOperLog 日志实体
* @param from 内部调用标志
* @return 结果
*/
@PostMapping("/operlog")
R<Boolean> saveLog(@RequestBody SysOperLog sysOperLog);
/**
* 保存访问记录
*
* @param username 用户名称
* @param status 状态
* @param message 消息
* @return 结果
*/
@PostMapping("/logininfor")
R<Boolean> saveLogininfor(@RequestParam("username") String username, @RequestParam("status") String status,
@RequestParam("message") String message);
}

View File

@@ -20,7 +20,6 @@ public interface RemoteUserService
* 通过用户名查询用户信息
*
* @param username 用户名
* @param from 调用标志
* @return 结果
*/
@GetMapping(value = "/user/info/{username}")

View File

@@ -58,10 +58,6 @@ public class SysOperLog extends BaseEntity
@Excel(name = "操作地址")
private String operIp;
/** 操作地点 */
@Excel(name = "操作地点")
private String operLocation;
/** 请求参数 */
@Excel(name = "请求参数")
private String operParam;
@@ -193,16 +189,6 @@ public class SysOperLog extends BaseEntity
this.operIp = operIp;
}
public String getOperLocation()
{
return operLocation;
}
public void setOperLocation(String operLocation)
{
this.operLocation = operLocation;
}
public String getOperParam()
{
return operParam;

View File

@@ -29,6 +29,13 @@ public class RemoteLogFallbackFactory implements FallbackFactory<RemoteLogServic
{
return null;
}
@Override
public R<Boolean> saveLogininfor(String username, String status, String message)
{
return null;
}
};
}
}