完善提示词预设的接口,完善转发接口
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using LMS.Repository.DB;
|
||||
using LMS.Repository.DTO.PromptTypeDto;
|
||||
using LMS.Repository.DTO.UserDto;
|
||||
|
||||
namespace LMS.Repository.DTO.PromptDto;
|
||||
|
||||
public class PromptDto : Prompt
|
||||
{
|
||||
|
||||
public UserBaseDto CreatedUser { get; set; }
|
||||
|
||||
public UserBaseDto UpdatedUser { get; set; }
|
||||
|
||||
public PromptTypeBasic? PromptType { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace LMS.Repository.DTO.PromptDto;
|
||||
|
||||
public class PromptNameDto
|
||||
{
|
||||
public string Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string PromptTypeId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace LMS.Repository.DTO.PromptTypeDto;
|
||||
|
||||
public class PrompTypeNameModel
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Id { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
namespace LMS.Repository.DTO.PromptTypeDto;
|
||||
|
||||
public class PromptTypeBasic
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提示词类型编码
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提示词类型名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提示词类型描述
|
||||
/// </summary>
|
||||
public string? Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 提示词类型状态
|
||||
/// </summary>
|
||||
public string Status { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using LMS.Repository.DTO.UserDto;
|
||||
using LMS.Repository.Models.DB;
|
||||
|
||||
namespace LMS.Repository.DTO.PromptTypeDto
|
||||
{
|
||||
public class PromptTypeDto : PromptType
|
||||
{
|
||||
public UserBaseDto? UpdatedUser { get; set; }
|
||||
|
||||
public UserBaseDto? CreatedUser { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user