package com.zhongshu.card.client.model.operLogs;

import com.github.microservice.models.type.LogServiceType;
import com.zhongshu.card.client.type.LoginType;
import com.zhongshu.card.client.type.LogsLevel;
import com.zhongshu.card.client.type.MessageType;
import com.zhongshu.card.client.type.ResponseCode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 操作日志
 *
 * @author TRX
 * @date 2024/5/29
 */
@Data
public class OperationLogsAddParam {
    @Schema(description = "用户ID")
    private String uid;

    @Schema(description = "IP地址")
    private String ip;

    @Schema(description = "浏览器")
    private String ua;

    @Schema(description = "api地址")
    private String url;

    @Schema(description = "日志来自那个服务")
    private LogServiceType logServiceType;

    @Schema(description = "日志操作端类型")
    private LoginType loginType = LoginType.Web;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "日志内容")
    private String content;

    @Schema(description = "日志级别，重要程度")
    private LogsLevel level = LogsLevel.Low;

    @Schema(description = "管理数据ID")
    private String dataId;

    @Schema(description = "关联保存关联信息")
    private Object backObj;

    @Schema(description = "消息类型")
    private MessageType messageType = MessageType.Info;

    @Schema(description = "响应姿态")
    private ResponseCode responseCode;

}
