haungfuli 2 éve
szülő
commit
bbec32f6d4

+ 21 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/HyOperLogController.java

@@ -0,0 +1,21 @@
+package com.yh.saas.plugin.yiliangyiyun.controller;
+
+
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ * 记录token 前端控制器
+ * </p>
+ *
+ * @author Gdc
+ * @since 2022-08-02
+ */
+@RestController
+@RequestMapping("/hyOperLog")
+public class HyOperLogController {
+
+}
+

+ 75 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/entity/HyOperLog.java

@@ -0,0 +1,75 @@
+package com.yh.saas.plugin.yiliangyiyun.entity;
+
+import com.baomidou.mybatisplus.activerecord.Model;
+import BaseModel;
+import java.io.Serializable;
+
+import com.baomidou.mybatisplus.annotations.Version;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 记录token
+ * </p>
+ *
+ * @author Gdc
+ * @since 2022-08-02
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+@Accessors(chain = true)
+public class HyOperLog extends BaseModel<HyOperLog> {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    private String id;
+    /**
+     * 日志模块
+     */
+    private String title;
+    /**
+     * ip地址
+     */
+    private String ip;
+    /**
+     * url地址
+     */
+    private String url;
+    /**
+     * 状态
+     */
+    private String status;
+    /**
+     * 错误信息
+     */
+    private String errMsg;
+    /**
+     * 方法名
+     */
+    private String method;
+    /**
+     * 请求
+     */
+    private String requestMethod;
+    /**
+     * 请求参数
+     */
+    private String requestValue;
+    /**
+     * 响应
+     */
+    private String jsonResult;
+
+
+    @Override
+    protected Serializable pkVal() {
+        return this.id;
+    }
+
+}

+ 16 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/mapper/HyOperLogMapper.java

@@ -0,0 +1,16 @@
+package com.yh.saas.plugin.yiliangyiyun.mapper;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.HyOperLog;
+import com.baomidou.mybatisplus.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 记录token Mapper 接口
+ * </p>
+ *
+ * @author Gdc
+ * @since 2022-08-02
+ */
+public interface HyOperLogMapper extends BaseMapper<HyOperLog> {
+
+}

+ 16 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/IHyOperLogService.java

@@ -0,0 +1,16 @@
+package com.yh.saas.plugin.yiliangyiyun.service;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.HyOperLog;
+import com.baomidou.mybatisplus.service.IService;
+
+/**
+ * <p>
+ * 记录token 服务类
+ * </p>
+ *
+ * @author Gdc
+ * @since 2022-08-02
+ */
+public interface IHyOperLogService extends IService<HyOperLog> {
+
+}

+ 20 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/HyOperLogServiceImpl.java

@@ -0,0 +1,20 @@
+package com.yh.saas.plugin.yiliangyiyun.service.impl;
+
+import com.yh.saas.plugin.yiliangyiyun.entity.HyOperLog;
+import com.yh.saas.plugin.yiliangyiyun.mapper.HyOperLogMapper;
+import com.yh.saas.plugin.yiliangyiyun.service.IHyOperLogService;
+import com.baomidou.mybatisplus.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 记录token 服务实现类
+ * </p>
+ *
+ * @author Gdc
+ * @since 2022-08-02
+ */
+@Service
+public class HyOperLogServiceImpl extends ServiceImpl<HyOperLogMapper, HyOperLog> implements IHyOperLogService {
+
+}

+ 5 - 0
winsea-haixin-plugin-wangluohuoyun/src/main/resources/mapper/HyOperLogMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.yh.saas.plugin.yiliangyiyun.mapper.HyOperLogMapper">
+
+</mapper>