You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
This is a common function for create a item with given model and dto. The issue is summarized like the following:
data has type of interface{} | dto.CreateDeliveryOrderDTO
ins has type of interface{} | *model.DeliveryOrder
I want to decode from data to ins so that insert to database by GORM.
But I got a error expected a map, got interface. Any way to fix it for me? Thank you.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is a common function for create a item with given
model
anddto
. The issue is summarized like the following:data
has type ofinterface{} | dto.CreateDeliveryOrderDTO
ins
has type ofinterface{} | *model.DeliveryOrder
I want to decode from
data
toins
so that insert to database by GORM.But I got a error
expected a map, got interface
. Any way to fix it for me? Thank you.The text was updated successfully, but these errors were encountered: