script_snap.go 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package model
  2. import (
  3. "time"
  4. )
  5. //ScriptSnap script snap
  6. type ScriptSnap struct {
  7. ID int `json:"id" gorm:"AUTO_INCREMENT;primary_key;" form:"id"`
  8. ScriptID int `json:"script_id"`
  9. TreeID int `json:"tree_id"`
  10. ProjectID int `json:"project_id" form:"project_id"`
  11. ExecuteID string `json:"execute_id" form:"execute_id"`
  12. Type int `json:"type" form:"type"`
  13. ProjectName string `json:"project_name" form:"project_name"`
  14. TestName string `json:"test_name" form:"test_name"`
  15. ThreadsSum int `json:"threads_sum" form:"threads_sum"`
  16. LoadTime int `json:"load_time"`
  17. ReadyTime int `json:"ready_time"`
  18. ProcType string `json:"proc_type"`
  19. URL string `json:"url"`
  20. Domain string `json:"domain" form:"domain"`
  21. Port string `json:"port"`
  22. Login bool `json:"login"`
  23. Path string `json:"path"`
  24. Method string `json:"method" form:"method"`
  25. Cookie string `json:"cookie" form:"cookie"`
  26. ContentType string `json:"content_type"`
  27. Data string `json:"data" form:"data"`
  28. Assertion string `json:"assertion"`
  29. SavePath string `json:"save_path" form:"save_path"`
  30. ResJtl string `json:"res_jtl" form:"res_jtl"`
  31. JmeterLog string `json:"jmeter_log"`
  32. UpdateBy string `json:"update_by" form:"update_by"`
  33. Ctime time.Time `json:"ctime" form:"ctime"`
  34. Mtime time.Time `json:"mtime" form:"mtime"`
  35. Active int `json:"active"`
  36. Upload bool `json:"upload" form:"upload"`
  37. Headers []map[string]string `json:"headers" form:"headers" gorm:"-"` // true
  38. APIHeader string `json:"api_header" gorm:"column:api_header"`
  39. ArgumentsMap []map[string]string `json:"arguments_map" gorm:"-"` // true
  40. ArgumentString string `gorm:"column:argument_map"`
  41. ConnTimeOut int `json:"conn_time_out"`
  42. RespTimeOut int `json:"resp_time_out"`
  43. UseSign bool `json:"use_sign" form:"use_sign"`
  44. SceneID int `json:"scene_id" form:"scene_id"`
  45. GroupID int `json:"group_id" form:"group_id"`
  46. IsAsync bool `json:"is_async" form:"is_async"`
  47. MultipartPath string `json:"multipart_path"`
  48. MultipartFile string `json:"multipart_file"`
  49. MultipartParam string `json:"multipart_param"`
  50. MimeType string `json:"mime_type"`
  51. Fusing int `json:"fusing"`
  52. KeepAlive bool `json:"keep_alive" form:"keep_alive"`
  53. DataFile
  54. TreePath
  55. }
  56. //TableName script
  57. func (st ScriptSnap) TableName() string {
  58. return "script_snap"
  59. }