change: make API more concise

This commit is contained in:
debugtalk
2021-12-07 21:16:32 +08:00
parent 1a36547ff0
commit bd3aae18f6
15 changed files with 154 additions and 137 deletions

View File

@@ -20,14 +20,14 @@ func (s *stepRequestExtraction) Validate() *stepRequestValidation {
}
}
func (s *stepRequestExtraction) name() string {
func (s *stepRequestExtraction) Name() string {
return s.step.Name
}
func (s *stepRequestExtraction) getType() string {
func (s *stepRequestExtraction) Type() string {
return fmt.Sprintf("request-%v", s.step.Request.Method)
}
func (s *stepRequestExtraction) toStruct() *TStep {
func (s *stepRequestExtraction) ToStruct() *TStep {
return s.step
}