We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type UserInfo struct { //Name string gorm:"name" //Sex int gorm:"sex" //Age int gorm:"age" //Phone string gorm:"phone"
gorm:"name"
gorm:"sex"
gorm:"age"
gorm:"phone"
Name string //Sex int Age int Phone string PassWord string
}
type UserListOutPutDto struct { Name string Age int Phone string } 当我给output加 json标识的时候 数组无法转换成功
The text was updated successfully, but these errors were encountered:
转换代码发出来看下
Sorry, something went wrong.
转换代码发出来看下 我往 属性旁边加了一个 mapper Name 大写的就匹配成功了
No branches or pull requests
type UserInfo struct {
//Name string
gorm:"name"
//Sex int
gorm:"sex"
//Age int
gorm:"age"
//Phone string
gorm:"phone"
}
type UserListOutPutDto struct {
Name string
Age int
Phone string
}
当我给output加 json标识的时候
数组无法转换成功
The text was updated successfully, but these errors were encountered: