1. 修改 SysNotification 实体,新增 senderId, senderName, targetType 字段 2. 新增 SendNotificationRequest 请求DTO 3. 扩展通知类型至6种(新增用户通知、课程通知) 4. 实现角色层级权限控制,支持多级管理员通知下级 5. 支持老师群发课程通知给学生 6. 新增批量发送接口和权限配置
98 lines
2.5 KiB
Java
98 lines
2.5 KiB
Java
package art.kexue.sxwz.entity;
|
||
|
||
|
||
import java.io.Serializable;
|
||
import art.kexue.sxwz.entity.base.BaseEntity;
|
||
|
||
import java.util.Date;
|
||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||
import io.swagger.v3.oas.annotations.media.Schema;
|
||
import lombok.Data;
|
||
|
||
/**
|
||
* (SysLog)实体类
|
||
*
|
||
* @author 王志维
|
||
* @since 2025-02-21 23:01:48
|
||
*/
|
||
@Data
|
||
public class SysLog extends BaseEntity implements Serializable {
|
||
private static final long serialVersionUID = -84681351128482970L;
|
||
|
||
@Schema(description ="主键ID")
|
||
private Long logId;
|
||
|
||
@Schema(description ="链路ID")
|
||
private String traceId;
|
||
|
||
@Schema(description ="日志描述")
|
||
private String description;
|
||
|
||
@Schema(description ="所属模块")
|
||
private String module;
|
||
|
||
@Schema(description ="请求URL")
|
||
private String requestUrl;
|
||
|
||
@Schema(description ="请求方式")
|
||
private String requestMethod;
|
||
|
||
@Schema(description ="请求头")
|
||
private String requestHeaders;
|
||
|
||
@Schema(description ="请求体")
|
||
private String requestBody;
|
||
|
||
@Schema(description ="状态码")
|
||
private Integer statusCode;
|
||
|
||
@Schema(description ="响应头")
|
||
private String responseHeaders;
|
||
|
||
@Schema(description ="响应体")
|
||
private String responseBody;
|
||
|
||
@Schema(description ="耗时(ms)")
|
||
private Long timeTaken;
|
||
|
||
@Schema(description ="IP")
|
||
private String ip;
|
||
|
||
@Schema(description ="IP归属地")
|
||
private String address;
|
||
|
||
@Schema(description ="浏览器")
|
||
private String browser;
|
||
|
||
@Schema(description ="操作系统")
|
||
private String os;
|
||
|
||
@Schema(description ="状态(1:成功;2:失败)")
|
||
private Integer status;
|
||
|
||
@Schema(description ="错误信息")
|
||
private String errorMsg;
|
||
|
||
@Schema(description ="创建人")
|
||
private Long createUser;
|
||
|
||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||
@Schema(description ="创建时间")
|
||
private Date createTime;
|
||
|
||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||
@Schema(description ="更新时间")
|
||
private Date updateTime;
|
||
|
||
@Schema(description ="是否删除 :0 未删除,1已删除")
|
||
private Integer deleteFlag;
|
||
|
||
@Schema(description ="创建人")
|
||
private String createBy;
|
||
|
||
@Schema(description ="更新人")
|
||
private String updateBy;
|
||
|
||
}
|
||
|