-
Notifications
You must be signed in to change notification settings - Fork 66
/
enum.go
935 lines (718 loc) · 21.8 KB
/
enum.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
package consts
type RunType string
const (
FromServer RunType = "server"
FromAgent RunType = "agent"
)
func (e RunType) String() string {
return string(e)
}
type ExecFromType string
const (
FromCmd ExecFromType = "cmd"
FromClient ExecFromType = "client"
)
func (e ExecFromType) String() string {
return string(e)
}
type WsMsgCategory string
const (
ProgressInProgress WsMsgCategory = "in_progress"
ProgressEnd WsMsgCategory = "end"
ProgressResult WsMsgCategory = "result"
Processor WsMsgCategory = "processor"
Initialize WsMsgCategory = "initialize"
Statistic WsMsgCategory = "stat"
Exception WsMsgCategory = "exception"
)
func (e WsMsgCategory) String() string {
return string(e)
}
type HttpMethod string
const (
GET HttpMethod = "GET"
POST HttpMethod = "POST"
PUT HttpMethod = "PUT"
DELETE HttpMethod = "DELETE"
PATCH HttpMethod = "PATCH"
HEAD HttpMethod = "HEAD"
CONNECT HttpMethod = "CONNECT"
OPTIONS HttpMethod = "OPTIONS"
TRACE HttpMethod = "TRACE"
)
func (e HttpMethod) String() string {
return string(e)
}
type FormDataType string
const (
FormDataTypeText FormDataType = "text"
FormDataTypeFile FormDataType = "file"
)
func (e FormDataType) String() string {
return string(e)
}
type HttpRespCode int
const (
Continue HttpRespCode = 100
SwitchingProtocol HttpRespCode = 101
OK HttpRespCode = 200
Created HttpRespCode = 201
Accepted HttpRespCode = 202
NonAuthoritativeInformation HttpRespCode = 203
NoContent HttpRespCode = 204
ResetContent HttpRespCode = 205
PartialContent HttpRespCode = 206
MultipleChoice HttpRespCode = 300
MovedPermanently HttpRespCode = 301
Found HttpRespCode = 302
SeeOther HttpRespCode = 303
NotModified HttpRespCode = 304
UseProxy HttpRespCode = 305
unused HttpRespCode = 306
TemporaryRedirect HttpRespCode = 307
PermanentRedirect HttpRespCode = 308
BadRequest HttpRespCode = 400
Unauthorized HttpRespCode = 401
PaymentRequired HttpRespCode = 402
Forbidden HttpRespCode = 403
NotFound HttpRespCode = 404
MethodNotAllowed HttpRespCode = 405
NotAcceptable HttpRespCode = 406
ProxyAuthenticationRequired HttpRespCode = 407
RequestTimeout HttpRespCode = 408
Conflict HttpRespCode = 409
Gone HttpRespCode = 410
LengthRequired HttpRespCode = 411
PreconditionFailed HttpRespCode = 412
RequestEntityTooLarge HttpRespCode = 413
RequestURITooLong HttpRespCode = 414
UnsupportedMediaType HttpRespCode = 415
RequestedRangeNotSatisfiable HttpRespCode = 416
ExpectationFailed HttpRespCode = 417
InternalServerError HttpRespCode = 500
Implemented HttpRespCode = 501
BadGateway HttpRespCode = 502
ServiceUnavailable HttpRespCode = 503
GatewayTimeout HttpRespCode = 504
HTTPVersionNotSupported HttpRespCode = 505
)
func (e HttpRespCode) Int() int {
return int(e)
}
type HttpContentType string
const (
ContentTypeJSON HttpContentType = "application/json"
ContentTypeXML HttpContentType = "application/xml"
ContentTypeHTML HttpContentType = "text/html"
ContentTypeTEXT HttpContentType = "text/text"
ContentTypeFormData HttpContentType = "multipart/form-data"
ContentTypeFormUrlencoded HttpContentType = "application/x-www-form-urlencoded"
ContentTypeUnixDir HttpContentType = "httpd/unix-directory"
)
func (e HttpContentType) String() string {
return string(e)
}
type AuthorType string
const (
BasicAuth AuthorType = "basicAuth"
BearerToken AuthorType = "bearerToken"
OAuth2 AuthorType = "oAuth2"
ApiKey AuthorType = "apiKey"
)
func (e AuthorType) String() string {
return string(e)
}
type GrantType string
const (
AuthorizationCode GrantType = "authorizationCode"
AuthorizationCodeWithPKCE GrantType = "authorizationCodeWithPKCE"
Implicit GrantType = "implicit"
PasswordCredential GrantType = "passwordCredential"
ClientCredential GrantType = "clientCredential"
)
func (e GrantType) String() string {
return string(e)
}
type ClientAuthenticationWay string
const (
SendAsBasicAuthHeader ClientAuthenticationWay = "sendAsBasicAuthHeader"
SendClientCredentialsInBody ClientAuthenticationWay = "sendClientCredentialsInBody"
)
func (e ClientAuthenticationWay) String() string {
return string(e)
}
type HttpRespLangType string
const (
LangJSON HttpRespLangType = "json"
LangXML HttpRespLangType = "xml"
LangHTML HttpRespLangType = "html"
LangTEXT HttpRespLangType = "text"
)
func (e HttpRespLangType) String() string {
return string(e)
}
type HttpRespCharset string
const (
UTF8 HttpRespCharset = "utf-8"
)
func (e HttpRespCharset) String() string {
return string(e)
}
type FieldSource string
const (
System FieldSource = "requirement"
Custom FieldSource = "task"
)
func (e FieldSource) String() string {
return string(e)
}
type FieldType string
const (
Input FieldType = "input"
TextArea FieldType = "textarea"
Password FieldType = "password"
Checkbox FieldType = "checkbox"
Radio FieldType = "radio"
File FieldType = "file"
image FieldType = "image"
Hidden FieldType = "hidden"
Select FieldType = "select"
MultiSelect FieldType = "multiselect"
Button FieldType = "button"
)
func (e FieldType) String() string {
return string(e)
}
type FieldFormat string
const (
PlainText FieldFormat = "plainText"
RichText FieldFormat = "richText"
)
func (e FieldFormat) String() string {
return string(e)
}
type ProductStatus string
const (
Active ProductStatus = "active"
Closed ProductStatus = "closed"
)
func (e ProductStatus) String() string {
return string(e)
}
type UsedBy string
const (
InterfaceDebug UsedBy = "interface_debug"
CaseDebug UsedBy = "case_debug"
//AlternativeCaseDebug UsedBy = "alternative_case_debug"
DiagnoseDebug UsedBy = "diagnose_debug"
ScenarioDebug UsedBy = "scenario_debug"
)
type CaseType string
const (
CaseDefault CaseType = "default"
CaseBenchmark CaseType = "benchmark" // for alternative cases design
CaseAlternative CaseType = "alternative" // saved as independent case
)
type ProcessorInterfaceSrc string
const (
InterfaceSrcDefine ProcessorInterfaceSrc = "define"
InterfaceSrcCase ProcessorInterfaceSrc = "case"
InterfaceSrcDiagnose ProcessorInterfaceSrc = "diagnose"
InterfaceSrcCurl ProcessorInterfaceSrc = "curl"
InterfaceSrcCustom ProcessorInterfaceSrc = "custom"
)
type ConditionSrc string
const (
ConditionSrcPre ConditionSrc = "pre_condition"
ConditionSrcPost ConditionSrc = "post_condition"
)
type ConditionType string
const (
ConditionTypeExtractor ConditionType = "extractor"
ConditionTypeCheckpoint ConditionType = "checkpoint"
ConditionTypeScript ConditionType = "script"
ConditionTypeDatabase ConditionType = "databaseOpt"
ConditionTypeResponseDefine ConditionType = "responseDefine"
)
type ConditionCategory string
const (
ConditionCategoryResult ConditionCategory = "result"
PostCondition ConditionCategory = "postCondition"
ConditionCategoryConsole ConditionCategory = "console"
ConditionCategoryAssert ConditionCategory = "assert"
ConditionCategoryAll ConditionCategory = "all"
ConditionCategoryResponse ConditionCategory = "response"
)
type ExtractorSrc string
const (
Header ExtractorSrc = "header"
Body ExtractorSrc = "body"
Cookie ExtractorSrc = "cookie"
)
type ExtractorType string
const (
Boundary ExtractorType = "boundary"
JSONPath ExtractorType = "jsonpath"
JsonQuery ExtractorType = "jsonquery"
HtmlQuery ExtractorType = "htmlquery"
XmlQuery ExtractorType = "xmlquery"
Regx ExtractorType = "regx"
//FullText ExtractorType = "fulltext"
)
type CheckpointType string
const (
ResponseStatus CheckpointType = "responseStatus"
ResponseHeader CheckpointType = "responseHeader"
ResponseBody CheckpointType = "responseBody"
Judgement CheckpointType = "judgement"
ExtractorVari CheckpointType = "extractorVari"
Extractor CheckpointType = "extractor"
Script CheckpointType = "script"
)
type ExtractorScope string
const (
Private ExtractorScope = "private" // in current interface
Public ExtractorScope = "public" // shared by other interfaces in serve OR scenario
)
type ExtractorResultType string
const (
ExtractorResultTypeString ExtractorResultType = "string"
ExtractorResultTypeNumber ExtractorResultType = "number"
ExtractorResultTypeBool ExtractorResultType = "bool"
ExtractorResultTypeObject ExtractorResultType = "object"
)
type ComparisonOperator string
const (
Equal ComparisonOperator = "equal"
NotEqual ComparisonOperator = "notEqual"
GreaterThan ComparisonOperator = "greaterThan"
GreaterThanOrEqual ComparisonOperator = "greaterThanOrEqual"
LessThan ComparisonOperator = "lessThan"
LessThanOrEqual ComparisonOperator = "lessThanOrEqual"
Contain ComparisonOperator = "contain"
NotContain ComparisonOperator = "notContain"
RegularMatch ComparisonOperator = "regularMatch"
Exist ComparisonOperator = "exist"
NotExist ComparisonOperator = "notExist"
)
func (e ComparisonOperator) String() string {
return string(e)
}
var StringComparisons = []ComparisonOperator{
Equal,
NotEqual,
GreaterThan,
GreaterThanOrEqual,
LessThan,
LessThanOrEqual,
Contain,
NotContain,
RegularMatch,
}
var TextComparisons = []ComparisonOperator{
Equal,
NotEqual,
Contain,
NotContain,
RegularMatch,
}
type ValueOperator string
const (
Get ValueOperator = "get"
Set ValueOperator = "set"
Clear ValueOperator = "clear"
)
func (e ValueOperator) String() string {
return string(e)
}
type ProgressStatus string
const (
Start ProgressStatus = "start"
InProgress ProgressStatus = "in_progress"
End ProgressStatus = "end"
Cancel ProgressStatus = "cancel"
Error ProgressStatus = "error"
)
func (e ProgressStatus) String() string {
return string(e)
}
type ResultStatus string
const (
Pass ResultStatus = "pass"
Fail ResultStatus = "fail"
Err ResultStatus = "err"
Skip ResultStatus = "skip"
Block ResultStatus = "block"
)
func (e ResultStatus) String() string {
return string(e)
}
type ProcessorCategory string
const (
ProcessorRoot ProcessorCategory = "processor_root"
//ProcessorThreadGroup ProcessorCategory = "processor_thread_group"
ProcessorInterface ProcessorCategory = "processor_interface"
ProcessorGroup ProcessorCategory = "processor_group"
ProcessorLogic ProcessorCategory = "processor_logic"
ProcessorLoop ProcessorCategory = "processor_loop"
ProcessorTimer ProcessorCategory = "processor_timer"
ProcessorPrint ProcessorCategory = "processor_print"
ProcessorVariable ProcessorCategory = "processor_variable"
ProcessorAssertion ProcessorCategory = "processor_assertion"
ProcessorCookie ProcessorCategory = "processor_cookie"
ProcessorData ProcessorCategory = "processor_data"
ProcessorCustomCode ProcessorCategory = "processor_custom_code"
)
func (e ProcessorCategory) ToString() string {
return string(e)
}
type ProcessorType string
const (
ProcessorRootDefault ProcessorType = "processor_root_default"
//ProcessorThreadDefault ProcessorType = "processor_thread_default"
ProcessorInterfaceDefault ProcessorType = "processor_interface_default"
ProcessorGroupDefault ProcessorType = "processor_group_default"
ProcessorTimerDefault ProcessorType = "processor_timer_default"
ProcessorPrintDefault ProcessorType = "processor_print_default"
ProcessorLogicIf ProcessorType = "processor_logic_if"
ProcessorLogicElse ProcessorType = "processor_logic_else"
ProcessorLoopTime ProcessorType = "processor_loop_time"
ProcessorLoopIn ProcessorType = "processor_loop_in"
ProcessorLoopRange ProcessorType = "processor_loop_range"
ProcessorLoopUntil ProcessorType = "processor_loop_until"
ProcessorVariableSet ProcessorType = "processor_variable_set"
ProcessorVariableClear ProcessorType = "processor_variable_clear"
ProcessorAssertionDefault ProcessorType = "processor_assertion_default"
ProcessorExtractorBoundary ProcessorType = "processor_extractor_boundary"
ProcessorExtractorJsonQuery ProcessorType = "processor_extractor_jsonquery"
ProcessorExtractorHtmlQuery ProcessorType = "processor_extractor_htmlquery"
ProcessorExtractorXmlQuery ProcessorType = "processor_extractor_xmlquery"
ProcessorCookieSet ProcessorType = "processor_cookie_set"
ProcessorCookieClear ProcessorType = "processor_cookie_clear"
ProcessorDataDefault ProcessorType = "processor_data_default"
ProcessorCustomCodeDefault ProcessorType = "processor_custom_code"
)
func (e ProcessorType) ToString() string {
return string(e)
}
type LogType string
const (
LogRoot LogType = "root"
LogInterface LogType = "interface"
LogProcessor LogType = "processor"
)
func (e LogType) ToString() string {
return string(e)
}
type ErrorAction string
const (
ActionContinue ErrorAction = "continue"
ActionStartNextThread ErrorAction = "start_next_thread"
ActionLoop ErrorAction = "loop"
ActionStopThread ErrorAction = "stop_thread"
ActionStopTest ErrorAction = "stop_test"
ActionStopTestNow ErrorAction = "stop_test_now"
)
func (e ErrorAction) ToString() string {
return string(e)
}
type DataItSrc string
const (
SrcFileUpload DataItSrc = "fileUpload"
SrcDatapool DataItSrc = "datapool"
)
func (e DataItSrc) ToString() string {
return string(e)
}
type DataItType string
const (
Text DataItType = "text"
Excel DataItType = "excel"
//ZenData DataItType = "zendata"
)
func (e DataItType) ToString() string {
return string(e)
}
type DataFileFormat string
const (
FormatText DataFileFormat = "text"
FormatExcel DataFileFormat = "excel"
FormatCsv DataFileFormat = "csv"
FormatUnknown DataFileFormat = "unknown"
)
func (e DataFileFormat) ToString() string {
return string(e)
}
type TimeUnit string
const (
Second TimeUnit = "sec"
Minute TimeUnit = "min"
Hour TimeUnit = "hour"
)
func (e TimeUnit) ToString() string {
return string(e)
}
type ExecType string
const (
ExecStop ExecType = "stop"
ExecScenario ExecType = "execScenario"
ExecPlan ExecType = "execPlan"
ExecCase ExecType = "execCases"
ExecMessage ExecType = "execMessage"
)
func (e ExecType) String() string {
return string(e)
}
type DataType string
const (
Int DataType = "int"
Float DataType = "float"
String DataType = "string"
)
func (e DataType) String() string {
return string(e)
}
type RoleType string
const (
Admin RoleType = "admin"
User RoleType = "user"
Tester RoleType = "tester"
Developer RoleType = "developer"
ProductManager RoleType = "product_manager"
IntegrationAdmin RoleType = "api-admin"
IntegrationGeneral RoleType = "general"
)
func (e RoleType) String() string {
return string(e)
}
type RoleSource string
const (
RoleSourceLy RoleSource = "ly"
)
func (e RoleSource) String() string {
return string(e)
}
type NodeType string
const (
NodeElem NodeType = "elem"
NodeProp NodeType = "prop"
NodeContent NodeType = "content"
NodeText NodeType = "text"
)
func (e NodeType) String() string {
return string(e)
}
type PlaceholderPrefix string
const (
PlaceholderPrefixDatapool PlaceholderPrefix = "_dp"
PlaceholderPrefixFunction PlaceholderPrefix = "_func"
)
func (e PlaceholderPrefix) String() string {
return string(e)
}
type PlaceholderType string
const (
PlaceholderTypeEnvironmentVariable PlaceholderType = "environment_variable"
PlaceholderTypeVariable PlaceholderType = "variable"
PlaceholderTypeDatapool PlaceholderType = "datapool"
PlaceholderTypeFunction PlaceholderType = "function"
)
func (e PlaceholderType) String() string {
return string(e)
}
type ParamType string
const (
ParamTypeString ParamType = "string"
ParamTypeNumber ParamType = "number"
ParamTypeInteger ParamType = "integer"
)
func (e ParamType) String() string {
return string(e)
}
type ParamIn string
const (
ParamInPath ParamIn = "path"
ParamInQuery ParamIn = "query"
ParamInHeader ParamIn = "header"
ParamInCookie ParamIn = "cookie"
ParamInBody ParamIn = "body"
)
func (e ParamIn) String() string {
return string(e)
}
type AuditStatus uint
const (
Init AuditStatus = 0
Agreed AuditStatus = 1
Refused AuditStatus = 2
)
type TestStatus string
const (
Draft TestStatus = "draft" //草稿
Disabled TestStatus = "disabled" //已禁用
ToExecute TestStatus = "to_execute" //待执行
Executed TestStatus = "executed" //已执行
)
func (e TestStatus) String() string {
return string(e)
}
type TestStage string
const (
UintTest TestStage = "unit_test" //单元测试
IntegrationTest TestStage = "integration_test" //集成测试
SystemTest TestStage = "system_test" //系统测试
AcceptanceTest TestStage = "acceptance_test" //验收测试
)
func (e TestStage) String() string {
return string(e)
}
type TestType string
//冒烟测试、逻辑验证、异常测试、性能测试、接口合规测试
const (
ApiTest TestType = "api_test" //接口测试
PerformanceTest TestType = "performance_test" //性能测试
SmokeTest TestType = "smoke_test" //冒烟测试
)
func (e TestType) String() string {
return string(e)
}
type SwitchStatus uint
const (
SwitchON SwitchStatus = 1
SwitchOFF SwitchStatus = 2
)
type SourceType uint
const (
SwaggerSync SourceType = 1
SwaggerImport SourceType = 2
ThirdPartySync SourceType = 3
)
type MockPriority string
const (
MockPrioritySmart MockPriority = "smart"
MockPriorityExample MockPriority = "example"
)
type DataSyncType uint
const (
FullCover DataSyncType = 1 //完全覆盖
AutoAdd DataSyncType = 2 //智能合并
Add DataSyncType = 3 //新增
)
func (e DataSyncType) String() string {
return string(e)
}
type ExpectRequestSelectType string
const (
KeyValue ExpectRequestSelectType = "keyValue"
Xpath ExpectRequestSelectType = "xPath"
FullText ExpectRequestSelectType = "fullText"
)
func (e ExpectRequestSelectType) String() string {
return string(e)
}
type AlternativeCaseCategories string
const (
AlternativeCaseRoot AlternativeCaseCategories = "root"
AlternativeCaseCategory AlternativeCaseCategories = "category"
AlternativeCaseDir AlternativeCaseCategories = "dir"
AlternativeCaseParam AlternativeCaseCategories = "param"
AlternativeCaseObject AlternativeCaseCategories = "object"
AlternativeCaseArray AlternativeCaseCategories = "array"
AlternativeCaseProp AlternativeCaseCategories = "prop"
AlternativeCaseCase AlternativeCaseCategories = "case"
)
type AlternativeCaseTypes string
const (
AlternativeCaseRequired AlternativeCaseTypes = "required"
AlternativeCaseTyped AlternativeCaseTypes = "typed"
AlternativeCaseEnum AlternativeCaseTypes = "enum"
AlternativeCaseFormat AlternativeCaseTypes = "format"
AlternativeCaseRule AlternativeCaseTypes = "rule"
)
type AlternativeCaseRules string
const (
AlternativeCaseRulesMin AlternativeCaseRules = "min"
AlternativeCaseRulesMax AlternativeCaseRules = "max"
AlternativeCaseRulesMaxLength AlternativeCaseRules = "maxLength"
AlternativeCaseRulesMinLength AlternativeCaseRules = "minLength"
AlternativeCaseRulesMultipleOf AlternativeCaseRules = "multipleOf"
AlternativeCaseRulesExclusiveMin AlternativeCaseRules = "exclusiveMin"
AlternativeCaseRulesExclusiveMax AlternativeCaseRules = "exclusiveMax"
AlternativeCaseRulesPattern AlternativeCaseRules = "pattern"
)
func (e AlternativeCaseRules) String() string {
return string(e)
}
type AlternativeCaseType string
const (
QueryParam AlternativeCaseType = "query_param"
PathParam AlternativeCaseType = "path_param"
HeaderParam AlternativeCaseType = "header_param"
BodyField AlternativeCaseType = "body_field"
FormField AlternativeCaseType = "form_field"
)
func (e AlternativeCaseType) String() string {
return string(e)
}
type DatabaseType string
const (
DbTypeMySql DatabaseType = "mysql"
DbTypeSqlServer DatabaseType = "sqlserver"
DbTypePostgreSql DatabaseType = "postgreSql"
DbTypeOracle DatabaseType = "oracle"
)
func (e DatabaseType) String() string {
return string(e)
}
type MessageSendStatus string
const (
MessageCreated MessageSendStatus = "created"
MessageSendSuccess MessageSendStatus = "send_success"
MessageSendFailed MessageSendStatus = "send_failed"
MessageApprovalInProgress MessageSendStatus = "approval_in_progress"
MessageApprovalAgreed MessageSendStatus = "approval_agreed"
MessageApprovalReject MessageSendStatus = "approval_reject"
)
func (e MessageSendStatus) String() string {
return string(e)
}
type MessageServiceType string
const (
ServiceTypeApproval MessageServiceType = "approval"
ServiceTypeInfo MessageServiceType = "info"
)
func (e MessageServiceType) String() string {
return string(e)
}
type MessageSource string
const (
MessageSourceEndpoint MessageSource = "endpoint"
MessageSourceJoinProject MessageSource = "join_project"
MessageSourceAuditProjectRes MessageSource = "audit_project_res"
)
func (e MessageSource) String() string {
return string(e)
}
type ChangedStatus uint
const (
NoChanged ChangedStatus = 1
Changed ChangedStatus = 2
IgnoreChanged ChangedStatus = 3
)
type CronSource string
const (
CronSourceSwagger CronSource = "swagger"
CronSourceLecang CronSource = "lecang"
)
func (e CronSource) String() string {
return string(e)
}
type CronExecStatus string
const (
CronExecSuccess CronExecStatus = "success"
CronExecIng CronExecStatus = "running"
CronExecFail CronExecStatus = "fail"
)
func (e CronExecStatus) String() string {
return string(e)
}