MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / ToProviderStatus

Function ToProviderStatus

module/ai/dto/enum.go:28–39  ·  view source on GitHub ↗
(status int)

Source from the content-addressed store, hash-verified

26}
27
28func ToProviderStatus(status int) ProviderStatus {
29 switch status {
30 case 2:
31 return ProviderAbnormal
32 case 0:
33 return ProviderDisabled
34 case 1:
35 return ProviderEnabled
36 default:
37 return ProviderEnabled
38 }
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected