AutoMapper mapper and set value from struct fromObj to toObj support auto register struct
(fromObj, toObj interface{})
| 50 | // AutoMapper mapper and set value from struct fromObj to toObj |
| 51 | // support auto register struct |
| 52 | func (dm *mapperObject) AutoMapper(fromObj, toObj interface{}) error { |
| 53 | return dm.Mapper(fromObj, toObj) |
| 54 | } |
| 55 | |
| 56 | // MapperMap mapper and set value from map to object |
| 57 | // support auto register struct |