ErrorMsg.cs 402 B

1234567891011121314151617181920
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. namespace LoginModel
  7. {
  8. public class ErrorMsg
  9. {
  10. public int code { get; set; } = 200;
  11. public string msg { get; set; } = "";
  12. public static string JsonString(ErrorMsg errmsg)
  13. {
  14. return JsonConvert.SerializeObject(errmsg);
  15. }
  16. }
  17. }