executedata.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package http_model
  2. import "time"
  3. type ExecuteDataRequest struct {
  4. ProjectId string `json:"project_id"`
  5. }
  6. type ExecuteDataResponse struct {
  7. Excutetime time.Time `json:"recruit_time"`
  8. PreSketchNum int64 `json:"presketch_num"`
  9. SketchNum int64 `json:"sketch_num"`
  10. SketchAccNum int64 `json:"sketch_accept_num"`
  11. AvgAccTime time.Duration `json:"avg_acc_time"`
  12. AvgCreTime time.Duration `json:"avg_cre_time"`
  13. FirAccRatio float64 `json:"fir_acc_ratio"`
  14. PreLinkNum int64 `json:"pre_link_num"`
  15. LinkNum int64 `json:"link_num"`
  16. LinkAccNum int64 `json:"link_accept_num"`
  17. AvgLinkAccTime time.Duration `json:"avg_link_acc_time"`
  18. AvgBackTime time.Duration `json:"avg_back_time"`
  19. FirAccLinkRatio float64 `json:"fir_acc_link_ratio"`
  20. PreDataNum int64 `json:"pre_data_num"`
  21. DataNum int64 `json:"data_num"`
  22. DefaultNum int64 `json:"default_num"`
  23. DefaultRatio float64 `json:"default_ratio"`
  24. }
  25. func NewExecuteDataRequest() *ExecuteDataRequest {
  26. return new(ExecuteDataRequest)
  27. }
  28. func NewExecuteDataResponse() *CommonResponse {
  29. resp := new(CommonResponse)
  30. resp.Data = new(ExecuteDataResponse)
  31. return resp
  32. }