IHttpHelper.cs 739 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BHJD.DBdll.Public
  7. {
  8. public abstract class IHttpHelper
  9. {
  10. public virtual string Request(HttpCmd type, object param) { return null; }
  11. public virtual string HttpGet(HttpCmd type, List<string> paramList) { return null; }
  12. public virtual string HttpPost(HttpCmd type, string jsonStr) { return null; }
  13. public enum HttpRequestType
  14. {
  15. GET,
  16. POST
  17. }
  18. public class HttpCmd
  19. {
  20. public HttpRequestType m_RequestType;
  21. public string m_Addr;
  22. public List<string> m_Args;
  23. }
  24. }
  25. }