RequestBody.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. }
  40. /// <summary>
  41. /// 类型名称
  42. /// </summary>
  43. public enum ActionTypeEnum
  44. {
  45. Connect,
  46. Collect,
  47. ToolList,
  48. Upload,
  49. StartNcProgram,
  50. SelectNcProgram,
  51. DeleteNc,
  52. AlmInfo,
  53. Write,
  54. Read
  55. }
  56. }