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

Method Int

service/service/model.go:89–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87}
88
89func (s ApprovalType) Int() int {
90 switch s {
91 case "auto":
92 return 1
93 case "manual":
94 return 0
95 default:
96 return 0
97 }
98}
99
100func ToApprovalType(s int) ApprovalType {
101 switch s {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected