(src interface{})
| 2238 | ) |
| 2239 | |
| 2240 | func (e *LoginType) Scan(src interface{}) error { |
| 2241 | switch s := src.(type) { |
| 2242 | case []byte: |
| 2243 | *e = LoginType(s) |
| 2244 | case string: |
| 2245 | *e = LoginType(s) |
| 2246 | default: |
| 2247 | return fmt.Errorf("unsupported scan type for LoginType: %T", src) |
| 2248 | } |
| 2249 | return nil |
| 2250 | } |
| 2251 | |
| 2252 | type NullLoginType struct { |
| 2253 | LoginType LoginType `json:"login_type"` |