| | |
| | | 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;
|
| | |
| | | * 保存系统日志
|
| | | *
|
| | | * @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);
|
| | | }
|