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

Function ToKeyStatus

module/ai-key/dto/enum.go:34–49  ·  view source on GitHub ↗
(status int)

Source from the content-addressed store, hash-verified

32}
33
34func ToKeyStatus(status int) KeyStatus {
35 switch status {
36 case 0:
37 return KeyDisable
38 case 1:
39 return KeyNormal
40 case 2:
41 return KeyError
42 case 3:
43 return KeyExceed
44 case 4:
45 return KeyExpired
46 default:
47 return KeyDisable
48 }
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected