Result.cs 655 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain
  7. {
  8. public class Result
  9. {
  10. public int Code { get; set; } = -1;
  11. public string Msg { get; set; } = "未知错误";
  12. public dynamic? Data { get; set; } = new { };
  13. }
  14. /// <summary>
  15. /// 错误消息
  16. /// </summary>
  17. public static class ErrorMsg
  18. {
  19. /// <summary>
  20. /// 端口错误消息提示
  21. /// </summary>
  22. public static string Error_Port_Msg = "“portType”:1:WEB;2:ANDROID;3:IOS;请检查端口值是否正确!";
  23. }
  24. }