Merge pull request '更新 📘 接口响应 Code 设计文档.md' (#7) from test into main

Reviewed-on: code/Chat#7
This commit is contained in:
2025-10-18 14:05:42 +08:00
committed by nanxun
60 changed files with 9583 additions and 1364 deletions
+57
View File
@@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace IM_API.Models;
[Table("grouprequest")]
[Index("GroupId", Name = "GroupId")]
[MySqlCharSet("utf8mb4")]
[MySqlCollation("utf8mb4_general_ci")]
public partial class Grouprequest
{
[Key]
[Column("ID", TypeName = "int(11)")]
public int Id { get; set; }
/// <summary>
/// 群聊编号
///
/// </summary>
[Column(TypeName = "int(11)")]
public int GroupId { get; set; }
/// <summary>
/// 申请人
/// </summary>
[Column(TypeName = "int(11)")]
public int UserId { get; set; }
/// <summary>
/// 申请状态(0:待管理员同意,1:已拒绝,2:已同意)
/// </summary>
[Column(TypeName = "tinyint(4)")]
public sbyte State { get; set; }
/// <summary>
/// 入群附言
/// </summary>
[Column(TypeName = "text")]
public string Description { get; set; } = null!;
/// <summary>
/// 创建时间
/// </summary>
[Column(TypeName = "datetime")]
public DateTime Created { get; set; }
[ForeignKey("GroupId")]
[InverseProperty("Grouprequests")]
public virtual Group Group { get; set; } = null!;
[ForeignKey("GroupId")]
[InverseProperty("Grouprequests")]
public virtual User GroupNavigation { get; set; } = null!;
}