()
| 181 | } |
| 182 | |
| 183 | func (s *SQL) Get() any { |
| 184 | dao := s.dao.(DAO) |
| 185 | |
| 186 | v := configx.New(kv.WithJSON()) |
| 187 | |
| 188 | b, err := dao.Get(context.TODO()) |
| 189 | if err != nil { |
| 190 | v.Set(map[string]interface{}{}) |
| 191 | } |
| 192 | |
| 193 | v.Set(b) |
| 194 | |
| 195 | s.config = v |
| 196 | |
| 197 | return v.Get() |
| 198 | } |
| 199 | |
| 200 | func (s *SQL) Set(value interface{}) error { |
| 201 | dao := s.dao.(DAO) |