RequestBody.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System.Collections.Generic;
  2. namespace RequestServer.HttpServer
  3. {
  4. public class RequestBody
  5. {
  6. public string deviceType
  7. { get; set; }
  8. public string machineName
  9. { get; set; }
  10. public string port
  11. { get; set; }
  12. public string prgName
  13. { get; set; }
  14. public string serverUrl
  15. { get; set; }
  16. public string userName
  17. { get; set; }
  18. public string password
  19. { get; set; }
  20. public string path
  21. { get; set; }
  22. public string address
  23. { get; set; }
  24. public string value
  25. { get; set; }
  26. public string type
  27. { get; set; }
  28. }
  29. /// <summary>
  30. /// 设备名称
  31. /// </summary>
  32. public enum DeviceTypeEnum
  33. {
  34. Opcua,
  35. Fanuc,
  36. Heidenhain,
  37. Mitsubishi,
  38. MtConnect,
  39. Mazaka
  40. }
  41. /// <summary>
  42. /// 类型名称
  43. /// </summary>
  44. public enum ActionTypeEnum
  45. {
  46. Connect,
  47. Collect,
  48. ToolList,
  49. Upload,
  50. DownLoad,
  51. StartNcProgram,
  52. SelectNcProgram,
  53. DeleteNc,
  54. AlmInfo,
  55. Write,
  56. Read
  57. }
  58. }