github.com/johnnyeven/libtools@v0.0.0-20191126065708-61829c1adf46/courier/enumeration/gen/types/state.go (about) 1 package types 2 3 // swagger:enum 4 type State int64 5 6 // db -3 = state = 1 7 const STATE_OFFSET = int64(-3 - STATE__ACTIVE) 8 9 const ( 10 STATE_UNKNOWN State = iota 11 STATE__ACTIVE // 激活 12 STATE__CLOSED // 关闭 13 )