mirror of https://gitee.com/stylefeng/roses
【8.0.1】【log】更新日志模块的结构,util放到api模块
parent
771e8b7f3e
commit
f4cd70fbf3
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.context;
|
||||
package cn.stylefeng.roses.kernel.log.api.context;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusiness;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
|
@ -1,4 +1,4 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.entity;
|
||||
package cn.stylefeng.roses.kernel.log.api.pojo.entity;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
|
|
@ -1,4 +1,4 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.entity;
|
||||
package cn.stylefeng.roses.kernel.log.api.pojo.entity;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
|
|
@ -1,9 +1,10 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.util;
|
||||
package cn.stylefeng.roses.kernel.log.api.util;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.stylefeng.roses.kernel.log.business.context.BusinessLogHolder;
|
||||
import cn.stylefeng.roses.kernel.log.api.context.BusinessLogHolder;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONWriter;
|
||||
|
||||
/**
|
||||
* 业务日志
|
||||
|
@ -42,7 +43,7 @@ public class BusinessLogUtil {
|
|||
if (param instanceof String) {
|
||||
stringBuffer.append(param);
|
||||
} else {
|
||||
stringBuffer.append(JSON.toJSONString(param));
|
||||
stringBuffer.append(JSON.toJSONString(param, JSONWriter.Feature.PrettyFormat));
|
||||
}
|
||||
}
|
||||
BusinessLogHolder.addContent(stringBuffer.toString());
|
|
@ -28,8 +28,8 @@ import cn.hutool.core.util.ObjectUtil;
|
|||
import cn.stylefeng.roses.kernel.auth.api.context.LoginContext;
|
||||
import cn.stylefeng.roses.kernel.auth.api.pojo.login.LoginUser;
|
||||
import cn.stylefeng.roses.kernel.log.api.constants.LogFileConstants;
|
||||
import cn.stylefeng.roses.kernel.log.business.context.BusinessLogHolder;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.api.context.BusinessLogHolder;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.business.service.SysLogBusinessService;
|
||||
import cn.stylefeng.roses.kernel.rule.annotation.BizLog;
|
||||
import cn.stylefeng.roses.kernel.rule.util.HttpServletUtil;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.controller;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusinessContent;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusinessContent;
|
||||
import cn.stylefeng.roses.kernel.log.business.pojo.request.SysLogBusinessContentRequest;
|
||||
import cn.stylefeng.roses.kernel.log.business.service.SysLogBusinessContentService;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.controller;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.business.pojo.request.SysLogBusinessRequest;
|
||||
import cn.stylefeng.roses.kernel.log.business.service.SysLogBusinessService;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.mapper;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.mp.injector.CustomBaseMapper;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusinessContent;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusinessContent;
|
||||
|
||||
/**
|
||||
* 业务日志记录 Mapper 接口
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.mapper;
|
||||
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusiness;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.service;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusinessContent;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusinessContent;
|
||||
import cn.stylefeng.roses.kernel.log.business.pojo.request.SysLogBusinessContentRequest;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package cn.stylefeng.roses.kernel.log.business.service;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.business.pojo.request.SysLogBusinessRequest;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import cn.stylefeng.roses.kernel.db.api.factory.PageFactory;
|
|||
import cn.stylefeng.roses.kernel.db.api.factory.PageResultFactory;
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.dsctn.api.context.DataSourceContext;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusinessContent;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusinessContent;
|
||||
import cn.stylefeng.roses.kernel.log.business.mapper.SysLogBusinessContentMapper;
|
||||
import cn.stylefeng.roses.kernel.log.business.pojo.request.SysLogBusinessContentRequest;
|
||||
import cn.stylefeng.roses.kernel.log.business.service.SysLogBusinessContentService;
|
||||
|
|
|
@ -5,8 +5,8 @@ import cn.hutool.core.util.ObjectUtil;
|
|||
import cn.stylefeng.roses.kernel.db.api.factory.PageFactory;
|
||||
import cn.stylefeng.roses.kernel.db.api.factory.PageResultFactory;
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.business.entity.SysLogBusinessContent;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusiness;
|
||||
import cn.stylefeng.roses.kernel.log.api.pojo.entity.SysLogBusinessContent;
|
||||
import cn.stylefeng.roses.kernel.log.business.enums.SysLogBusinessExceptionEnum;
|
||||
import cn.stylefeng.roses.kernel.log.business.mapper.SysLogBusinessMapper;
|
||||
import cn.stylefeng.roses.kernel.log.business.pojo.request.SysLogBusinessRequest;
|
||||
|
|
Loading…
Reference in New Issue