校级、学院级管理员支持按学院、身份、行政班、教学班、姓名/学号/工号筛选,也可指定最多 500 名收件人。所有结果均由服务端重新校验权限。 接入 CKEditor 5,支持标题、列表、引用和链接;正文扩展为 MySQL longtext。 富文本在收件箱、详情弹窗和已发送记录中统一经 DOMPurify 净化后展示。 页面改用系统现有的冷白、靛蓝、青绿色令牌,新增“选择收件人 → 编辑内容”工作台和移动端适配。
55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class MessageRichContent : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Content",
|
|
table: "Notifications",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(1000)",
|
|
oldMaxLength: 1000);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Content",
|
|
table: "MessageDispatches",
|
|
type: "longtext",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(1000)",
|
|
oldMaxLength: 1000);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Content",
|
|
table: "Notifications",
|
|
type: "varchar(1000)",
|
|
maxLength: 1000,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Content",
|
|
table: "MessageDispatches",
|
|
type: "varchar(1000)",
|
|
maxLength: 1000,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext");
|
|
}
|
|
}
|
|
}
|