(i int)
| 54 | } |
| 55 | |
| 56 | func 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 | |
| 67 | type Item struct { |
| 68 | Id string `json:"id"` |
nothing calls this directly
no outgoing calls
no test coverage detected