-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
398 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
.../src/main/java/top/charles7c/continew/admin/system/model/resp/log/LoginLogExportResp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
/* | ||
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http:https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package top.charles7c.continew.admin.system.model.resp.log; | ||
|
||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; | ||
import com.alibaba.excel.annotation.ExcelProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Data; | ||
import top.charles7c.continew.admin.system.enums.LogStatusEnum; | ||
import top.charles7c.continew.starter.extension.crud.converter.ExcelBaseEnumConverter; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* 登录日志导出信息 | ||
* | ||
* @author Charles7c | ||
* @since 2023/1/14 18:27 | ||
*/ | ||
@Data | ||
@ExcelIgnoreUnannotated | ||
@Schema(description = "登录日志导出信息") | ||
public class LoginLogExportResp implements Serializable { | ||
|
||
@Serial | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* ID | ||
*/ | ||
@Schema(description = "ID", example = "1") | ||
@ExcelProperty(value = "ID") | ||
private Long id; | ||
|
||
/** | ||
* 登录时间 | ||
*/ | ||
@Schema(description = "登录时间", example = "2023-08-08 08:08:08", type = "string") | ||
@ExcelProperty(value = "登录时间") | ||
private LocalDateTime createTime; | ||
|
||
/** | ||
* 用户昵称 | ||
*/ | ||
@Schema(description = "用户昵称", example = "张三") | ||
@ExcelProperty(value = "用户昵称") | ||
private String createUserString; | ||
|
||
/** | ||
* 登录行为 | ||
*/ | ||
@Schema(description = "登录行为", example = "账号登录") | ||
@ExcelProperty(value = "登录行为") | ||
private String description; | ||
|
||
/** | ||
* 状态 | ||
*/ | ||
@Schema(description = "状态(1:成功;2:失败)", type = "Integer", allowableValues = {"1", "2"}, example = "1") | ||
@ExcelProperty(value = "状态", converter = ExcelBaseEnumConverter.class) | ||
private LogStatusEnum status; | ||
|
||
/** | ||
* 登录 IP | ||
*/ | ||
@Schema(description = "登录 IP", example = "192.168.0.1") | ||
@ExcelProperty(value = "登录 IP") | ||
private String ip; | ||
|
||
/** | ||
* 登录地点 | ||
*/ | ||
@Schema(description = "登录地点", example = "中国北京北京市") | ||
@ExcelProperty(value = "登录地点") | ||
private String address; | ||
|
||
/** | ||
* 浏览器 | ||
*/ | ||
@Schema(description = "浏览器", example = "Chrome 115.0.0.0") | ||
@ExcelProperty(value = "浏览器") | ||
private String browser; | ||
|
||
/** | ||
* 终端系统 | ||
*/ | ||
@Schema(description = "终端系统", example = "Windows 10") | ||
@ExcelProperty(value = "终端系统") | ||
private String os; | ||
} |
120 changes: 120 additions & 0 deletions
120
.../main/java/top/charles7c/continew/admin/system/model/resp/log/OperationLogExportResp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
/* | ||
* Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http:https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package top.charles7c.continew.admin.system.model.resp.log; | ||
|
||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; | ||
import com.alibaba.excel.annotation.ExcelProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Data; | ||
import top.charles7c.continew.admin.system.enums.LogStatusEnum; | ||
import top.charles7c.continew.starter.extension.crud.converter.ExcelBaseEnumConverter; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* 操作日志导出信息 | ||
* | ||
* @author Charles7c | ||
* @since 2023/1/14 18:27 | ||
*/ | ||
@Data | ||
@ExcelIgnoreUnannotated | ||
@Schema(description = "操作日志导出信息") | ||
public class OperationLogExportResp implements Serializable { | ||
|
||
@Serial | ||
private static final long serialVersionUID = 1L; | ||
|
||
/** | ||
* ID | ||
*/ | ||
@Schema(description = "ID", example = "1") | ||
@ExcelProperty(value = "ID") | ||
private Long id; | ||
|
||
/** | ||
* 操作时间 | ||
*/ | ||
@Schema(description = "操作时间", example = "2023-08-08 08:08:08", type = "string") | ||
@ExcelProperty(value = "操作时间") | ||
private LocalDateTime createTime; | ||
|
||
/** | ||
* 操作人 | ||
*/ | ||
@Schema(description = "操作人", example = "张三") | ||
@ExcelProperty(value = "操作人") | ||
private String createUserString; | ||
|
||
/** | ||
* 操作内容 | ||
*/ | ||
@Schema(description = "操作内容", example = "账号登录") | ||
@ExcelProperty(value = "操作内容") | ||
private String description; | ||
|
||
/** | ||
* 所属模块 | ||
*/ | ||
@Schema(description = "所属模块", example = "部门管理") | ||
@ExcelProperty(value = "所属模块") | ||
private String module; | ||
|
||
/** | ||
* 状态 | ||
*/ | ||
@Schema(description = "状态(1:成功;2:失败)", type = "Integer", allowableValues = {"1", "2"}, example = "1") | ||
@ExcelProperty(value = "状态", converter = ExcelBaseEnumConverter.class) | ||
private LogStatusEnum status; | ||
|
||
/** | ||
* 操作 IP | ||
*/ | ||
@Schema(description = "操作 IP", example = "192.168.0.1") | ||
@ExcelProperty(value = "操作 IP") | ||
private String ip; | ||
|
||
/** | ||
* 操作地点 | ||
*/ | ||
@Schema(description = "操作地点", example = "中国北京北京市") | ||
@ExcelProperty(value = "操作地点") | ||
private String address; | ||
|
||
/** | ||
* 耗时(ms) | ||
*/ | ||
@Schema(description = "耗时(ms)", example = "58") | ||
@ExcelProperty(value = "耗时(ms)") | ||
private Long timeTaken; | ||
|
||
/** | ||
* 浏览器 | ||
*/ | ||
@Schema(description = "浏览器", example = "Chrome 115.0.0.0") | ||
@ExcelProperty(value = "浏览器") | ||
private String browser; | ||
|
||
/** | ||
* 终端系统 | ||
*/ | ||
@Schema(description = "终端系统", example = "Windows 10") | ||
@ExcelProperty(value = "终端系统") | ||
private String os; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.