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

Function ModelStateFromInt

module/ai-balance/dto/output.go:56–65  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

54}
55
56func ModelStateFromInt(i int) ModelState {
57 switch i {
58 case 1:
59 return StateNormal
60 case 0:
61 return StateAbnormal
62 default:
63 return "unknown"
64 }
65}
66
67type Item struct {
68 Id string `json:"id"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected