2
0

ResponseConfig.cs 536 B

1234567891011121314151617181920212223
  1. namespace FastGithub.Configuration
  2. {
  3. /// <summary>
  4. /// 响应配置
  5. /// </summary>
  6. public record ResponseConfig
  7. {
  8. /// <summary>
  9. /// 状态码
  10. /// </summary>
  11. public int StatusCode { get; init; } = 200;
  12. /// <summary>
  13. /// 内容类型
  14. /// </summary>
  15. public string ContentType { get; init; } = "text/plain;charset=utf-8";
  16. /// <summary>
  17. /// 内容的值
  18. /// </summary>
  19. public string? ContentValue { get; init; }
  20. }
  21. }