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

Method Int

module/ai/dto/enum.go:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9type ProviderStatus string
10
11func (p ProviderStatus) Int() int {
12 switch p {
13 case ProviderAbnormal:
14 return 2
15 case ProviderEnabled:
16 return 1
17 case ProviderDisabled:
18 return 0
19 default:
20 return 1
21 }
22}
23
24func (p ProviderStatus) String() string {
25 return string(p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected