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

Method Int

module/ai-balance/dto/output.go:45–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func (m ModelState) Int() int {
46 switch m {
47 case StateNormal:
48 return 1
49 case StateAbnormal:
50 return 0
51 default:
52 return -1
53 }
54}
55
56func ModelStateFromInt(i int) ModelState {
57 switch i {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected