Skip to content

Instantly share code, notes, and snippets.

@AndyHuang1223
Created March 1, 2022 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyHuang1223/72888d51786fc3bf68e86675824655b0 to your computer and use it in GitHub Desktop.
Save AndyHuang1223/72888d51786fc3bf68e86675824655b0 to your computer and use it in GitHub Desktop.
public class BaseModel<T> where T : class
{
[JsonPropertyName("Code")]
public int Code { get; set; } = -1;
[JsonPropertyName("Msg")]
public string Message { get; set; }
[JsonPropertyName("Response")]
public T Response { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment