Skip to content
New issue

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

和gin-vue-admin功能打通的问题 #70

Open
iakirago opened this issue Mar 2, 2022 · 1 comment
Open

和gin-vue-admin功能打通的问题 #70

iakirago opened this issue Mar 2, 2022 · 1 comment

Comments

@iakirago
Copy link

iakirago commented Mar 2, 2022

在使用中遇到个问题,接口开发使用的是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来标记数据删除

@Allen-Stephen-71
Copy link

自己修改一下模型就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants