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
在使用中遇到个问题,接口开发使用的是go_gin_api,管理后台使用的是gin-vue-admin, 1、发现公用的字段 IsDeleted int32 // 是否删除 1:是 -1:否 CreatedAt time.Time gorm:"time" // 创建时间 UpdatedAt time.Time gorm:"time" // 更新时间 上述三个字段中,在go_gin_api中IsDeleted对应的gin-vue-admin的DeletedAt,字段没有打通,无法一起使用,如果可以,能否实现用户选择使用DeletedAt或者IsDeleted来标记数据删除
gorm:"time"
The text was updated successfully, but these errors were encountered:
自己修改一下模型就行了
Sorry, something went wrong.
No branches or pull requests
在使用中遇到个问题,接口开发使用的是go_gin_api,管理后台使用的是gin-vue-admin,
1、发现公用的字段
IsDeleted int32 // 是否删除 1:是 -1:否
CreatedAt time.Time
gorm:"time"
// 创建时间UpdatedAt time.Time
gorm:"time"
// 更新时间上述三个字段中,在go_gin_api中IsDeleted对应的gin-vue-admin的DeletedAt,字段没有打通,无法一起使用,如果可以,能否实现用户选择使用DeletedAt或者IsDeleted来标记数据删除
The text was updated successfully, but these errors were encountered: