草庐IT

returnAccount

全部标签

inheritance - 在 golang 中嵌入结构给出错误 "unknown field"

我在user包中有一个名为account的structtypeAccountstruct{Tpstring`json:"type"bson:"type"`AccountIdstring`json:"account_id"bson:"account_id"`Credentialsmap[string]interface{}`json:"credentials,omitempty"bson:"credentials,omitempty"`ProfilePicturestring`json:"profile_picture,omitempty"`Usernamestring`json:"us

inheritance - 在 golang 中嵌入结构给出错误 "unknown field"

我在user包中有一个名为account的structtypeAccountstruct{Tpstring`json:"type"bson:"type"`AccountIdstring`json:"account_id"bson:"account_id"`Credentialsmap[string]interface{}`json:"credentials,omitempty"bson:"credentials,omitempty"`ProfilePicturestring`json:"profile_picture,omitempty"`Usernamestring`json:"us